Recurring pitfalls log
pitfalls_logTrack recurring issues and their resolutions. Store a pitfall with title and description, list open or resolved entries, or mark a pitfall as resolved. Builds a searchable history of project-specific problems and workarounds.
Instructions
Multi-action log of recurring problems and their resolutions. Pick one via action: • store — record a new pitfall (title + body required). Writes a row. • list — list open pitfalls (set include_resolved=true for all). Read-only. • resolve — mark a pitfall resolved (pitfall_id required). Use when something keeps biting and you want a queryable problem→resolution log. For one-off design choices, use decisions_log.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which sub-operation to perform: `store`, `list`, or `resolve`. | |
| project_path | Yes | Absolute project path the pitfall belongs to (or to scope `list`). Required. | |
| title | No | Short symptom title (required for `store`). E.g. `"esbuild fails on M1 when using esm + node-gyp"`. | |
| body | No | Markdown body (required for `store`). Should describe the problem and the resolution / workaround. | |
| importance | No | Importance score in [0, 1] for `store`. Default 0.6. | |
| limit | No | Maximum pitfalls to return for `list` (1-50). Default 10. | |
| include_resolved | No | For `list`: if true, also include resolved pitfalls. Default false (open only). | |
| pitfall_id | No | Required for `action="resolve"` — the id of the pitfall to mark resolved. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | For `store`: `Pitfall logged/updated with ID: <id>`. For `list`: markdown list with `[RESOLVED]` or `[xN]` (occurrence count) prefixes, or `No pitfalls found.` For `resolve`: `Pitfall <id> marked as resolved.` or `Pitfall <id> not found.` |