Agent Skill
Setup TS Deep Modules skill
setup-ts-deep-modulesMatt Pocock Skillsskills/in-progress/setup-ts-deep-modules/SKILL.md
Wire dependency-cruiser into a TypeScript repo so each package is a deep module, with implementation hidden in subfolders and reachable only through its entry-point files. User-invoked.
always on
45 tokname + description
once used
1,763 tokSKILL.md body
bundled files
21 scripts
installs
361kskills.sh
Install the Setup TS Deep Modules skill
Skills CLI (Claude Code, Codex, Cursor and others)
npx skills add https://github.com/mattpocock/skills --skill setup-ts-deep-modules
Claude Code, by hand (all projects)
git clone --depth 1 https://github.com/mattpocock/skills.git /tmp/skills mkdir -p ~/.claude/skills cp -R /tmp/skills/skills/in-progress/setup-ts-deep-modules ~/.claude/skills/setup-ts-deep-modules
For one project only, copy the folder into .claude/skills/ in that project instead. It is marked disable-model-invocation, so the agent won't pick it on its own: you run it as /setup-ts-deep-modules.
What it costs your context
Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.
| When | What loads | Cost |
|---|---|---|
| Every session | Name and description | 45 tok |
| When the agent uses it | The SKILL.md instructions | 1,763 tok |
| Only if opened | 2 bundled files (4 KB) | varies |
Until it is used, setup-ts-deep-modules costs about 30× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 38 skills from mattpocock/skills would load 1,290 tokens of descriptions. Skills vs MCP study
Checks
- Ships scripts the agent can run. Read them before installing.
Checked 2026-10-22 · method
What's inside
The headings of its SKILL.md. Read the full file on GitHub.
- Setup TS Deep Modules
- The shape this enforces
- Steps
- 1. Detect the environment
- 2. Install dependency-cruiser
- 3. Write the config
- 4. Wire it into the checks
- 5. Scaffold the example package
- 6. Prove the rules bite
- 7. Document the convention
- Notes
More skills from mattpocock/skills
- grill-memattpocock/skills
A relentless interview to sharpen a plan or design.
1.4M14 tok idle · 9 in use - grill-with-docsmattpocock/skills
A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.
1.2M30 tok idle · 17 in use - improve-codebase-architecturemattpocock/skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
1.2M32 tok idle · 1,304 in use - tddmattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
1.1M33 tok idle · 735 in use - setup-matt-pocock-skillsmattpocock/skills
Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.
1.0M44 tok idle · 1,673 in use - handoffmattpocock/skills
Compact the current conversation into a handoff document for another agent to pick up.
1.0M19 tok idle · 151 in use - triagemattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
979k33 tok idle · 1,510 in use - prototypemattpocock/skills
Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.
976k39 tok idle · 597 in use