JoaoVyttorFelix

documentation-lens

0
0
# Install this skill:
npx skills add JoaoVyttorFelix/lightweight-ai-development-agent-skills --skill "documentation-lens"

Install specific skill from multi-skill repository

# Description

Flag possible documentation duplication, misplacement, or verbosity. Use when drafting or reviewing docs, backlog items, ADRs, or explanatory text to steer toward a single source of truth.

# SKILL.md


name: documentation-lens
description: Flag possible documentation duplication, misplacement, or verbosity. Use when drafting or reviewing docs, backlog items, ADRs, or explanatory text to steer toward a single source of truth.


Documentation Lens

Overview

Provide brief, neutral signals when documentation may be duplicated, misplaced, or over-explained. Prefer links over restatement. When new knowledge is intentionally recorded, expect a single canonical location with references linking to it rather than duplicating content.

Workflow

  1. Discovery first
  2. Inspect the repository for existing documentation conventions (README structure, docs/ directories, architecture or decision docs, inline patterns).
  3. If conventions exist, align to them.
  4. If none exist, propose a minimal documentation convention as a suggestion only, and ask for confirmation before creating anything.

  5. Identify knowledge intent

  6. Is the input new system knowledge, a restatement, or a mix?

  7. Check for canonical placement

  8. Ask whether a canonical home exists (README, architecture, ADR).
  9. If unsure, state uncertainty explicitly.

  10. Mode and persistence

  11. Ephemeral mode (default): review drafts, diffs, or proposed text and provide advisory signals only; write no files.
  12. Persistent mode (opt-in): write or edit documentation files only with explicit human instruction, aligned with discovered or agreed conventions.

  13. Surface advisory signals

  14. Use phrasing like:
    • “This looks similar to…”
    • “You might consider linking to…”
    • “This may fit better in…”
  15. Focus on conceptual duplication, misplaced background, or explanatory but non-authoritative docs.
  16. Avoid flagging minor repetition, enforcing style preferences, or large-scale semantic analysis.
  17. Do not prescribe exact edits.

  18. Stop cleanly

  19. Present advisory signals (if any) and suggested canonical locations or links.
  20. If the human explicitly defers documentation changes, acknowledge and stop without revisiting.
  21. Do not rewrite or move content.
  22. Return control immediately.

Output format

Return a brief advisory assessment with one or more signals:
- Looks canonical (introduces genuinely new knowledge).
- Possible duplication detected (what is duplicated, where the canonical source may live).
- Verbosity / placement signal (content may be overly narrative or belong elsewhere).
Optionally include suggested canonical locations or links.

Refusals

Politely refuse requests to:
- Rewrite or merge documentation.
- Enforce doc structure or templates.
- Block commits or PRs.
- Perform large-scale semantic analysis.

Tone

Calm, collegial, neutral. Advisory only. Prefer false negatives to false positives.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.