CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

ai-docs

Generate, audit, and compress AI-optimized documentation for codebases. This skill applies research-backed principles from three peer-reviewed papers to create documentation that maximizes AI agent performance instead of degrading it. Use this skill whenever the user asks to "write docs", "create a CLAUDE.md", "document a module", "audit documentation", "compress docs", "optimize docs for AI", "write module docs", "create domain documentation", "review doc quality", or mentions documentation bloat, token waste, or AI context efficiency. Also trigger when the user references "ai-docs principles", "telegram style docs", or wants to apply the "Lost in the Middle", "Less is More", or "AGENTS.md" research findings.

69

Quality

87%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

The canonical home for this skill is ai-docs in alpacapurpura/luana-method

SKILL.md
Quality
Evals
Security

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, actionable skill body with clear four-mode workflows, real one-level-deep references verified against the bundle, and strong token discipline. The main improvement opportunities are trimming the inline research explanations (they duplicate the references file), adding a confirmation/diff feedback loop to the destructive compress mode, and including one short example output inline.

Suggestions

Trim the Three Laws section to one-line rules and push the statistics and U-shaped-attention explanation fully into references/research-foundations.md — Claude already knows the concept and the details are duplicated there.

Add a validation/feedback loop to Mode 3 (compress): show the user the proposed line removals or a before/after diff and get confirmation before rewriting their documentation, since it batch-deletes user content.

Include one short inline example of a finished output (e.g., a 10-line sample CLAUDE.md excerpt) or a direct pointer to the specific template in references/templates.md so the common case needs no extra file read.

DimensionReasoningScore

Conciseness

The body is mostly lean — the anti-patterns table gives terse reasons ("ls shows this", "The signature says this") and hard budgets (80/100/150 lines) instead of prose. It is not 5 because the Three Laws section partially explains a concept Claude already knows (U-shaped attention) and repeats citation statistics that also live in references/research-foundations.md; not 3 because padding is minor and localized.

4 / 5

Actionability

Concrete, executable guidance throughout: specific line budgets, real commands (`ls backend/src/modules/`), a fill-in audit report template, and a binary quality checklist. Not 5 because there is no inline example of a finished output (e.g., a short sample CLAUDE.md) and the actual templates are entirely deferred to references/templates.md; not 3 because the guidance is specific and directly executable, not pseudocode.

4 / 5

Workflow Clarity

Each of the four modes has a clear numbered sequence, and validation checkpoints exist (Mode 1's "Self-audit before delivering" step 5 and the global "Quality Checklist... Before delivering any documentation, verify"). Not 5 because Mode 3 (compress) performs batch deletion of the user's documentation lines without an explicit feedback loop such as showing the proposed removals or a diff for confirmation before applying; not 3 because validation steps are explicitly present, not merely implied.

4 / 5

Progressive Disclosure

The body is a clear operational overview, and both referenced files exist with content matching what is claimed (templates.md contains the three line-budget templates; research-foundations.md contains the three studies). References are one level deep and signaled at exactly the right points ("read `references/research-foundations.md`", "Read `references/templates.md` and use the appropriate template"). Not 4: there are no organization gaps — the split between overview and detail files is clean and navigable.

5 / 5

Total

17

/

20

Passed

Description

91%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description that explicitly states what the skill does and when to use it, with an unusually thorough catalog of natural trigger phrases and synonyms. The only weaknesses are a minor coverage gap (module-map mode unlisted) and slight overlap risk with generic documentation/CLAUDE.md skills on the broadest trigger phrases.

DimensionReasoningScore

Specificity

Names the domain and several concrete actions — "Generate, audit, and compress AI-optimized documentation for codebases" — covering three of the four operating modes, but the module-map/index generation mode (Mode 4) is not named, a minor coverage gap. It is not 3 (it lists several specific actions, well beyond 1-2) and not 5 (one distinct capability is missing from the action list).

4 / 5

Completeness

Explicitly answers both questions: what ("Generate, audit, and compress AI-optimized documentation for codebases... maximizes AI agent performance") and when ("Use this skill whenever the user asks to...") with a concrete trigger-phrase list — a direct match to the anchor-5 example. Not 4, because the when-clause is exhaustive and fully explicit.

5 / 5

Trigger Term Quality

Comprehensive natural trigger phrases with synonyms: "write docs", "create a CLAUDE.md", "document a module", "audit documentation", "compress docs", "optimize docs for AI", "write module docs", "review doc quality", plus condition mentions ("documentation bloat, token waste, or AI context efficiency") and named research findings. This matches the anchor-5 pattern of full synonym coverage; nothing natural is missing.

5 / 5

Distinctiveness Conflict Risk

The AI-optimization framing ("optimize docs for AI", "AI context efficiency", the named papers) gives it a clear niche, but generic phrases like "write docs", "document a module", and "create a CLAUDE.md" create minor overlap risk with generic documentation-writing and CLAUDE.md-init skills. Not 5 because of that overlap; not 3 because the niche and distinctive triggers clearly dominate.

4 / 5

Total

18

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

alpacapurpura/ap_sales_agent

Path

.claude/skills/ai-docs/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.