tsdoc
Write or repair code-adjacent API documentation and the matching README or ADR updates that belong with a public interface change.
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 0
- Forks
- 4
01 前言 Front Matter
- name
- tsdoc
- description
- Write or repair code-adjacent API documentation and the matching README or ADR updates that belong with a public interface change.
- classification
- passive
03 SKILL.md 正文
TSDoc
The skill name is kept for cross-repo continuity. In this Python template, the equivalent surface is docstrings and adjacent API-facing documentation rather than TypeScript-specific TSDoc comments.
Use when
- changing public Python APIs
- adding behaviour that needs a clearer docstring or usage note
- fixing stale documentation close to code
- updating a README or ADR alongside a public interface change
Read first
.agent/directives/principles.md.agent/directives/testing-strategy.mdwhen documenting test-facing behaviour.agent/rules/documentation-hygiene.md
Documentation boundary
- docstrings explain API shape, intent, invariants, and edge cases near code
- README files explain how to use or operate a package, tool, or surface
- ADRs capture significant architectural decisions
Do not duplicate the same explanation across all three homes. Put the content in its canonical place and link across only when helpful.
Checklist
- Update stale symbol names and examples.
- Check whether a README or ADR also needs to change.
- For non-trivial public APIs, document parameters, return shape, and any important preconditions or failure modes.
- Run the relevant gates after editing.
04 同仓库更多 Skills
tsdoc
Write code-adjacent API documentation and the matching durable doc updates.
systematic-debugging
Structured debugging workflow. Use when encountering bugs, test failures, or unexpected behaviour. Reproduce, isolate, hypothesise, verify, fix, regression test.
start-right-thorough
Thorough grounding — full directive read, metacognition, and execution outline.
start-right-quick
Quick grounding at session start — read directives, memory, and check practice box.
receiving-code-review
How to process code review feedback effectively. Understand before acting, verify suggestions technically, ask for clarification when needed. Complements the reviewer sub-agents.
napkin
Maintain a per-repo napkin file at .agent/memory/napkin.md that tracks mistakes, corrections, and what works. Always active, every session, unconditionally. Read distilled.md and napkin.md before doing anything. Write to the napkin continuously as you work. Log your own mistakes, not just user corrections.