agentleFS
vikisingh23vikisingh23/neuraforge-ai/skills/workspace-protocol/SKILL.md

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…

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
  1. Distinctive:

    When you receive a workspace path:

    line 90
  2. Distinctive:

    If pipeline is interrupted:

    line 107
  3. Distinctive:

    No state lost. No re-running completed stages.

    line 118
  4. Distinctive:

    When count matches expected → all reviews done → proceed.

    line 133

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 report

STATUS.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
- None

How 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/*.cs

NEVER use the subagent's response text as data. It should only be "Done: {stage}".

Rules for Sub-Agents

When you receive a workspace path:

  1. Read STATUS.md — understand where the pipeline is
  2. Read only YOUR input files — don't read everything
  3. Write your output to the specified location
  4. Update STATUS.md — mark your stage ✅ with output path
  5. 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 4

No 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-reviewer

Orchestrator polls: ls .kiro/workspace/{feature}/06-reviews/*.md | wc -l When count matches expected → all reviews done → proceed.

Token Budget Impact

ApproachTokens per sub-agent call
Full content in prompt5,000–10,000
File protocol (just path + instructions)100–200
Savings95–98%

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.