ワンクリックで
skillsscan
Scan a repository to bootstrap new skills or audit and update existing ones
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Scan a repository to bootstrap new skills or audit and update existing ones
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use this skill when you need to create clear, concise summaries of information. This includes summarizing long documents, articles, meeting notes, technical documentation, research papers, or any text that needs to be condensed while preserving key information. The skill provides techniques for extractive and abstractive summarization, bullet-point formatting, and executive summaries.
Add comprehensive CI workflows to a target repo - lint, test, build, security scanning, dependabot, scorecard, action pinning
Brainstorm and create phased enhancement plan for a target repo - PR sizing, phase selection, task breakdown
Add pre-commit hooks, linting, CLAUDE.md, and foundational .claude/ setup to a target repo
Review all orchestration PRs before merge - per-PR checks, cross-PR consistency, and coordinated approval
Scan and assess a target repository - tech stack, CI maturity, security posture, test coverage, supply chain health
| name | skills:scan |
| description | Scan a repository to bootstrap new skills or audit and update existing ones |
Bootstrap skills for a new repo, or audit and update skills in an existing one.
flowchart TD
START(["/skills:scan"]) --> MODE{"Repo has skills?"}
MODE -->|No| NP1["Analyze Repo"]:::skills
MODE -->|Yes| EP1["Validate Existing"]:::skills
NP1 --> NP2["Identify Categories"]:::skills
NP2 --> NP3["Generate Core Skills"]:::skills
NP3 --> NP4["Generate settings.json"]:::skills
NP4 --> DONE([Skills bootstrapped])
EP1 --> EP2["Gap Analysis"]:::skills
EP2 --> EP3["Content Quality"]:::skills
EP3 --> EP4["Connection Analysis"]:::skills
EP4 --> EP5["Usefulness Rating"]:::skills
EP5 --> EP6["Generate Report"]:::skills
EP6 --> EP7["Update README"]:::skills
EP1 -->|Issues| WRITE["skills:write"]:::skills
EP6 -->|Gaps| WRITE
classDef skills fill:#607D8B,stroke:#333,color:white
.claude/skills/ exists)Scan for technology markers:
ls -la Makefile pyproject.toml package.json Cargo.toml go.mod pom.xml 2>/dev/null
Check CI configuration:
ls .github/workflows/ .gitlab-ci.yml Jenkinsfile .circleci/ 2>/dev/null
Check deployment patterns:
ls -d charts/ helm/ k8s/ kubernetes/ deployments/ docker-compose* Dockerfile 2>/dev/null
Check test structure:
find . -type d -name "tests" -o -name "test" -o -name "__tests__" -o -name "e2e" 2>/dev/null | head -10
Based on findings, propose categories:
| Marker | Suggested Skills |
|---|---|
.github/workflows/ | CI-related skills (status, monitoring) |
charts/ or helm/ | Helm debugging skills |
Dockerfile | Docker build/debug skills |
tests/e2e/ | TDD and RCA skills |
deployments/ansible/ | Ansible deploy skills |
| Kubernetes manifests | K8s health, pod, and log skills |
Every repo should have these (create with skills:write):
| Skill | Purpose |
|---|---|
skills:write | How to create skills |
skills:validate | How to validate skills |
skills:scan | This skill (self-referential) |
Create .claude/settings.json with auto-approve patterns:
.claude/skills/ exists)Run skills:validate on every skill:
for f in .claude/skills/*/SKILL.md; do
dir=$(basename $(dirname "$f"))
name=$(grep '^name:' "$f" | sed 's/name: //' | tr -d ' ')
[ "$dir" = "$name" ] || echo "MISMATCH: $dir != $name"
done
Check for issues:
Compare existing skills against the repo's actual tech stack:
For each existing skill, assess:
| Check | Criteria |
|---|---|
| Actionability | Commands are copy-pasteable, not just documentation |
| Length | 80-200 lines (300 max). Split if too long |
| Freshness | Commands and paths still match current repo structure |
| Cross-links | Related Skills use colon notation and link to real skills |
| Auto-approve | Sandbox commands match settings.json patterns |
| Mermaid diagram | Workflow/router skills have embedded diagram matching textual flow |
For each skill, determine:
Key metrics:
Rate each skill 1-5:
| Rating | Criteria |
|---|---|
| 5 | Decision trees, copy-paste commands, troubleshooting, used daily |
| 4 | Good reference with commands, covers edge cases |
| 3 | Useful but needs more actionability or is too long |
| 2 | Bare index or needs significant improvement |
| 1 | Redundant or too vague to help |
Save to /tmp/kagenti/skills-scan/:
mkdir -p /tmp/kagenti/skills-scan
Output a structured report:
## Skill Scan Report
### Inventory: X total (Y parents + Z leaves)
- Rated 5: N skills
- Rated 4: N skills
- Rated 3 or below: N skills (list)
### Validation Issues
- Failing validation: [list with specific issues]
- Broken references: [source → broken target]
- Over 300 lines: [list with line counts]
### Connection Analysis
- Most connected (hub skills): [top 5 with incoming ref count]
- Orphaned skills: [list with only parent refs]
- Workflow paths: TDD escalation, RCA escalation, Deploy chain
### Gap Analysis
- Missing skills for detected tech: [list]
- Stale skills referencing removed tech: [list]
### Diagram Coverage
- Skills with diagrams: [count]
- Skills needing diagrams: [list]
### Recommendations
1. Create: [new skills needed]
2. Update: [skills with issues]
3. Delete: [obsolete skills]
4. Merge: [overlapping skills]
5. Cross-link: [orphaned skills that should connect to workflows]
After completing the scan, update .claude/skills/README.md:
The README is the main entry point for understanding the skills system. It should always reflect the current state after a scan.
.claude/
├── settings.json
└── skills/
├── README.md # Generated by skills:scan
├── skills/SKILL.md
├── skills:write/SKILL.md
├── skills:validate/SKILL.md
├── skills:scan/SKILL.md
└── <detected>/SKILL.md
skills:write — Create individual skillsskills:validate — Validate skill formatorchestrate — Orchestrate other repos