Agent skill

Doc Impact

by aspenkit in aspenkit/aspens

Context health analysis — freshness, domain coverage, hub surfacing, drift detection, LLM-powered interpretation, and auto-repair for generated agent context

MITAuto-check passedAgent Workflows

Install Doc Impact

skills CLI
$ npx skills add aspenkit/aspens --skill doc-impact -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aspenkit/aspens doc-impact --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aspenkit/aspens.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/doc-impact .claude/skills/doc-impact && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
doc-impact
GitHub stars
102
Token cost
~1.3k tokens
SKILL.md length
537 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Context health analysis — freshness, domain coverage, hub surfacing, drift detection, LLM-powered interpretation, and auto-repair for generated agent context

  • Tasks that involve Codebase knowledge for agents
  • SKILL.md covers Domain purpose, Business rules / invariants, Non-obvious behaviors and Critical files (purpose, not…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve GitOps

What it does

Doc Impact is an agent skill from aspenkit/aspens. Context health analysis — freshness, domain coverage, hub surfacing, drift detection, LLM-powered interpretation, and auto-repair for generated agent context

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Codebase knowledge for agents and GitOps. The repository describes itself as: Your CLAUDE.md stopped working at 200 lines. Generate scoped skill files from your import graph, auto-sync on every commit. Claude Code, Codex and OpenCode. The licence is MIT.

When your agent uses it

  • Tasks that involve Codebase knowledge for agents
  • Tasks that involve GitOps

Example prompts

  • “/doc-impact”

What it can do on your machine

Read from SKILL.md and the folder at commit 8dde826. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Doc Impact loads about 1.3k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 537 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aspenkit/aspens at commit 8dde826, republished under its MIT licence (© aspenkit). 537 words, ~1,287 tokens.

Download SKILL.mdSave it as .claude/skills/doc-impact/SKILL.md (or your agent's skills folder).
name
doc-impact
description
Context health analysis — freshness, domain coverage, hub surfacing, drift detection, LLM-powered interpretation, and auto-repair for generated agent context
triggers.files
src/commands/doc-impact.js, src/lib/impact.js, src/prompts/impact-analyze.md, tests/impact.test.js, tests/doc-impact.test.js
triggers.keywords
impact, freshness, coverage, drift, health score, context health, hook health, usefulness

You are working on doc impact — the command that shows whether generated agent context is keeping up with the codebase, optionally interprets results via LLM, and can interactively apply recommended repairs.

Domain purpose

Audits the agent context generated by aspens against the live source tree, reports per-target health (Claude, Codex), and offers an interactive --apply flow that re-runs the right aspens doc init/sync variant to repair gaps. The LLM interpretation is a thin layer on top of deterministic metrics — the metrics are the contract.

Business rules / invariants

  • Target inference: If .aspens.json is absent, targets are inferred from scan results (.claude/ → claude, .agents/ → codex). Falls back to ['claude'].
  • LLM is optional and tool-less. Runs only when a CLI backend is detected. runLLM is invoked with disableTools: true; prompt must return pure JSON (bottom_line, improves, risks, next_step). Failure is caught and reported as "Analysis unavailable" — never fatal.
  • Graph failure is non-fatal. If buildRepoGraph throws (or --no-graph is passed), graph is null and hub coverage is skipped/n/a.
  • Hub coverage haystack is the code-map, not AGENTS.md. Post-Phase 1, ## Key Files no longer lives in root instructions. computeHubCoverage reads .claude/code-map.md (claude) or .agents/skills/architecture/references/code-map.md (codex). If the code-map file is missing, it reports codeMapMissing: true instead of spurious "missing hub" warnings. Older callers without repoPath fall back to the legacy contextText haystack.
  • Health score deductions (start 100): missing instructions −35; no skills −25; domain gaps proportional up to −25; missed hubs −4 each; drift −3 per file (cap −20); unhealthy hooks −10 (hook-capable targets only); broken save-tokens −5 (claude only).
  • LOW_SIGNAL_DOMAIN_NAMES (config, test, tests, __tests__, spec, e2e) are excluded from coverage scoring but tracked in excluded.
  • SOURCE_EXTS extends the scanner set with .scala, .clj, .elm, .vue, .svelte for drift detection. Adding a language for drift requires updating this set.
  • Walk depth capped at 5 — deep nested source files won't appear in drift analysis.
Show full SKILL.md (230 more words)Show less

Non-obvious behaviors

  • Agent skill-ref check (Phase 6): checkAgentSkillReferences() scans .claude/agents/*.md frontmatter for skills: [a, b] and verifies each .claude/skills/<name>/skill.md exists. Broken refs surface as agent-skill-refs opportunities.
  • Save-tokens health is Claude-only and only activates when config.saveTokens.enabled is true and claude.enabled !== false. Required hook/command files vary by sub-config (saveHandoff, warnAtTokens/compactAtTokens thresholds). Legacy .mjs siblings of the .sh hooks must be cleaned up — their presence is an issue.
  • buildApplyPlan dedupes with aspens doc sync as a target-agnostic key; everything else is keyed ${target.id}:${action}.
  • applyRecommendedAction is a hand-maintained dispatch table mapping action strings to docInitCommand/docSyncCommand option shapes. Adding a new recommendation in recommendActions() requires a matching branch here, otherwise it warns "Cannot apply automatically".

Critical files (purpose, not inventory)

  • src/commands/doc-impact.js — CLI rendering, LLM prompt assembly, buildApplyPlan, and the action dispatch into docInitCommand/docSyncCommand.
  • src/lib/impact.js — All deterministic analysis (analyzeImpact, target summarization, scoring, drift, hub/code-map coverage, hook/save-tokens health, opportunities, missing rollup, value comparison).
  • src/prompts/impact-analyze.md — Strict JSON contract the LLM must honor; do not change shape without updating parseAnalysis.

Critical Rules

  • Skills/activationPatterns are matched via findMatchingSkill (substring or /domain/ path hit). Renaming the skill-reader contract breaks coverage scoring.
  • Don't surface root-context hub warnings when codeMapMissing is true — emit the code-map-missing item instead and tell the user to run aspens doc graph.
  • Exported surface used by tests/consumers: computeDomainCoverage, computeHubCoverage, computeDrift, evaluateHookHealth, evaluateSaveTokensHealth, computeHealthScore, computeTargetStatus, recommendActions, summarizeReport, summarizeMissing, summarizeOpportunities, summarizeValueComparison, checkAgentSkillReferences from impact.js; buildApplyPlan, buildApplyConfirmationMessage from doc-impact.js.

Last Updated: 2026-05-11

© aspenkit, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/doc-impact of aspenkit/aspens.

Open the folder on GitHubat commit 8dde826

Compare with similar skills

Doc Impact next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Doc Impact compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Doc Impact this skillaspenkit/aspens102—~1.3kAutomated safety check: PassMIT
ccc Semantic Code Searchcocoindex-io/cocoindex-code2.7k—~938Automated safety check: PassApache-2.0
Context Engineeringabashev/vfs-s31069 repos~2.6kAutomated safety check: NotesApache-2.0
Repomix Codebase Packeryamadashy/repomix29k—~1.3kAutomated safety check: NotesMIT
Codebase Handbook BuilderRuhan-Wang/Harness_Handbook331—~2.2kAutomated safety check: PassApache-2.0
Skill Factorysangrokjung/claude-forge849—~2.7kAutomated safety check: PassMIT

Similar skills

  • ccc Semantic Code Search

    cocoindex-io/cocoindex-code

    Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.

    2.7k GitHub stars~938 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Context Engineering

    abashev/vfs-s3

    Optimizes agent context setup. An agent skill from abashev/vfs-s3.

    106 GitHub starsUsed in 9 repos~2.6k tokens
    Agent WorkflowsAuto-check: notes
  • Repomix Codebase Packer

    yamadashy/repomix

    Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.

    29k GitHub stars~1.3k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check: notes
  • Codebase Handbook Builder

    Ruhan-Wang/Harness_Handbook

    Generates, refreshes, validates and uses a compact handbook that maps where a change touches in a repository, using the active Codex session and no external LLM API.

    331 GitHub stars~2.2k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Skill Factory

    sangrokjung/claude-forge

    Analyze session work and automatically convert reusable patterns into Claude Code skills.

    849 GitHub stars~2.7k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Codemap

    JordanCoin/codemap

    Gives an agent a quick map of a codebase's structure, dependencies, changes and handoffs, and tunes per-project config so the output stays code-first.

    704 GitHub stars~1.8k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from aspenkit/aspens

All 12 skills in this repo
  • Injects a project's own skills and AGENTS.md content into generic bundled agent template files, adding a tech-stack line and real conventions without touching an agent's core logic.

    102 GitHub stars~898 tokensUpdated 25 days ago
    Auto-check passed
  • Orientation to the aspens codebase for agents working on the CLI itself: its Node.js stack, commands, module layout and debug settings.

    102 GitHub stars~1.6k tokensUpdated 25 days ago
    Auto-check passed
  • Aspens CLI Shell

    aspenkit/aspens

    Project context for the aspens CLI entry point: Commander wiring, the welcome screen, missing-hook warnings, CliError exit handling and the public programmatic exports.

    102 GitHub stars~1.1k tokensUpdated 25 days ago
    Auto-check passed
  • Explains how the aspens generator routes output to Claude Code or Codex CLI targets and transforms generated skills and instruction files between their formats.

    102 GitHub stars~1.9k tokensUpdated 25 days ago
    Auto-check passed
  • Doc Sync

    aspenkit/aspens

    Incremental skill updater that maps git diffs to affected skills and optionally auto-syncs via a post-commit hook

    102 GitHub stars~1.8k tokensUpdated 25 days ago
    Auto-check passed
  • Import Graph

    aspenkit/aspens

    Static import analysis that builds dependency graphs, domain clusters, hub files, git churn hotspots, and file priority rankings

    102 GitHub stars~1.1k tokensUpdated 25 days ago
    Auto-check passed

Categories

Questions about Doc Impact

What does Doc Impact do?

Context health analysis — freshness, domain coverage, hub surfacing, drift detection, LLM-powered interpretation, and auto-repair for generated agent context. Doc Impact is an agent skill from aspenkit/aspens.

When should I use Doc Impact?

Doc Impact fits situations like: tasks that involve Codebase knowledge for agents; tasks that involve GitOps.

How do I install Doc Impact in Claude Code?

Run `npx skills add aspenkit/aspens --skill doc-impact -a claude-code`. Or copy the skill folder (.agents/skills/doc-impact in aspenkit/aspens) into .claude/skills/doc-impact in your project. Claude Code loads it when a task matches its description.

How do I install Doc Impact in Codex?

Run `npx skills add aspenkit/aspens --skill doc-impact -a codex`. Or copy the skill folder (.agents/skills/doc-impact in aspenkit/aspens) into .agents/skills/doc-impact in your project. Codex loads it when a task matches its description.

Can I use Doc Impact in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aspenkit/aspens --skill doc-impact -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/doc-impact, .gemini/skills/doc-impact, .github/skills/doc-impact and .opencode/skills/doc-impact in your project.

What does Doc Impact need to run?

SKILL.md names no scripts, command-line tools or credentials: Doc Impact is instructions for the agent only.

Does Doc Impact access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Doc Impact safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Doc Impact use?

Doc Impact is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Doc Impact use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Doc Impact?

Skills that share tags, products or a category with Doc Impact: ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.7k stars), Context Engineering (abashev/vfs-s3, 106 stars), Repomix Codebase Packer (yamadashy/repomix, 29k stars) and Codebase Handbook Builder (Ruhan-Wang/Harness_Handbook, 331 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Doc Impact?

aspenkit (a GitHub organization) maintains it in aspenkit/aspens, which has 102 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on September 12, 2026.

Source: aspenkit/aspens on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.