Context retrieval loop
Skill yeaight7/agent-powerups/plugins/documentation-systems/skills/context-retrieval-loop
Use when about to write a new doc, README section, or ADR, updating existing documentation with unclear scope, or spawning a documentation subagent that needs file context.From its SKILL.md
npx -y skills add yeaight7/agent-powerups --skill context-retrieval-loopAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.8 KB, 395 tokens by cl100k_base, as published. Nobody here has run it
Context Retrieval Loop (Documentation)
Gather documentation context before writing or updating docs. Prevents duplicating existing content or violating project conventions.
When to Use
- About to write a new doc, README section, or ADR
- Updating existing documentation and unsure of scope
- Spawning a documentation subagent that needs file context
The 3-Cycle Loop
Cycle 1 — Broad Search
# Find existing docs
find . -name "*.md" -not -path "*/node_modules/*" | head -30
rg "<topic>" docs/ *.md -l 2>/dev/null
Stop here if you find the existing doc that covers this topic.
Cycle 2 — Source and Existing Docs
Read the source files the docs will describe. Find existing docs for the same area:
rg "<module-name>" docs/ -l
cat README.md | head -60
Stop here if you understand the scope of what needs to be written or updated.
Cycle 3 — Conventions and Setup
ls docs/ .github/ 2>/dev/null
cat AGENTS.md CLAUDE.md 2>/dev/null | head -40
Check: Is there a doc style guide? A template? A contribution guide with doc requirements?
Output
Context gathered:
<file-path> — <reason>
Missing context (if any):
<what is still unclear>
State gaps. Do not write documentation that contradicts undiscovered existing content.
Verification
- Existing docs were searched before writing — duplication ruled out or the covering doc identified
- The source files the docs describe were read, not assumed
- Doc conventions (style guide, templates, contribution rules) were checked
- Gaps are stated explicitly; nothing written contradicts existing content
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.