/swe-skills:swe:capture-knowledgefrom swe-skills
Audits a repository's code and docs to find important conventions, workflows, and architectural decisions that are missing from agent-facing guidance, then drafts review-ready updates. Use when a user says `capture repo knowledge`, `document implicit conventions`, `turn repo patterns into agent rules`, or asks what future agents should remember about a codebase. Do NOT use for a generic repo tour, onboarding walkthrough, or architecture summary that does not need reusable guidance updates.
Ships in swe-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to convert implicit repo knowledge into explicit guidance that future agents can follow reliably.
The job is not to summarize the repo. The job is to compare:
Then draft the missing entries and stop for review before writing anything.
Use this skill when the user wants to:
Do not use this skill for:
Before doing deep work, confirm or infer:
If the scope is missing, ask for the narrowest clarification needed before proceeding.
Inspect the current agent-facing guidance first, such as:
AGENTS.md, CLAUDE.md, and repo-level workflow docsCapture what is already documented so you do not restate it later.
Inspect the codebase, configs, tests, and representative implementations to understand how the repo is actually built and maintained.
Focus on repeated or operationally important patterns such as:
Compare observed repo behavior against the existing guidance and keep only the highest-signal gaps.
Prioritize:
Avoid:
For each proposed entry, include:
pattern, convention, or architectural-decisionGround every draft in concrete evidence from named files, directories, configs, or repeated code patterns. Distinguish observed facts from inferences.
Do not save proposed entries automatically.
Always:
If the user approves only a subset, save only that subset.
When writing approved entries, choose the narrowest correct destination:
Explain why that destination is the right place.
Produce a review packet with these sections:
Prefer 3-7 strong entries over a long weak list.
User says: Review this repo and capture the conventions future agents keep missing.
Actions:
AGENTS.md, README.md, and existing skillsResult: The user gets a small, high-signal review packet instead of a long repo summary.
User says: Turn the implicit release workflow in this repo into agent guidance, but do not save anything until I approve it.
Actions:
Result: Draft guidance is ready for review with a clear suggested destination.
If the existing guidance already captures the important behavior, say so
explicitly. Return No material knowledge gaps found rather than forcing weak
proposals.
Do not promote uncertainty into a rule. Present the item as a candidate for confirmation, explain what you observed, and state exactly what still needs to be verified.
If the user wants edits saved, you can prepare the write targets and draft text in the same pass, but still show the proposed entries before writing so the review step is explicit.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (ckorhonen/swe-skills) — no native marketplace selected
npx claudepluginhub p/ckorhonen-swe-skills17 skills in this plugin
/swe:babysit-prBabysits an open pull request end-to-end by polling every minute, triaging new comments and reviews, handling CI failures, iterating on reviewer scores, and stopping only when the PR is ready to merge. Use when a user says `babysit this PR`, `watch this PR until it's merge-ready`, `handle review feedback on my PR`, or `keep iterating on this PR until reviewers are happy`. Do NOT use for a one-shot PR risk review, merged PR production monitoring, or repo-wide CI debugging with no scoped PR./swe:change-validation-plannerPlans the narrowest trustworthy validation path for a scoped code change or diff. Use when a user asks what to run before merging, how to validate a specific change, whether the current checks are enough, or wants a bounded command order from narrow to broad. Do NOT use for writing tests, fixing the code change itself, broad QA sweeps, or generic debugging that needs root cause analysis./swe:create-skillCreates or revises `swe:` skills for this repository using a repeatable authoring workflow: define concrete use cases, tune trigger boundaries, apply progressive disclosure, add matching eval assets, and validate the package. Use when adding a new skill, tightening an existing skill that over- or under-triggers, or distilling an external workflow into a repo-ready skill. Do NOT use for generic documentation edits or for executing the workflow the skill would describe./swe:docs-drift-auditAudits a repository for human-facing or operational documentation that drifted from code, config, interfaces, workflows, or repo structure changes. Use when a user says `check docs drift`, `docs are stale`, `update the runbook after this change`, or `what documentation is missing after this change`. Do NOT use for agent-guidance updates, generic documentation rewrites, or writing docs without evidence that they are stale./swe:incident-followup-auditAudits post-incident engineering follow-through after a sev or incident to verify whether the durable follow-up happened: regression tests, monitors, docs, runbooks, ownership updates, tickets, rollback learnings, and remaining backlog. Use when a user asks whether incident follow-up is complete, what still needs to be done after a postmortem, or how to close the engineering loop. Do NOT use for live incident response, root-cause analysis, or a generic bug hunt unrelated to an incident./swe:initInitializes an optional repo-local agent collaboration preference file at `.ai/swe.json` by running a short interview or a zero-question quick mode. Use when a user says `initialize agent settings for this repo`, `set up my local agent prefs here`, `run quick init for this project`, or `create .ai/swe.json for how I like to work`. Do NOT use for `npm init`, project scaffolding, dependency installation, or environment bootstrap.