agentleFS
damienlainedamienlaine/agentic-sprint/skills/agent-patterns/SKILL.md

agent-patterns

Skill18 starsChanged 11 months agoMITView on GitHub

This skill should be used when the user asks about "SPAWN REQUEST format", "agent reports", "agent coordination", "parallel agents", "report format", "agent communication", or needs to understand how agents coordinate within the sprint system.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. markpitt/claude-skills★ 23same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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:

    Key rule: Only the orchestrator spawns agents.

    line 36
  2. Distinctive:

    Never include test agents in implementation requests.

    line 67
  3. Distinctive:

    All agents return structured reports.

    line 85
  4. Distinctive:

    Use a single message with multiple Task tool calls.

    line 206
  5. Distinctive:

    Run tests in their domain

    line 230
  6. Distinctive:

    When agents need to coordinate beyond reports:

    line 243
  7. Distinctive:

    No verbose logs or stack traces

    line 300
  8. Distinctive:

    Don't wait unnecessarily

    line 306
  9. Distinctive:

    Always read specs before implementing

    line 310
  10. Distinctive:

    Follow API contracts exactly

    line 312

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Agent Patterns

Sprint coordinates multiple specialized agents through structured communication patterns. This skill covers the SPAWN REQUEST format, report structure, parallel execution, and inter-agent coordination.

Agent Hierarchy

┌─────────────────────────────────────┐
│         Sprint Orchestrator         │
│    (parses requests, spawns agents) │
└─────────────────┬───────────────────┘
                  │
                  ▼
┌─────────────────────────────────────┐
│        Project Architect            │
│  (plans, creates specs, coordinates)│
└─────────────────┬───────────────────┘
                  │ SPAWN REQUEST
                  ▼
┌─────────────────────────────────────┐
│      Implementation & Test Agents   │
│   (execute, report, never spawn)    │
└─────────────────────────────────────┘

Key rule: Only the orchestrator spawns agents. Agents communicate by returning structured messages.

SPAWN REQUEST Format

The architect requests agent spawning using a specific format:

## SPAWN REQUEST

- python-dev
- nextjs-dev
- cicd-agent

Parsing Rules

The orchestrator parses SPAWN REQUEST blocks:

  • Section must start with ## SPAWN REQUEST on its own line
  • Each agent listed as a bullet point
  • Multiple agents spawn in parallel

Implementation Agents

Request during Phase 2:

## SPAWN REQUEST

- python-dev
- nextjs-dev

Never include test agents in implementation requests.

Testing Agents

Request during Phase 3:

## SPAWN REQUEST

- qa-test-agent
- ui-test-agent

The ui-test-agent runs in AUTOMATED or MANUAL mode based on specs.md:

  • UI Testing Mode: automated (default) → runs test scenarios automatically
  • UI Testing Mode: manual → opens browser for user to test, waits for tab close

Agent Report Format

All agents return structured reports. The orchestrator saves these as files.

Standard Report Sections

Every report includes:

SectionPurpose
CONFORMITY STATUSYES/NO - did agent follow specs?
SUMMARYBrief outcome description
DEVIATIONSJustified departures from specs
FILES CHANGEDList of modified files
ISSUESProblems encountered
NOTES FOR ARCHITECTSuggestions, observations

Example: Backend Report

## BACKEND REPORT

### CONFORMITY STATUS: YES

### SUMMARY
Implemented user authentication endpoints per api-contract.md.

### FILES CHANGED
- backend/app/routers/auth.py (new)
- backend/app/models/user.py (modified)
- backend/app/schemas/auth.py (new)
- backend/alembic/versions/001_add_users.py (new)

### DEVIATIONS
None.

### ISSUES
None.

### NOTES FOR ARCHITECT
- Consider adding rate limiting middleware in next sprint
- Password hashing uses bcrypt (industry standard)

Example: QA Report

## QA REPORT

### SUITE STATUS
- New test files: 2
- Updated test files: 1
- Test framework(s): pytest
- Test command(s): pytest tests/api/

### API CONFORMITY STATUS: YES

### SUMMARY
- Total endpoints in contract: 5
- Endpoints covered by automated tests: 5
- Endpoints with failing tests: 0

### FAILURES AND DEVIATIONS
None.

### TEST EXECUTION
- Tests run: YES
- Result: ALL PASS
- Notes: 23 tests passed in 1.4s

### NOTES FOR ARCHITECT
- Added edge case tests for password validation

Example: UI Test Report

## UI TEST REPORT

### MODE
AUTOMATED

### SUMMARY
- Total tests run: 8
- Passed: 7
- Failed: 1
- Session duration: 45s

### COVERAGE
- Scenarios covered:
  - Login with valid credentials
  - Login with invalid password
  - Registration flow
  - Password reset request
- Not covered (yet):
  - Email verification flow (requires email testing setup)

### FAILURES
- Scenario: Registration validation
  - Path/URL: /register
  - Symptom: Error message not displayed
  - Expected: "Email already exists" message
  - Actual: Form submits without feedback

### CONSOLE ERRORS
None.

### NOTES FOR ARCHITECT
- Registration error handling needs frontend fix

Parallel Execution

Implementation Agents

Spawn all implementation agents simultaneously:

Task: python-dev     ─────────▶ Backend Report
Task: nextjs-dev     ─────────▶ Frontend Report
Task: cicd-agent     ─────────▶ CICD Report

Use a single message with multiple Task tool calls.

Testing Agents

QA runs first, then UI tests:

Task: qa-test-agent  ─────────▶ QA Report
                                    │
                                    ▼
Task: ui-test-agent  ─────────▶ UI Test Report
Task: diagnostics    ─────────▶ Diagnostics Report
     (parallel with ui-test)

UI test and diagnostics agents run in parallel with each other.

Agent Constraints

What Agents Can Do

  • Read specification files
  • Read project-map.md (read-only)
  • Implement code in their domain
  • Run tests in their domain
  • Return structured reports

What Agents Cannot Do

  • Spawn other agents
  • Modify status.md (architect only)
  • Modify project-map.md (architect only)
  • Create methodology documentation
  • Push to git repositories

File-Based Coordination

When agents need to coordinate beyond reports:

Report Files

Orchestrator saves reports as:

.claude/sprint/[N]/[slug]-report-[iteration].md

Slugs:

  • python-dev → backend
  • nextjs-dev → frontend
  • qa-test-agent → qa
  • ui-test-agent → ui-test

Specialized Agent Roles

Project Architect

The decision-maker:

  • Creates specification files
  • Maintains project-map.md and status.md
  • Analyzes agent reports
  • Decides next steps (implement, test, finalize)

Implementation Agents

Technology-specific builders:

  • python-dev: Python/FastAPI backend
  • nextjs-dev: Next.js frontend
  • cicd-agent: CI/CD pipelines
  • allpurpose-agent: Any other technology

Testing Agents

Quality validators:

  • qa-test-agent: API and unit tests
  • ui-test-agent: Browser-based E2E tests
  • Framework-specific diagnostics agents

FINALIZE Signal

The architect signals sprint completion:

FINALIZE
Phase 5 complete. Sprint [N] is finalized.

The orchestrator detects this and exits the iteration loop.

Best Practices

Report Quality

  • Keep reports concise
  • Focus on actionable information
  • No verbose logs or stack traces
  • Summarize, don't dump

Parallel Efficiency

  • Spawn independent agents together
  • Don't wait unnecessarily

Spec Adherence

  • Always read specs before implementing
  • Report deviations with justification
  • Follow API contracts exactly

Additional Resources

For detailed agent definitions and report formats, see the agent files in the plugin's agents/ directory.

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.