Skill quality depends on current context
Dynamic context is the current issue and repository state supplied to a skill: arguments, search results, relevant files, code excerpts, diff, tests, and the template for the output document.
A strong skill selects the minimum sufficient context rather than passing the whole repository, while keeping the result format repeatable.
| Context source | Role |
|---|---|
| Issue and arguments | Current need |
| Search results | Candidates for related modules |
| Files and code excerpts | Evidence of actual behavior |
| Diff and tests | Change state and result evidence |
| Template | Stable output structure |
Dynamic-context flow
- Accept the issue as input.
- Find the most relevant files.
- Collect confirmation from code and tests.
- Apply the specification template.
- Separate facts from assumptions.
- Create TASK_SPEC.md with open questions.
- Stop before implementation.
grep -R 'refund' support/ orders/Files beside a skill
- SKILL.md — procedure and contract;
- templates/ — artifact formats;
- examples/ — expected-result samples;
- references/ — supporting material.
.claude/skills/issue-analysis/
├── SKILL.md
├── templates/
│ ├── TASK_SPEC.template.md
│ └── EVIDENCE_LOG.template.md
├── examples/
│ └── refund-sorting-bugfix.md
└── references/
└── risk-notes.mdPre-commit quality review
- Confirm that the skill names one scenario.
- Check unambiguous input and output.
- Separate facts from assumptions.
- Check minimal tools and permissions.
- Confirm that only needed context is loaded.
- Run the procedure on a representative case and inspect the result.
Canonical lesson source · JavaRush
Open JavaRush material