marinvch/Cortex
A context manager for new and legacy codebases — indexes a repo, reports what is missing, and writes the context layer agents actually read. Installable as a Claude plugin.
field: Developer tools workflow: DocsPR / code reviewGit & commitsSecurity reviewPlanning & specs runs claude in CI
stack: JavaScript
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
Copy this rig
# review before running: this installs third-party code
$ npx degit marinvch/Cortex/.claude ./rig-cortex # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit marinvch/Cortex/skills/architecture-review .claude/skills/architecture-review $ npx degit marinvch/Cortex/skills/audit-notes .claude/skills/audit-notes $ npx degit marinvch/Cortex/skills/challenge-plan .claude/skills/challenge-plan $ npx degit marinvch/Cortex/skills/change-impact .claude/skills/change-impact $ npx degit marinvch/Cortex/skills/clarify-request .claude/skills/clarify-request $ npx degit marinvch/Cortex/skills/connect-mcp .claude/skills/connect-mcp $ npx degit marinvch/Cortex/skills/create-team .claude/skills/create-team $ npx degit marinvch/Cortex/skills/daily-plan .claude/skills/daily-plan $ npx degit marinvch/Cortex/skills/debug-issue .claude/skills/debug-issue $ npx degit marinvch/Cortex/skills/define-terms .claude/skills/define-terms $ npx degit marinvch/Cortex/skills/design-spec .claude/skills/design-spec $ npx degit marinvch/Cortex/skills/end-of-day-summary .claude/skills/end-of-day-summary $ npx degit marinvch/Cortex/skills/handover-notes .claude/skills/handover-notes $ npx degit marinvch/Cortex/skills/join-team .claude/skills/join-team $ npx degit marinvch/Cortex/skills/merge-work .claude/skills/merge-work $ npx degit marinvch/Cortex/skills/migrate-legacy-engine .claude/skills/migrate-legacy-engine $ npx degit marinvch/Cortex/skills/personal-setup .claude/skills/personal-setup $ npx degit marinvch/Cortex/skills/quick-note .claude/skills/quick-note $ npx degit marinvch/Cortex/skills/register-projects .claude/skills/register-projects $ npx degit marinvch/Cortex/skills/repo-map .claude/skills/repo-map $ npx degit marinvch/Cortex/skills/resolve-conflicts .claude/skills/resolve-conflicts $ npx degit marinvch/Cortex/skills/resume-work .claude/skills/resume-work $ npx degit marinvch/Cortex/skills/retrospective .claude/skills/retrospective $ npx degit marinvch/Cortex/skills/review-change .claude/skills/review-change $ npx degit marinvch/Cortex/skills/set-profile .claude/skills/set-profile $ npx degit marinvch/Cortex/skills/setup-repo .claude/skills/setup-repo $ npx degit marinvch/Cortex/skills/story-map .claude/skills/story-map $ npx degit marinvch/Cortex/skills/suggest-skills .claude/skills/suggest-skills $ npx degit marinvch/Cortex/skills/summarize-files .claude/skills/summarize-files $ npx degit marinvch/Cortex/skills/sync-website .claude/skills/sync-website $ npx degit marinvch/Cortex/skills/trim-agent-docs .claude/skills/trim-agent-docs $ npx degit marinvch/Cortex/skills/update-plugin .claude/skills/update-plugin $ npx degit marinvch/Cortex/skills/weekly-review .claude/skills/weekly-review $ npx degit marinvch/Cortex/skills/whats-changed .claude/skills/whats-changed $ npx degit marinvch/Cortex/skills/write-agent-docs .claude/skills/write-agent-docs $ npx degit marinvch/Cortex/skills/write-area-brief .claude/skills/write-area-brief $ npx degit marinvch/Cortex/skills/write-context-docs .claude/skills/write-context-docs
$ curl -fsSL --create-dirs -o .claude/agents/core-owner.md https://raw.githubusercontent.com/marinvch/Cortex/master/.claude/agents/core-owner.md $ curl -fsSL --create-dirs -o .claude/agents/docs-owner.md https://raw.githubusercontent.com/marinvch/Cortex/master/.claude/agents/docs-owner.md $ curl -fsSL --create-dirs -o .claude/agents/index-owner.md https://raw.githubusercontent.com/marinvch/Cortex/master/.claude/agents/index-owner.md $ curl -fsSL --create-dirs -o .claude/agents/mcp-owner.md https://raw.githubusercontent.com/marinvch/Cortex/master/.claude/agents/mcp-owner.md $ curl -fsSL --create-dirs -o .claude/agents/cortex-auditor.md https://raw.githubusercontent.com/marinvch/Cortex/master/agents/cortex-auditor.md $ curl -fsSL --create-dirs -o .claude/agents/cortex-role-reviewer.md https://raw.githubusercontent.com/marinvch/Cortex/master/agents/cortex-role-reviewer.md
This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 17.0k rigs:
{
"permissions": {
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(**/.env)",
"Read(~/.ssh/**)",
"Bash(git push --force:*)",
"Read(**/*.pem)",
"Read(.env)",
"Read(~/.aws/**)",
"Read(**/*.key)",
"Read(**/.env.*)",
"Bash(git push --force*)",
"Bash(rm -rf *)",
"Bash(rm -rf:*)",
"Bash(sudo *)",
"Bash(sudo:*)",
"Bash(rm -rf /)",
"Bash(git push -f:*)",
"Read(.env.*)",
"Read(./secrets/**)",
"Bash(git reset --hard*)"
],
"ask": [
"Bash(git push:*)",
"Bash(git push *)",
"Bash(gh pr merge *)",
"Bash(git commit:*)",
"Bash(rm *)",
"Bash(gh pr merge:*)",
"Bash(npm publish:*)",
"Bash(git reset --hard:*)",
"Bash(git clean *)",
"Bash(git rebase *)"
]
}
} Skills (37)
architecture-reviewaudit-noteschallenge-planchange-impactclarify-requestconnect-mcpcreate-teamdaily-plandebug-issuedefine-termsdesign-specend-of-day-summaryhandover-notesjoin-teammerge-workmigrate-legacy-enginepersonal-setupquick-noteregister-projectsrepo-mapresolve-conflictsresume-workretrospectivereview-changeset-profilesetup-repostory-mapsuggest-skillssummarize-filessync-websitetrim-agent-docsupdate-pluginweekly-reviewwhats-changedwrite-agent-docswrite-area-briefwrite-context-docs
Subagents (6)
| core-owner model: inherit | Owns core/ — paths, scrub, memory, date, profile. The security-critical kernel both leaves depend on. Use for work on the root guard, the secret gate, append-only memory, or the home/work/lab profile. |
| docs-owner model: inherit | Owns the context layer and the maintenance shelf — skills/, references/, templates/, AGENTS.md and its leaves, CONTEXT.md, docs/ and docs/adr/, plus tools/ and the repo self-checks. Use for ritual aut |
| index-owner model: inherit | Owns index/ — the deterministic indexer, findings, impact, enrichment, the viewer and cortex-next. Use for work on the import graph, coverage signals, orphan detection, path aliases or the ranked repo |
| mcp-owner model: inherit | Owns mcp/ — the live MCP brain over stdio and the cortex CLI. Use for work on the server, the Vault door, the two root modes, the solo/team/server audience seam, git sync or the stdio transport. Never |
| cortex-auditor model: inherit | Read-only vault auditor for the Cortex second-brain. Dispatched by the /audit-notes ritual to scan the WHOLE vault in an isolated context and return one ranked findings report covering structure (orph |
| cortex-role-reviewer model: inherit | Reviews a change from ONE named expert angle — security, performance, accessibility, data integrity, operability or developer experience — grounded in the target repo's own index rather than a generic |
Hooks (1)
| event | matcher | runs |
|---|---|---|
| UserPromptSubmit | * | node "$CLAUDE_PROJECT_DIR/.claude/hooks/optimize-prompt.mjs" |
Plugins (1)
understand-anything@understand-anything
Similar rigs
myshra777-ai/garuda
AI code governance for autonomous agents. Enforce architecture and business rules with AST intelligence, 54 MCP tools, and cryptographic audit trails.
Pragmatist 6.2k tok · · Q0
The-Urcydo/Repo-Template
Copier template for repos worked by one human and several AI agents: a short AGENTS.md, Diátaxis docs, work items with handoffs, tool-neutral roles and skills, git worktrees, and a one-command health check. Works with Claude Code, Codex, Op
Pragmatist 2.2k tok · · Q5
RobBrautigam/claude-code-starter-kit
14 skills, 24 rules and 3 safety hooks for Claude Code, with a safe installer and tests. Sits on top of Obra's Superpowers plugin.
Skill Collector 1.2k tok · · Q0
pmgledhill102/agentic-coding-config
Claude Code config (slash commands, hooks, settings, MCP). Mounted at ~/.claude/ via chezmoi externals from dotfiles.
Skill Collector 15.3k tok · · Q25