ktncodes/icm-template/icm-context-scaffold
Claude Code and agent skill by ktncodes/icm-template
- community
Checking that the SKILL.md file is still in the repository.
Walk a workspace tree, find folders missing a CONTEXT.md, and generate one for each based on contents. Skips folders using alternative routing (_index.md, CLAUDE.md) or too minimal to need one. Keeps ICM Layer 1 coverage complete.
Install
npx vskill@latest install ktncodes/icm-template/icm-context-scaffoldSKILL.md
ICM Context Scaffold
Scan the current ICM workspace and create CONTEXT.md files for any folder that needs one but doesn't have one yet.
Step 1: Locate ICM Root
Find the workspace root by searching upward from the current directory for IDENTITY.md. If no IDENTITY.md exists, report: "No ICM workspace found. Run /icm-scaffold first." and stop.
Step 2: Learn the Format
Read 2–3 existing CONTEXT.md files in the workspace to learn the current format and tone. At minimum read:
- The root
CONTEXT.md(Layer 1 routing) - One subfolder
CONTEXT.mdif it exists (Layer 2 stage contract or sub-workspace)
Extract the common structure:
- H1 title
- Purpose section (1–3 sentences)
- Folder structure (code block tree)
- Routing table (task → destination → load first)
- Optional: workflow steps, naming conventions, build commands
If no existing CONTEXT.md files exist beyond the root, use this default structure.
Step 3: Scan for Gaps
Walk the workspace tree and identify folders that should have a CONTEXT.md but don't.
Scan these locations:
- Workspace root and immediate children
- Every subfolder mentioned in IDENTITY.md's folder map
- Stage folders (if full mode ICM with physical stages)
- Any folder more than 2 levels deep that contains 3+ files or has its own subfolders
Step 4: Decide What to Skip
A folder does NOT need a CONTEXT.md if any of these are true:
| Condition | Example | |
|---|---|---|
Already has CONTEXT.md | Existing ICM workspaces | |
Has CLAUDE.md that serves as routing | Projects with their own CLAUDE.md | |
Uses _index.md for routing | Wiki sections, Obsidian vaults | |
| Is a build output or generated folder | build/, dist/, node_modules/, .next/ | |
| Is a git/config/IDE folder | .git/, .vscode/, .claude/, __pycache__/ | |
| Is an ICM infrastructure folder | _config/, references/, output/ | |
| Contains only a single file | Not yet a real project | |
| Is empty | No files to describe | |
| Is a data/media folder | Images, exports, attachments |
Step 5: Generate CONTEXT.md Content
For each folder that needs a CONTEXT.md:
- Read existing docs — check for README.md, SPIKE_*.md, PIPELINE.md, package.json, or any file that explains the folder's purpose
- List contents — enumerate subfolders and key files on disk
- Infer purpose — from file names, parent CONTEXT.md references, and IDENTITY.md descriptions
- Determine type — is this a project, a sub-workspace, a study area, a stage folder, or a container?
Template
[folder-name]/ ├── [file/folder] # [brief description] └── ...
Content Rules
- Do not invent information. Only describe what exists on disk or is documented in nearby files.
- Match the workspace tone. Read existing CONTEXT.md files and match their style — concise and direct.
- Include build commands if the folder is a project with a package.json, CMakeLists.txt, Makefile, or similar.
- Container folders (folders that just hold other project folders) get a simpler format: purpose + contents table only. No routing needed.
- Stage folders get the stage contract format: Purpose, Inputs, Process, Outputs, Routing.
- Routing tables should have 3–5 rows covering the most common tasks for that folder type.
- Keep each CONTEXT.md under 500 tokens — it's a routing file, not documentation.
Step 6: Create or Report
If argument is `lint`:
- List every folder that needs a CONTEXT.md
- Show what alternative routing exists (if any)
- Do NOT create any files
- End with: "Run
/icm-context-scaffold updateto create these files."
If argument is `update` (default):
- Create each missing CONTEXT.md
- Do NOT overwrite any existing CONTEXT.md — ever
- Do NOT modify any other files
- After creating, run a quick check: does the parent CONTEXT.md or IDENTITY.md reference this folder? If not, note it: "Also run
/icm-syncto update IDENTITY.md routing."
Step 7: Report
Output a summary:
If in update mode, confirm: "CONTEXT.md files have been created." If in lint mode, confirm: "No files were changed."
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILLS/icm-context-scaffold/SKILL.md
Popularity
- Repository stars
- 75
- Repository forks
- 8
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ktncodes/icm-template/icm-context-scaffold)