skilldeck
CLAUDE.md15 starsChanged 8 months agoMITView on GitHub
Skilldeck is a desktop application for managing AI agent skill files (SKILL.md, CLAUDE.md, AGENTS.md) across projects and tools. It solves three problems: Skilldeck is also a harness engineering experiment. It is being built by AI agents following harness methodology. The build process itself is the proof of concept. Full verification sequence — every step must pass before committing: If Step 2 or Step 3 fails, you have a regression or invariant violation. Do not commit. Fix the failure first —…
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 7 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Read before touching: Before any coding session begins, read this file, claude-progress.txt, and feature_list.json.
- Very specific: line 45
Do not add features not in
feature_list.json: If you think something is missing, add a comment to claude-progress.txt under "Suggested … - Distinctive: line 83
Wait for explicit confirmation.
- Distinctive: line 127
If either file is invalid JSON after the update, fix it before proceeding.
- Distinctive: line 130
If human said "add and keep working on current task" → queue it, finish current feature first
- Distinctive: line 131
If human said "add and build it now" → finish current feature first, then build the new one
- Distinctive: line 132
Never abandon a half-built feature to start a new one
- Very specific: line 150
Every interactive UI element that corresponds to a feature in feature_list.json must have a data-testid attribute.
- Very specific: line 159
When building a component, add data-testid at the same time as the component — not after.
- Very specific: line 242
If libraryHash !== currentHash, the deployment is stale (file was modified after deploy).
- Very specific: line 258
Do not build Phase 2 or 3 features during Phase 1.
- Distinctive: line 262
When running autonomously (no human present), follow this loop exactly:
- Distinctive: line 291
All three approaches attempted (what you changed each time)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skilldeck — Agent Project Bible
What This Project Is
Skilldeck is a desktop application for managing AI agent skill files (SKILL.md, CLAUDE.md, AGENTS.md) across projects and tools. It solves three problems:
- Scatter — skill files live in different places, copies diverge, starting a new project means rebuilding behavioral infrastructure from scratch
- Opacity — no way to know which skills are active in a project, at what version, or whether they've drifted
- No verification — no feedback mechanism to know if a skill file is actually changing agent behavior
Skilldeck is also a harness engineering experiment. It is being built by AI agents following harness methodology. The build process itself is the proof of concept.
Rules Every Agent Must Follow
- Read before touching. Before any coding session begins, read this file,
claude-progress.txt, andfeature_list.json. Do not skip this. One feature at a time. One feature, one commit. Pick the highest-priority incomplete feature from
feature_list.json. Complete it. Run the full verification sequence below. Commit. Then move to the next feature.Full verification sequence — every step must pass before committing:
# Step 1 — feature test (must pass first) npx playwright test verify.spec.ts --grep F00X # Step 2 — invariant checks (always-true system properties) node check-invariants.js --always # Step 3 — regression gate (re-run affected passing tests) REGRESSION=$(node get-regression-tests.js F00X) npx playwright test verify.spec.ts --grep "$REGRESSION" # Step 4 — only if all three pass: mark passing, commit node -e "const fs=require('fs');const f=JSON.parse(fs.readFileSync('feature_list.json','utf8'));const x=f.features.find(x=>x.id==='F00X');x.passes=true;x.notes='Verified with Playwright + invariants + regression gate';fs.writeFileSync('feature_list.json',JSON.stringify(f,null,2));" git add . git commit -m "feat(F00X): short description of what was built"If Step 2 or Step 3 fails, you have a regression or invariant violation. Do not commit. Fix the failure first — even if it means reverting the new feature and understanding why it broke existing behavior. The regression gate debug output (stderr) will tell you which surfaces were affected and which tests failed.
Never mark a feature as passing without verifying it. Passing means: the feature works as a user would experience it — not that the code exists, not that it compiles, not that a unit test passed. Verification protocol for UI features: start the app, interact with the specific UI element described in the feature steps, observe the result. If you cannot run the app or interact with the UI, mark
passes: falsewith note "NEEDS HUMAN VERIFICATION" — do NOT assume the UI works because the code looks correct. Code that exists but UI that does not respond is a FAILING feature.The mandatory verification command before marking any feature passing:
npx playwright test verify.spec.ts --grep F001Replace F001 with the feature ID. If the test passes, you may mark the feature passing. If the test fails or errors, fix the issue first. If the feature has no test yet (F007, F010, F012, F013, F016, F017, F018), add a note "No automated test — requires human verification" and do not mark it passing without explicit human confirmation.
- Leave the environment clean at the end of every session. Update
claude-progress.txtwith a session entry. The app must be in a working state — no broken code, no half-implemented features left uncommitted. If you started a feature and didn't finish it, revert the changes withgit checkout .rather than leaving broken code in the working tree. - Do not add features not in
feature_list.json. If you think something is missing, add a comment toclaude-progress.txtunder "Suggested additions" but do not implement it. - Do not modify
feature_list.jsonstructure. You may only updatepassesandnotesfields. Never remove a feature. Never rewrite descriptions. Always update feature_list.json using this Node command — never use string replace on JSON:
node -e "const fs=require('fs');const f=JSON.parse(fs.readFileSync('feature_list.json','utf8'));const x=f.features.find(x=>x.id==='F001');x.passes=true;x.notes='notes here';fs.writeFileSync('feature_list.json',JSON.stringify(f,null,2));console.log('marked F001 passing');"Replace F001 with the actual feature ID. Replace the notes string as appropriate.
7. Run ./init.sh at the start of every session to ensure the environment is in a working state before building. This works in Claude Code's bash environment on Windows. For manual PowerShell use, run .\init.ps1 instead.
8. If something is broken when you arrive, fix it before adding anything new. A broken foundation makes everything built on top of it unreliable.
9. If a Playwright test fails 3 times in a row on the same feature, stop. Do not try a fourth approach. Write a blocker entry in claude-progress.txt with: what you tried all three times, the exact error output, your root cause hypothesis. Commit whatever is working. Then stop completely — do not move to the next feature. This rule is absolute and cannot be overridden by reasoning about "just one more approach."
- Regression gate — never commit if previously-passing tests now fail. The
get-regression-tests.jsscript derives which tests to re-run based on what files you changed. If any previously-passing feature fails the regression gate, that is a regression you introduced. Do not mark the new feature passing. Do not commit. Understand what changed, fix the regression, then re-run the full verification sequence from Step 1. A new feature that breaks an old feature is not a completed feature. Feature intake protocol — when the human requests a new feature in chat:
a. CHECK — search
feature_list.jsonfor similar existing features. If a close match exists, clarify whether this extends it or is genuinely new.b. DRAFT — create a complete feature entry with all required fields:
{ "id": "F0XX", "phase": 1, "category": "library|projects|deployment|settings|discovery", "name": "Short name", "description": "One sentence, user-facing, verifiable", "steps": ["minimum 4 end-to-end steps a Playwright test can follow"], "touches": ["surfaces from system-contract.json this feature shares"], "depends_on": ["feature IDs that must pass before this can be built"], "passes": false, "notes": "" }c. CONFIRM — show the draft to the human before writing anything:
"I'm adding this feature. Does this match what you want? [show draft entry] If yes, I'll add it to feature_list.json and update the surfaces map."Wait for explicit confirmation. Do not add to the feature list without it.
d. REGISTER — two files must be updated atomically. Never update one without the other.
Register in feature_list.json (never string replace):
node -e " const fs=require('fs'); const f=JSON.parse(fs.readFileSync('feature_list.json','utf8')); f.features.push({ id:'F0XX', phase:3, category:'...', name:'...', description:'...', steps:[], touches:[], depends_on:[], passes:false, notes:'' }); fs.writeFileSync('feature_list.json',JSON.stringify(f,null,2)); console.log('Added F0XX'); "Register new surfaces in system-contract.json — for each surface listed in
touchesthat does not already exist in system-contract.json, add it:node -e " const fs=require('fs'); const c=JSON.parse(fs.readFileSync('system-contract.json','utf8')); // Add to the appropriate phase section (phase_2_surfaces or phase_3_surfaces) // If the surface already exists, add the new feature ID to its affected_features array // If the surface is new, create it with description, files, and affected_features // Example — adding a new surface: c.phase_3_surfaces['new.surface']={ description:'What this surface is', files:['path/to/file.ts'], affected_features:['F0XX'] }; // Example — adding feature to existing surface: c.phase_3_surfaces['store.skills'].affected_features.push('F0XX'); fs.writeFileSync('system-contract.json',JSON.stringify(c,null,2)); console.log('Updated system-contract.json'); "Verify both files are valid JSON after update:
node -e "require('./feature_list.json'); require('./system-contract.json'); console.log('Both valid');"If either file is invalid JSON after the update, fix it before proceeding.
e. SEQUENCE — decide priority:
- If human said "add and keep working on current task" → queue it, finish current feature first
- If human said "add and build it now" → finish current feature first, then build the new one
- Never abandon a half-built feature to start a new one
Phase 2 TDD addition: For Phase 2 features, write the failing test in
verify.spec.tsBEFORE implementing. Commit the failing test first:test(F0XX): add failing test. Then implement. Then commit the passing feature:feat(F0XX): implement — test now green.
Stack
- Runtime: Electron 28+
- Frontend: React 18 + TypeScript
- Build: Vite
- State: Zustand
- Styling: Tailwind CSS
- File I/O: Node.js fs (via Electron main process)
- IPC: Electron contextBridge + ipcRenderer/ipcMain
- CLI integration: Node.js child_process (for Playground feature — Phase 2)
- No backend. No cloud. No database. Everything lives on the local filesystem.
Testing Requirements
Every interactive UI element that corresponds to a feature in feature_list.json must have a data-testid attribute. This is not optional — the Playwright verification suite in verify.spec.ts depends on these selectors to test features programmatically.
Required data-testid values:
- Navigation:
nav-library,nav-projects,nav-settings - Views:
library-view,projects-view,settings-view - Library:
skill-item,new-skill-btn,skill-editor,save-btn,delete-skill,search-input,empty-state - Projects:
add-project-btn,project-name-input,project-path-input,confirm-add-project - Deployment:
deploy-btn,confirm-deploy,status-current,status-stale
When building a component, add data-testid at the same time as the component — not after. Missing data-testid means the feature cannot be verified and cannot be marked passing.
Repo Structure
skilldeck/
├── CLAUDE.md # This file — read first
├── claude-progress.txt # Session log — read second
├── feature_list.json # Ground truth for completion — read third
├── system-contract.json # Invariants + surfaces map for regression detection
├── init.sh # Start the dev environment
├── check-invariants.js # Run invariant checks before every commit
├── get-regression-tests.js # Derive regression tests from changed files
├── reset-features.js # Reset falsely-passing features
├── package.json
├── vite.config.ts
├── electron/
│ ├── main.ts # Electron main process
│ ├── preload.ts # Context bridge
│ └── ipc/ # IPC handlers (one file per domain)
│ ├── skills.ts
│ ├── projects.ts
│ └── filesystem.ts
├── src/
│ ├── main.tsx # React entry
│ ├── App.tsx
│ ├── store/ # Zustand stores (one per domain)
│ │ ├── skillsStore.ts
│ │ └── projectsStore.ts
│ ├── components/
│ │ ├── ui/ # Primitive UI components
│ │ ├── skills/ # Skill-domain components
│ │ └── projects/ # Project-domain components
│ ├── views/ # Top-level route views
│ │ ├── LibraryView.tsx
│ │ ├── ProjectsView.tsx
│ │ └── SettingsView.tsx
│ └── types/
│ └── index.ts # Shared TypeScript types
└── public/Data Model
Skill File (on disk)
A skill file is a .md file with optional YAML frontmatter:
---
name: scope-killer
description: "..."
tags: [thinking, scoping]
---
# Content hereSkilldeck Config (per user, stored at ~/.skilldeck/config.json)
{
"libraryPath": "/Users/ali/.skilldeck/library",
"projects": [
{
"id": "uuid",
"name": "DataBridge",
"path": "/Users/ali/projects/databridge",
"skillsPath": ".claude/skills"
}
]
}Deployment Record (stored at ~/.skilldeck/deployments.json)
{
"projectId": {
"skillName": {
"deployedAt": "ISO timestamp",
"libraryHash": "md5 of library version at deploy time",
"currentHash": "md5 of deployed file now"
}
}
}If libraryHash !== currentHash, the deployment is stale (file was modified after deploy).
Design Aesthetic
Skilldeck is a developer tool. The aesthetic should be: refined dark utility — not flashy, not generic. Think Linear, Raycast, or Zed. Dark background, precise typography, tight spacing, subtle borders. Every pixel earns its place. No gradients for decoration. No rounded corners on everything. Information density over whitespace padding.
Primary color: a single muted accent (not blue — everyone uses blue). Consider slate + amber, or dark + warm white.
Phase Boundaries
Phase 1 (current): Library + Projects + Deployment state. No AI calls. No Playground. No Decks. Just the file management foundation done properly.
Phase 2: Skill Playground (Claude Code CLI integration), A/B mode, Behavioral diff.
Phase 3: Deck system, Version history, Cross-agent translation.
Do not build Phase 2 or 3 features during Phase 1. If the urge arises, add to "Suggested additions" in claude-progress.txt.
Autonomous Loop Protocol
When running autonomously (no human present), follow this loop exactly:
LOOP:
1. Run ./init.sh
2. Read claude-progress.txt
3. Find next feature where passes = false in feature_list.json (lowest ID, current phase)
4. If none → all phase features pass → write final session entry → STOP
5. Check depends_on — all listed features must pass before building this one
If a dependency is failing → skip this feature, find next buildable one
6. Implement the feature
7. Run feature test:
npx playwright test verify.spec.ts --grep F00X
If fails → increment attempt counter → if < 3 try again → if >= 3 STOP (blocker)
8. Run invariant checks:
node check-invariants.js --always
If fails → you broke a system invariant → fix before proceeding → go to step 7
9. Run regression gate:
REGRESSION=$(node get-regression-tests.js F00X)
npx playwright test verify.spec.ts --grep "$REGRESSION"
If any previously-passing test now fails → you introduced a regression
Fix the regression → go to step 7 (full sequence again)
10. All checks pass → mark passing → write progress → commit → go to LOOPThe stuck rule is absolute. Three failed attempts = stop and surface the problem.
When stopping due to a blocker, the claude-progress.txt entry must include:
- The feature ID and name
- All three approaches attempted (what you changed each time)
- The exact error output from the last attempt
- Which invariant or regression test failed (if applicable)
- Your hypothesis about the root cause
- What you think needs to happen to unblock it
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

