Deepen Module Design
JuliusBrussee/cavekit
Scans the code a spec touches for its shallowest module, then proposes a refactor that hides more behind a smaller interface without changing behavior.
Improve architecture across modules by deepening interfaces.
$ npx skills add notque/vexjoy-agent --skill architecture-deepening -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install notque/vexjoy-agent architecture-deepening --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/notque/vexjoy-agent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/research/architecture-deepening .claude/skills/architecture-deepening && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "architecture-deepening" agent skill from https://github.com/notque/vexjoy-agent/tree/main/skills/research/architecture-deepening into .claude/skills/architecture-deepening/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-deepening", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/notque/vexjoy-agent/tree/main/skills/research/architecture-deepeningType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add notque/vexjoy-agent --skill architecture-deepening -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install notque/vexjoy-agent architecture-deepening --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/notque/vexjoy-agent.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/research/architecture-deepening .agents/skills/architecture-deepening && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "architecture-deepening" agent skill from https://github.com/notque/vexjoy-agent/tree/main/skills/research/architecture-deepening into .agents/skills/architecture-deepening/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-deepening", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add notque/vexjoy-agent --skill architecture-deepening -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install notque/vexjoy-agent architecture-deepening --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/notque/vexjoy-agent.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/research/architecture-deepening .cursor/skills/architecture-deepening && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "architecture-deepening" agent skill from https://github.com/notque/vexjoy-agent/tree/main/skills/research/architecture-deepening into .cursor/skills/architecture-deepening/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-deepening", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/notque/vexjoy-agent.git --path skills/research/architecture-deepening--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add notque/vexjoy-agent --skill architecture-deepening -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install notque/vexjoy-agent architecture-deepening --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/notque/vexjoy-agent.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/research/architecture-deepening .gemini/skills/architecture-deepening && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "architecture-deepening" agent skill from https://github.com/notque/vexjoy-agent/tree/main/skills/research/architecture-deepening into .gemini/skills/architecture-deepening/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-deepening", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install notque/vexjoy-agent architecture-deepeningInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add notque/vexjoy-agent --skill architecture-deepening -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/notque/vexjoy-agent.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/research/architecture-deepening .github/skills/architecture-deepening && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "architecture-deepening" agent skill from https://github.com/notque/vexjoy-agent/tree/main/skills/research/architecture-deepening into .github/skills/architecture-deepening/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-deepening", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add notque/vexjoy-agent --skill architecture-deepening -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install notque/vexjoy-agent architecture-deepening --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/notque/vexjoy-agent.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/research/architecture-deepening .opencode/skills/architecture-deepening && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "architecture-deepening" agent skill from https://github.com/notque/vexjoy-agent/tree/main/skills/research/architecture-deepening into .opencode/skills/architecture-deepening/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "architecture-deepening", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
architecture-deepeningImprove architecture across modules by deepening interfaces.
Architecture Deepening is an agent skill from notque/vexjoy-agent. Improve architecture across modules by deepening interfaces.
Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `references/decision-memory-record.schema.json`, `references/deepening-strategies.md` and `references/interface-design.md`).
The repository describes itself as: VexJoy AI Agent with Jev Intelligent Routing - /do routes plain-English requests to the right specialist agent and gates the work with reviews, tests, and a learning loop. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 5218674. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
AgentBashReadWriteEditGlobGrepFrom allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Architecture Deepening loads about 3.3k tokens when it runs, and up to ~13k if it reads all its reference files. Until then it costs about 21 tokens; SKILL.md has 1,349 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
allowed-tools: Agent, Bash, Read, Write, Edit, Glob, GrepAutomated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from notque/vexjoy-agent at commit 5218674, republished under its MIT licence (© notque). 1,349 words, ~3,306 tokens.
.claude/skills/architecture-deepening/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.Find shallow modules and propose deepening opportunities. Not a code review -- does not find bugs or style violations. Finds modules where the interface is too close to the implementation, where users must understand internals to use the API, and where small interface changes would absorb disproportionate complexity.
When to use: After codebase onboarding or review when improvement was requested, before a cross-module feature, after a fix exposes a missing test seam, or when callers repeatedly need source knowledge or multi-module coordination.
Differs from full-repo-review: Full-repo-review finds defects. This skill finds structural improvement opportunities. Pair well: run full-repo-review first to fix defects, then architecture-deepening to raise the bar.
Load on demand when working in the named phase.
| Phase | Reference | Content |
|---|---|---|
| Phase 1 | references/maintenance-lifecycle.md | Entry rules, recent-change scope, decision memory, candidate schema, typed handoff |
| Phase 1 | references/vocabulary.md | Shared vocabulary: module, depth, seam, leverage, locality, deletion test |
| Phase 2 | references/interface-design.md | Patterns for exploring alternative interfaces, deletion test |
| Phase 2-3 | references/deepening-strategies.md | Dependency categorization, safe deepening, testing strategies |
Run phases in order until a terminal gate. Survey and design keep source code read-only; Write/Edit apply only to user-approved decision records after selection. Existing delivery workflows own code changes. The user selects candidates and decides whether a handoff proceeds.
Language-agnostic. Vocabulary and strategies apply to Go, Python, TypeScript, or any codebase with module boundaries.
Goal: Identify shallow modules -- where the interface exposes too much implementation detail.
Step 1: Choose an evidence-fed scope
Read references/maintenance-lifecycle.md. Use the user's named directory/package first. Otherwise start from the review, overview, feature, or fixed-bug evidence that triggered the run. With no such artifact, rank module paths changed in the last 50 commits and inspect the top bounded set. Recent change raises priority; it is not proof of shallowness. Widen once only when the initial scope has no usable evidence and the request is repository-wide.
Read prior architecture decisions before producing candidates. Suppress a matching stable rejection unless its recorded assumptions changed.
Then scan the chosen scope for module boundaries.
find . -name "go.mod" -o -name "package.json" -o -name "pyproject.toml" -o -name "__init__.py" -o -name "index.ts" -o -name "mod.rs" 2>/dev/null | head -50
# Exported symbols per package (Go)
grep -rn "^func [A-Z]" --include="*.go" | cut -d: -f1 | sort | uniq -c | sort -rn | head -20
# Public exports (TypeScript)
grep -rn "^export " --include="*.ts" --include="*.tsx" | cut -d: -f1 | sort | uniq -c | sort -rn | head -20Step 2: Apply shallowness signals
Read references/vocabulary.md for full vocabulary. A module is shallow when:
For each candidate, cite the interface, caller burden, affected callers, change evidence, and prior-decision match. Score each: HIGH (clear shallowness, high-leverage fix), MEDIUM (some shallowness, moderate leverage), LOW (minor, low impact). Rank only candidates that meet the evidence floor in maintenance-lifecycle.md.
Step 3: Identify seams
For HIGH-scored modules, identify seams -- natural boundaries where the module could absorb more responsibility. See references/vocabulary.md for seam types (data, protocol, temporal).
Gate: Emit either (a) ranked, evidence-backed candidates with seam analysis or (b) the no-findings record plus its terminal typed handoff from maintenance-lifecycle.md. Validate no-findings inline through scripts/handoff.py validate --stdin; it creates no file. Both pass. No-findings closes the run; candidate count is never padded.
Goal: Show findings, let the user choose, then explore alternatives for selected candidates.
Step 1: Present findings table
| Rank | Module | Depth Score | Evidence | Seam | Leverage | Prior Decision |
|------|--------|-------------|----------|------|----------|----------------|
| 1 | pkg/config | HIGH | 12 callers construct the same internal shape | Data seam | High | none |
| 2 | internal/auth | MEDIUM | 4 callers coordinate refresh state | Protocol seam | Medium | assumptions changed |For each: what it does today, why it is shallow, the exact interface and caller evidence, where the seam is, leverage, change likelihood, and any prior decision.
Step 2: Get user input
Ask which candidate to explore, reject, or defer. Stop before interface design until the user chooses. Rejection and deferral may close immediately with a terminal handoff. Persist them only when the durability test passes and the user approves the write.
Step 3: Explore interface alternatives
Read references/interface-design.md and references/deepening-strategies.md. Design 2-3 alternative interfaces per candidate:
Gate: A selected candidate has at least 2 alternatives with deletion-test results. Rejection or deferral is a valid terminal result after its close handoff; durable state is optional and consent-gated.
Goal: Grill the chosen approach until the best deepening emerges. Collaborative design, not presentation.
Step 1: Challenge each alternative
references/deepening-strategies.md.Step 2: Iterate until convergence
Use at most 3 design rounds. Continue until:
Each round narrows the design space. If round 3 does not converge, stop and ask whether to select, defer, or close as no-change. This lifecycle has no prototype state; a requested prototype starts a separately approved workflow after deferral.
Step 3: Document the decision
## Deepening Decision: {module name}
**Current interface**: {what callers see today}
**Proposed interface**: {what callers would see after}
**What moves behind the interface**: {details callers no longer manage}
**Deletion test**: {what caller code can be removed}
**Migration path**: {incremental adoption plan}
**Trade-offs accepted**: {flexibility traded for simplicity}
**Next skill**: {workflow | feature-lifecycle | null}
**Next pipeline**: {systematic-refactoring | null}Read references/maintenance-lifecycle.md and emit its typed Architecture Change Handoff. Emission means returning the complete JSON contract even when execution is read-only; persistence is a separate authorized action. Include "origin": "architecture-deepening". A rejected input is not a terminal architecture result: emit no handoff, authorize no path, and dispatch no successor when fingerprint, containment, symlink, or provenance validation fails. For action-bearing results when writes are authorized, pipe that same JSON to scripts/handoff.py write --stdin; this neutral boundary validates the schema, decoded candidate module, paths, successor, and ADR provenance before its repository-anchored atomic writer makes the first write under adr/handoffs/. Validate no-findings with scripts/handoff.py validate --stdin and keep it inline. Classify bounded behavior-preserving work with next_skill: workflow and next_pipeline: systematic-refactoring; classify public or cross-module interface migration and new behavior with next_skill: feature-lifecycle and a null pipeline; close no-change results with both fields null. Every selected handoff contains non-empty repository-relative module and caller paths, current/proposed interface, migration, and measurable criteria for verification-before-completion.
For a MEDIUM/HIGH behavior-preserving refactor or HIGH-risk no-change result, create one canonical ADR through scripts/repository_artifact.py write, register it, capture its hash, run adr-query.py validate-registration, and consult it before terminal dispatch. For interface migration or new behavior, leave consultation fields null and dispatch the handoff to feature DESIGN. Feature DESIGN adopts it, creates/registers the canonical feature ADR, and the pre-IMPLEMENT consultation gate consults every architecture-origin feature once, including Simple work.
When the durability test passes and the user approves persistence, create a schema-valid JSON decision record and use only decision_memory.py append. The command records shared/local scope, locks, re-reads, and atomically fsyncs the update. Offer docs/architecture-decisions.md for shared memory or .local/architecture-decisions.md for discoverable ignored memory. Do not edit either store directly.
Gate: Design conversation completed or a terminal non-selected result recorded. Decision and typed handoff contain every required field. Human approved the next workflow before dispatch.
| Error | Cause | Solution |
|---|---|---|
| No shallow modules found | Well-structured or too small codebase | Valid outcome. Suggest re-running after next major feature. |
| Recent-change scan is empty | New repository, shallow history, or named scope is dormant | Use the named/originating evidence scope. Report no findings if that scope also misses the evidence floor. |
| Too many candidates | Pervasive shallowness | Focus on 5 highest-leverage (most callers benefit). Split into sessions by subsystem. |
| Prior rejection matches a candidate | Survey rediscovered a settled decision | Suppress it unless recorded assumptions changed; cite the decision in the no-findings or candidate record. |
| Artifact root or target is a symlink | A handoff or ADR write could escape the repository | Reject the input before the first write; do not defer or dispatch an invalid artifact request. |
| User disagrees with assessment | Model misjudged boundaries or caller patterns | Ask user to explain design intent. Complexity may be intentional (performance, backward compatibility). |
| Design conversation does not converge | Fundamental trade-off disagreement | Defer or close as no-change. Start any prototype only as a separately approved workflow. |
© notque, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 7 other files (scripts, references) in skills/research/architecture-deepening of notque/vexjoy-agent.
Open the folder on GitHubat commit 5218674
Architecture Deepening next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Architecture Deepening this skillnotque/vexjoy-agent | 439 | — | ~3.3k | Automated safety check: Notes | MIT | |
| Deepen Module DesignJuliusBrussee/cavekit | 1.2k | — | ~1k | Automated safety check: Pass | MIT | |
| Network Interface Healthaffaan-m/ECC | 276k | 1 repos | ~1.4k | Automated safety check: Pass | MIT | |
| Es Modulesthedaviddias/Front-End-Checklist | 74k | — | ~482 | Automated safety check: Pass | MIT | |
| Make Interfaces Feel Betteraffaan-m/ECC | 276k | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Skill Improversickn33/agentic-awesome-skills | 47k | 2 repos | ~1.5k | Automated safety check: Pass | MIT |
JuliusBrussee/cavekit
Scans the code a spec touches for its shallowest module, then proposes a refactor that hides more behind a smaller interface without changing behavior.
affaan-m/ECC
Diagnose interface errors, drops, CRCs, duplex mismatches, flapping, speed negotiation issues, and counter trends on routers, switches, and Linux hosts.
thedaviddias/Front-End-Checklist
A skill your agent uses when reviewing scripts, client components, bundles, or runtime behavior related to Use ES modules (import/export).
affaan-m/ECC
Apply concrete design-engineering details that make interfaces feel polished.
sickn33/agentic-awesome-skills
Iteratively improve a Claude Code skill using the skill-reviewer agent until it meets quality standards.
sanity-io/sanity
Explore a codebase to find opportunities for architectural improvement, focusing on making the codebase more testable by deepening shallow modules.
notque/vexjoy-agent
Deterministic palette/matrix pixel art (not AI). An agent skill from notque/vexjoy-agent.
notque/vexjoy-agent
Pull request lifecycle: commit, codex review, sync, review, fix, status, cleanup, and PR mining.
notque/vexjoy-agent
Code quality: cleanup, linting, formatting, quality gates. An agent skill from notque/vexjoy-agent.
notque/vexjoy-agent
Statistical rule discovery from Go codebase patterns. An agent skill from notque/vexjoy-agent.
notque/vexjoy-agent
Review and fix temporal references in code comments. An agent skill from notque/vexjoy-agent.
notque/vexjoy-agent
Content operations: editorial calendar, marketing, publishing, social media management.
Improve architecture across modules by deepening interfaces. Architecture Deepening is an agent skill from notque/vexjoy-agent. Improve architecture across modules by deepening interfaces.
Run `npx skills add notque/vexjoy-agent --skill architecture-deepening -a claude-code`. Or copy the skill folder (skills/research/architecture-deepening in notque/vexjoy-agent) into .claude/skills/architecture-deepening in your project. Claude Code loads it when a task matches its description.
Run `npx skills add notque/vexjoy-agent --skill architecture-deepening -a codex`. Or copy the skill folder (skills/research/architecture-deepening in notque/vexjoy-agent) into .agents/skills/architecture-deepening in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add notque/vexjoy-agent --skill architecture-deepening -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/architecture-deepening, .gemini/skills/architecture-deepening, .github/skills/architecture-deepening and .opencode/skills/architecture-deepening in your project.
Going by SKILL.md and its folder, Architecture Deepening needs Python for the scripts in its folder. Our summary lists: Python 3. Its frontmatter pre-approves these tools: Agent, Bash, Read, Write, Edit, Glob, Grep.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Architecture Deepening is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.5k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Architecture Deepening: Deepen Module Design (JuliusBrussee/cavekit, 1.2k stars), Network Interface Health (affaan-m/ECC, 276k stars), Es Modules (thedaviddias/Front-End-Checklist, 74k stars) and Make Interfaces Feel Better (affaan-m/ECC, 276k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
notque (a GitHub user) maintains it in notque/vexjoy-agent, which has 439 GitHub stars. The repository holds 61 skills in this directory. The repository was last updated on October 3, 2026.
Source: notque/vexjoy-agent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.