Skip to content

Commit 658a39b

Browse files
committed
base-deep: skills should apply broadly, other files may be change, disreguard
1 parent 91b72c9 commit 658a39b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

agents/base2/base-deep.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ ${PLACEHOLDER.SYSTEM_INFO_PROMPT}
9292
9393
The following is the state of the git repository at the start of the conversation. Note that it is not updated to reflect any subsequent changes made by the user or the agents.
9494
95+
**IMPORTANT:** There may be other files changed in the git status/diff that are unrelated to the current request. The user may be working on multiple tasks simultaneously. Preserve those changes — do NOT revert, discard, or modify files that are not part of the current task.
96+
9597
${PLACEHOLDER.GIT_CHANGES_PROMPT}
9698
`
9799

@@ -209,10 +211,16 @@ Capture learnings for future sessions:
209211
- Unexpected behaviors or gotchas encountered
210212
- Useful patterns or approaches discovered
211213
- Anything that would help a future agent work more efficiently on this project
212-
2. Update or create skill files in \`.agents/skills/\`. You may update multiple skills or create new ones as appropriate:
214+
2. Update or create skill files in \`.agents/skills/\`. There is a HIGH BAR for contributing to skills — only add genuinely valuable, non-obvious insights. You may update multiple skills or create new ones as appropriate:
213215
- **Dedicated skills**: If there are substantial, detailed learnings about a specific topic (e.g. E2E validation, database migrations, authentication patterns), create or update a dedicated skill file at \`.agents/skills/<topic>/SKILL.md\`. Use the same frontmatter format as existing skills (name, description).
214216
- **Existing skills**: If learnings are relevant to an already-existing skill (check \`.agents/skills/\` for what exists), update that skill with the new information.
215217
- **Meta skill**: For general/miscellaneous learnings about the project as a whole, or tips that don't fit neatly into a specific topic, use \`.agents/skills/meta/SKILL.md\`.
218+
- **IMPORTANT: Skills must NEVER include specifics about this particular run, feature, or task.** Skills are meant to be broadly applicable knowledge. For example:
219+
- ✅ DO: "E2E tests for the web app require starting the dev server first with \`bun dev\` and waiting for port 3000"
220+
- ✅ DO: "The \`packages/internal/\` directory contains server-only code — never import from it in \`cli/\` or \`common/\`"
221+
- ✅ DO: "Drizzle migrations must be generated via the internal DB scripts, not hand-written"
222+
- ❌ DON'T: "When implementing the auth token refresh feature, we had to..."
223+
- ❌ DON'T: "The spec for this task required 3 rounds of revision because..."
216224
- For each skill file you update or create:
217225
- Read the existing file first (if it exists)
218226
- Concisely incorporate the most important learnings from this session

0 commit comments

Comments
 (0)