workspace-protocol
Skill4 starsChanged 7 months agoApache-2.0View on GitHub
Any multi-agent workflow (feature-pipeline, fullstack-orchestrator, or any orchestrator spawning 2+ sub-agents). Agents communicate through files, not through prompts. The filesystem IS the shared state. Then write initial STATUS.md. NEVER use the subagent's response text as data. It should only be "Done: {stage}". When you receive a workspace path: If pipeline is interrupted: No state lost. No re-running completed stages. For fan-out (e.g., multiple reviewers in parallel): Orchestrator polls: ls .kiro/workspace/{feature}/06-reviews/*.md | wc -l When count matches expected → all reviews…
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/code-review.mdcCursor rule
- .cursor/rules/db-design.mdcCursor rule
- .cursor/rules/debug.mdcCursor rule
- .cursor/rules/django-forge.mdcCursor rule
- .cursor/rules/dotnet-forge.mdcCursor rule
- .cursor/rules/flutter-forge.mdcCursor rule
- .cursor/rules/nestjs-forge.mdcCursor rule
- .cursor/rules/neuraforge.mdcCursor rule
- .cursor/rules/pr-review.mdcCursor rule
- .cursor/rules/react-forge.mdcCursor rule
- .cursor/rules/refactor.mdcCursor rule
- .cursor/rules/rn-forge.mdcCursor rule
- .cursor/rules/scaffold.mdcCursor rule
- .cursor/rules/spring-forge.mdcCursor rule
- .cursor/rules/test-forge.mdcCursor rule
- api-designSkill
- api-testingSkill
- architecture-reviewSkill
- changelogSkill
- codebase-graphSkill
- code-reviewSkill
- db-designSkill
- debugSkill
- deps-auditSkill
- design-syncSkill
- devils-advocateSkill
- devopsSkill
- django-forgeSkill
- doc-generatorSkill
- documentationSkill
- domain-setupSkill
- dotnet-forgeSkill
- explainSkill
- feature-pipelineSkill
- flutter-forgeSkill
- fullstack-orchestratorSkill
- git-worktreesSkill
- load-testingSkill
- migrateSkill
- nestjs-forgeSkill
- performance-reviewSkill
- presentation-builderSkill
- product-managerSkill
- pr-reviewSkill
- react-forgeSkill
- refactorSkill
- rn-forgeSkill
- scaffoldSkill
- security-reviewSkill
- spring-forgeSkill
- test-forgeSkill
- ui-validationSkill
- video-creatorSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 90
When you receive a workspace path:
- Distinctive: line 107
If pipeline is interrupted:
- Distinctive: line 118
No state lost. No re-running completed stages.
- Distinctive: line 133
When count matches expected → all reviews done → proceed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
Workspace Protocol — Shared File-Based Agent Communication
When This Activates
Any multi-agent workflow (feature-pipeline, fullstack-orchestrator, or any orchestrator spawning 2+ sub-agents).
Core Rule
Agents communicate through files, not through prompts. The filesystem IS the shared state.
Directory Structure
.kiro/workspace/{feature-name}/
├── STATUS.md # Pipeline state — the coordination bus
├── 01-brs.md # product-manager output
├── 02-review.md # devils-advocate output
├── 03-arch-plan.md # architecture-reviewer output (selected plan)
├── 04-tests/ # test-forge output
│ ├── ServiceTests.cs
│ └── ControllerTests.cs
├── 05-implementation/ # forge output (generated code paths)
├── 06-code-review.md # reviewer findings
└── 07-summary.md # final handoff reportSTATUS.md Format
# Feature: {name}
Created: {date}
Current Stage: {N}
| # | Stage | Agent | Status | Output |
|---|-------|-------|--------|--------|
| 1 | BRS | product-manager | ✅ | 01-brs.md |
| 2 | Review | devils-advocate | ✅ | 02-review.md |
| 3 | Architecture | architecture-reviewer | ✅ Plan B | 03-arch-plan.md |
| 4 | Tests | test-forge | 🔄 | 04-tests/ |
| 5 | Implementation | forge | ⏳ | — |
| 6 | Code Review | reviewers | ⏳ | — |
| 7 | Summary | orchestrator | ⏳ | — |
## Human Decisions
- {date}: Selected Plan B (architecture)
- {date}: Approved BRS (no changes)
## Blocked
- NoneHow Orchestrators Use This
Creating a workspace (start of pipeline)
FEATURE="sip-cancellation"
WS=".kiro/workspace/$FEATURE"
mkdir -p "$WS/04-tests" "$WS/05-implementation"Then write initial STATUS.md.
Delegating to a sub-agent (tiny prompt)
subagent prompt (ENTIRE prompt — nothing more):
"You are {agent_role}. Feature: {feature_name}.
Workspace: .kiro/workspace/{feature_name}/
Read: {input_files}
Write your output to: {output_file_or_dir}
Update STATUS.md: set stage {N} to ✅
Respond with ONLY: Done: {stage_name}"Collecting results (read files, not transcripts)
# Check if stage is done
grep "| 4 |" .kiro/workspace/sip-cancellation/STATUS.md
# Read the output
cat .kiro/workspace/sip-cancellation/04-tests/*.csNEVER use the subagent's response text as data. It should only be "Done: {stage}".
Rules for Sub-Agents
When you receive a workspace path:
- Read STATUS.md — understand where the pipeline is
- Read only YOUR input files — don't read everything
- Write your output to the specified location
- Update STATUS.md — mark your stage ✅ with output path
- Respond with ONLY "Done: {stage}" — nothing else
What NOT to do
- ❌ Don't summarize your work in the response (write to file instead)
- ❌ Don't read other agents' outputs unless they're your explicit input
- ❌ Don't modify other agents' output files
- ❌ Don't pass large content back in your response
Crash Recovery
If pipeline is interrupted:
User: "Continue sip-cancellation"
Agent: reads .kiro/workspace/sip-cancellation/STATUS.md
→ sees Stage 4 was 🔄 (in progress)
→ checks if 04-tests/ has files
→ if yes: mark ✅, proceed to Stage 5
→ if no: re-run Stage 4No state lost. No re-running completed stages.
Parallel Agents
For fan-out (e.g., multiple reviewers in parallel):
.kiro/workspace/{feature}/06-reviews/
├── dotnet-review.md # Written by dotnet-reviewer
├── react-review.md # Written by react-reviewer
├── security-review.md # Written by security-reviewer
└── performance-review.md # Written by performance-reviewerOrchestrator polls: ls .kiro/workspace/{feature}/06-reviews/*.md | wc -l
When count matches expected → all reviews done → proceed.
Token Budget Impact
| Approach | Tokens per sub-agent call |
| Full content in prompt | 5,000–10,000 |
| File protocol (just path + instructions) | 100–200 |
| Savings | 95–98% |
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.

