agentleFS
blas0blas0/UnseveredMemory/skills/orchestrate/SKILL.md

orchestrate

Skill49 starsChanged 12 months agoMITView on GitHub

You are operating with persistent memory. This skill defines how to maintain context across sessions. Write to scratchpad.md as you work: Update .ai/ when patterns emerge: After implementing the same solution 3+ times, add it to .ai/patterns/. During your session, proactively update .ai/ when you encounter: Do not wait for session end. Update as you go: Example scratchpad entry:

72 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ship-pr, discover and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Upsolve-LabsSkill

    ship-pr

    Ship a feature branch: write docs, bump version, create PR with screenshots and evidence. Links Linear tickets if available. Use when ready to merge.

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 4 projects that use this

  • genomewalkerSkill

    checkpoint

    Save a checkpoint of task status, decisions, active files, and next steps

    Also in 5 projects that use this

  • qtzx06Skill

    eval

    Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.

    Also in 3 projects that use this

  • sahinSkill

    execute

    Also in 3 projects that use this

  • paulo-yamagishiSkill

    evolve

    Auto-maintain Claude Code config files as your codebase evolves

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 64 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check scratchpad.md for unfinished work

    line 32
  2. Very specific:

    After implementing the same solution 3+ times, add it to .ai/patterns/.

    line 64
  3. Distinctive:

    Do not wait for session end.

    line 92
  4. Very specific:

    Add/update relevant .ai/ file immediately

    line 95
  5. Distinctive:

    Use for multi-step tasks requiring persistent state management.

    line 229

“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “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

Unsevered Memory - Workflow Skill

You are operating with persistent memory. This skill defines how to maintain context across sessions.

Memory Architecture

Two Sources of Truth

LocationTypePurposeUpdate Frequency
.claude/memory/DynamicSession state, decisionsEvery session
.ai/StaticArchitecture, patternsWhen patterns emerge

File Purposes

FileContentWhen to Update
context.mdCurrent state, next stepsEnd of session
scratchpad.mdLive session operationsDuring session
decisions.mdArchitectural choicesWhen decisions made
.ai/core/Tech stack, architectureWhen they change
.ai/patterns/Reusable solutionsAfter 3+ uses

Session Workflow

On Session Start

  1. Memory hook automatically loads context.md
  2. Review the current state and task
  3. Check scratchpad.md for unfinished work
  4. Reference .ai/ for patterns and architecture

During Session

Write to scratchpad.md as you work:

## Session: 2024-01-15 14:30

### Operations
- [14:31] Read context.md - last session worked on auth
- [14:32] User asked to fix login bug
- [14:35] Found issue in validateToken() at src/auth.ts:142
- [14:40] Fixed: was comparing wrong field

### Findings
- Token validation was checking user.id instead of user.uid
- Only affects users created after migration

### Decisions
- Keep backward compatibility by checking both fields

### Blockers
(none)

### Next Steps
- Add regression test for token validation

Update .ai/ when patterns emerge:

After implementing the same solution 3+ times, add it to .ai/patterns/.

On Session End

  1. Hook archives scratchpad to sessions/YYYY-MM-DD.md
  2. Update context.md with:
    • What was accomplished
    • Current state
    • Next steps
  3. Append architectural decisions to decisions.md

Live Documentation Updates

When to Update .ai/

During your session, proactively update .ai/ when you encounter:

TriggerLocationExample
Pattern used 3+ times.ai/patterns/Error handling, API structure
Architecture change.ai/core/architecture.mdNew service layer
Stack change.ai/core/technology-stack.mdNew dependency
Workflow improvement.ai/workflows/Better test process

How to Update

Do not wait for session end. Update as you go:

  1. Notice a pattern emerging
  2. Add/update relevant .ai/ file immediately
  3. Log the update in scratchpad
  4. Continue working

Example scratchpad entry:

### Operations
- [14:35] Implemented error handling in 3 endpoints
- [14:40] Pattern detected - created .ai/patterns/error-handling.md
- [14:45] Applied pattern to remaining endpoints

Decision Tree: Where Does This Go?

Is this information:

[Specific to today's work?]
    YES --> scratchpad.md

[An architectural decision?]
    YES --> decisions.md (also update .ai/ if changes architecture)

[A reusable pattern?]
    YES --> .ai/patterns/

[About the tech stack?]
    YES --> .ai/core/technology-stack.md

[Current project state?]
    YES --> context.md

File Templates

context.md

# Project Context

## Current State
[What is the current state of the project/feature?]

## Current Task
[What are we working on right now?]

## Last Session
- Date: YYYY-MM-DD
- Accomplished: [summary]
- Stopped at: [where we left off]

## Next Steps
1. [First thing to do]
2. [Second thing to do]

## Active Branches
- feature/xxx - [purpose]

## Notes
[Any context the next session needs]

scratchpad.md

# Scratchpad

Session: YYYY-MM-DD HH:MM

## Operations
- [HH:MM] Action taken

## Findings
- What was discovered

## Decisions
- Choices made and rationale

## Blockers
- Issues encountered

## Next Steps
- What to do if session ends

decisions.md

# Decision Log

## YYYY-MM-DD: [Decision Title]

**Context**: [Why was this decision needed?]

**Options Considered**:
1. Option A - pros/cons
2. Option B - pros/cons

**Decision**: [What was chosen]

**Rationale**: [Why this option]

**Consequences**: [What this means going forward]

Enforcement

The UserPromptSubmit hook displays memory state on every prompt:

[Memory] Task: Fix auth bug | Scratchpad: 24 lines | .ai/ updated: 2024-01-15

This reminder survives context compaction. Use it to stay oriented.


Commands

/orchestrate

Activates orchestrator mode for complex tasks. The orchestrator:

  1. Reads all memory files
  2. Breaks task into subtasks
  3. Delegates to specialized agents
  4. Updates memory after each step
  5. Never loses context

Use for multi-step tasks requiring persistent state management.

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.