grandamenium/cortextos/m2c1-worker
Claude Code and agent skill by grandamenium/cortextos
- community
Checking that the SKILL.md file is still in the repository.
You need to build software autonomously — a new project, a major feature, or any structured development task. You will act as the 'human' supervisor for a dedicated M2C1 worker session, managing it through all 12 phases: provide the brain dump, answer discovery questions, configure tools and credentials, monitor progress via bus messages and git, validate the output, and clean up when done. Use when the work is large enough to warrant a dedicated isolated build session.
Install
npx vskill@latest install grandamenium/cortextos/m2c1-workerSKILL.md
The same SKILL.md was published earlier as grandamenium/cortextos/m2c1-worker.
M2C1 Worker Agent Skill
Any cortextOS agent can autonomously build complete software by acting as the "human" in the M2C1 framework, managing a dedicated worker Claude Code session through the full 12-phase lifecycle.
Worker session spawn is fully implemented. Usecortextos spawn-workerto launch an isolated Claude Code M2C1 build session.
Overview
This skill enables 3-layer agentception:
- You (the cortextOS agent) act as the human/supervisor
- Worker (a fresh Claude Code session) acts as the M2C1 orchestrator
- Subagents (spawned by the worker) execute parallel research and tasks
You provide the brain dump, answer discovery questions, help with tool setup, monitor progress, and validate the final output. The worker does all the building.
Prerequisites
- M2C1 skill files available (bundled in cortextos templates)
- A clear project idea or brain dump
- An isolated directory for the build
- Worker session spawn mechanism available (
cortextos spawn-worker)
Phase 0: Setup
1. Create the project directory
2. Copy M2C1 skill files
3. Create the worker's inbox
4. Write BRAINDUMP.md
Write a comprehensive brain dump in $PROJECT_DIR/BRAINDUMP.md. Include:
- What you are building and why
- Technical requirements and constraints
- Reference implementations or existing code to study
- Any research already done
- Success criteria
5. Copy comms skill to worker project
The worker needs the bus messaging skill to communicate with you:
6. Set up .claude/ permission bypass
Workers write to .claude/orchestration-*/ extensively. Set up permissions BEFORE spawning:
If the file already exists (e.g., with MCP config), merge the permissions key into it rather than overwriting.
7. Write AGENTS.md
Write $PROJECT_DIR/AGENTS.md with instructions for the worker:
cortextos bus send-message <your-agent-name> normal '<message>'
cortextos bus check-inbox
export CTX_AGENT_NAME="<worker-name>" export CTX_ORG="<org>" export CTX_FRAMEWORK_ROOT="<path>" export CTX_ROOT="$HOME/.cortextos/default"
Phase 1: Spawn the Worker
The worker:
- Runs in
$PROJECT_DIRwith--dangerously-skip-permissions - Gets
CTX_AGENT_NAME=$WORKER_NAMEso it can usecortextos bus send-messageto reach you - Is tracked by the daemon:
cortextos list-workersshows its status
Log the spawn:
Phase 2: Monitor and Communicate
Communication Priority
- Bus messages (primary) — worker sends you updates, you reply via bus.
- Direct session intervention (fallback) — only when the worker is stuck or unresponsive to bus. Implementation pending.
- Git (monitoring) — check commits to see what was built without interrupting the worker.
Checking Progress
Answering Discovery Questions (Phase 3)
The worker will send you questions via send-message. Answer them:
Base your answers on:
- The original brain dump requirements
- Any research you have done
- Your domain knowledge as a cortextOS agent
- The org's goals and constraints (GOALS.md, knowledge.md)
If you do not know the answer, make a reasonable decision and note it. Do not block the worker with "ask the user" unless it is truly a human-only decision.
Handling Stuck States
If the worker appears stuck (no bus messages, no new git commits > 15 minutes):
- Send a bus message:
cortextos bus send-message <worker-name> normal 'Continue with the M2C1 workflow. What phase are you on?' - Check git:
cd $PROJECT_DIR && git log --oneline | head -5 - Inject directly into the PTY if still unresponsive:
cortextos inject-worker <worker-name> "Continue with the M2C1 workflow. What phase are you on?" - Check worker status:
cortextos list-workers - If halted:
cortextos terminate-worker <worker-name>then re-spawn
Phase 3: Tool Setup Support (CRITICAL - Act Like a Human)
This is one of the most important phases. You act exactly like a human developer setting up a project: installing tools, configuring MCPs, setting env variables, logging into services, testing that everything works. The worker cannot do this itself — it needs you to configure its environment.
Think Holistically About Tools
Before the worker starts building, ask yourself:
- What MCPs would help? (Playwright for browser testing, etc.)
- What accounts/services does the project need? (APIs, hosting, etc.)
- What CLI tools should be installed? (expo, vercel, railway, etc.)
- What env variables does the worker need? (API keys, tokens, etc.)
- What skills could help the worker? (existing cortextOS skills)
- What testing tools are needed? (iOS Simulator, Playwright, etc.)
MCP Configuration
Iterative Tool Verification
Do NOT assume tools work after installation. For each tool:
- Install/configure it in the project directory
- Tell the worker via bus to restart and test the tool
- Worker reports result via bus
- If failed: fix config, repeat
- If succeeded: move to next tool
Environment Variables and Credentials
Skills for the Worker
Copy relevant cortextOS skills to the worker's project:
Phase 4: Autonomous Execution
Once the worker is past discovery and tool setup, it should run autonomously:
Set Up Auto-Iteration
Tell the worker to create a /loop for task polling within its session:
<!-- Note: /loop is intentionally used here — this is a short-lived session-scoped poll for the worker's task queue, not a persistent cron. For persistent recurring crons, use cortextos bus add-cron instead. -->
Periodic Check-ins
Check in every 30-60 minutes:
When NOT to Intervene
- Worker sent a bus update and is actively building
- Worker is in a research subagent phase
- Worker sent you a question and is waiting — check inbox first
When to Intervene
- No bus messages AND no new git commits > 15 minutes
- Worker is looping on the same error (reported via bus)
- Worker went off-scope (building wrong thing)
Phase 5: Validate the Output
Synergy Review (before execution)
Verify the worker's task files are coherent:
Per-Task Testing
After each phase of execution, verify:
Final E2E Testing
The worker's last phase should be comprehensive testing. Verify:
- The software actually runs
- It connects to real systems (if applicable)
- Core user flows work end-to-end
- Edge cases are handled
If tests fail, tell the worker:
Phase 6: Cleanup
On Success
On Failure
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcommunity/skills/m2c1-worker/SKILL.md
Popularity
- Repository stars
- 79
- Repository forks
- 96
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Jul 2026, 4 months ago.
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/grandamenium/cortextos/m2c1-worker)