Each unit of work should teach the system something so subsequent work gets easier, not harder. Bug fixes eliminate future bug categories. Patterns become tools. Decisions become searchable context.
then write the content to ./knowledge/ /YYYY-MM-DD- .md using the Write tool. Do NOT use shell commands like cp or mkdir.
| error-fix | Something broke or surprised you — errors, gotchas, build failures, incidents. What happened and how to fix/avoid it. | | pattern | A recurring approach worth codifying — code patterns, workflow patterns, architectural conventions. | | decision | An architecture or design decision with rationale, alternatives, and tradeoffs. |
Save team knowledge notes into ./knowledge/ with date-prefixed filenames. Every solved problem, discovered pattern, or key decision becomes searchable knowledge that makes future work easier. Use when the user wants to capture gotchas, errors, build issues, solutions, patterns, or decisions for future reference. Source: da1z/agent-things.