一键导入
clean
Remove the Intent Layer from a repository. Deletes all child AGENTS.md files and removes the Intent Layer section from the root CLAUDE.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Remove the Intent Layer from a repository. Deletes all child AGENTS.md files and removes the Intent Layer section from the root CLAUDE.md.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Set up hierarchical Intent Layer (AGENTS.md files) for codebases. Use when initializing a new project, adding context infrastructure to an existing repo, user asks to set up AGENTS.md, add intent layer, make agents understand the codebase, or scaffolding AI-friendly project documentation.
End-of-cycle learning capture and triage. Run after completing a feature, fixing a bug, or finishing any significant work. Reviews pending learnings, analyzes conversation for undocumented insights, and integrates into the Intent Layer with appropriate scope (global workflow vs local code).
Quick health check for Intent Layer - validates nodes, checks staleness, reports coverage gaps
Interactive review of pending mistake reports from the learning loop. Walk through each report with the user, accepting/rejecting/discarding as appropriate.
Extract Intent Layer content from git history. Analyzes commits, PRs, and blame to discover pitfalls, contracts, architecture decisions, and entry points that should be documented in AGENTS.md files.
Use when maintaining an existing Intent Layer, during quarterly reviews, after significant code changes, when something confused you, or when user asks to audit/update CLAUDE.md or AGENTS.md files.
| name | clean |
| description | Remove the Intent Layer from a repository. Deletes all child AGENTS.md files and removes the Intent Layer section from the root CLAUDE.md. |
Remove the Intent Layer infrastructure from a repository completely.
# Find child AGENTS.md files (excluding root)
find . -name "AGENTS.md" -not -path "./AGENTS.md" -type f 2>/dev/null
# Check for root AGENTS.md symlink
ls -la ./AGENTS.md 2>/dev/null
Check if CLAUDE.md has an Intent Layer section:
grep -n "^## Intent Layer" ./CLAUDE.md 2>/dev/null
Present the full scope to the user:
## Intent Layer Removal Plan
### Files to Delete
| Path | Size |
|------|------|
| src/api/AGENTS.md | 2.1k |
| src/core/AGENTS.md | 1.8k |
| ./AGENTS.md (symlink) | - |
### Root CLAUDE.md Changes
- Remove "## Intent Layer" section (lines 45-89)
**Preserved:** ./CLAUDE.md (without Intent Layer section)
Total: 3 files deleted, 1 section removed
Ask: "Remove Intent Layer completely? This will delete X files and remove the Intent Layer section from CLAUDE.md."
rm [path/to/AGENTS.md]
rm ./AGENTS.md # Only if it's a symlink to CLAUDE.md
Remove the ## Intent Layer section and everything until the next ## heading (or end of file).
Pattern to match and remove:
## Intent Layer (with optional text after)## heading or EOF## Intent Layer Removed
### Deleted Files
- src/api/AGENTS.md
- src/core/AGENTS.md
- ./AGENTS.md (symlink)
### Modified Files
- ./CLAUDE.md (Intent Layer section removed)
To restore Intent Layer: /intent-layer
## Intent Layer heading exists| Item | Action |
|---|---|
./CLAUDE.md | Intent Layer section removed |
./AGENTS.md | Deleted if symlink to CLAUDE.md |
src/*/AGENTS.md | Deleted |
| Other CLAUDE.md content | Preserved |
If the root has no ## Intent Layer section, skip that step and only delete AGENTS.md files.
If no child files exist, only remove the section from CLAUDE.md.
If root AGENTS.md is a real file (not symlink), warn user and ask whether to delete it.
Confirmation of all deleted files and modified sections, with reminder of how to restore.