agentleFS
wyattjohwyattjoh/skills/skills/workspaces/SKILL.md

workspaces

Skill3 starsChanged 46 days agoMITView on GitHub

Creates and operates multi-repo workspace hubs, standalone git repositories that own the docs, ADRs, deviation journal, context manifest, release phasing, plan batches, workspace memory, and project-local skills for a cross-repo body of work. Use only when the active context explicitly instructs you to use the workspaces skill.

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use connections.

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.
  • stacksyncdataSkill

    connections

    Lists, creates, reads, renames, shares, reauthorizes and deletes Stacksync connections, reads the live tables and columns of a connected app, and explains network options and app rate limits. Use when someone wants to connect an app or database, a connection expired or needs reauthorization, a teammate cannot see a connection, a connection must be deleted, someone asks which tables or fields an app has, or a database sits behind a firewall or in a private network.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Before any flow, read references/workspace-layout.md for the hub anatomy and references/conventions.md for the binding rules, then read the …

    line 34
  2. Distinctive:

    All workspace mechanics go through one CLI (the consistent binding point.

    line 45
  3. Distinctive:

    Deviations are journaled: before or with the change, cross-linked to phase, ADR, and PR.

    line 86
  4. Distinctive:

    init is gated: Always confirm with the user before creating the hub repo, touching member git config, or registering sources.

    line 88

“Common” is measured: kept by at least 6 in 10 of the 5 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

Workspaces

A workspace is a standalone git repository that acts as the documentation, decision, and planning hub for work spanning multiple member repositories. The hub owns everything about the work; member repos own only code. Agent context is explicit (a manifest declares it), layered (loaded in a fixed order), and auditable (generated views drift-checked by script).

This skill composes existing skills rather than replacing them: grill-with-docs scopes, domain-modeling owns CONTEXT.md and ADRs, stacked-prs binds branches to the workspace by naming, worktrunk materializes interactive worktrees, and skills-skill standards govern the seeded project-local skills.

Routing

Match the request to a flow and follow its reference document exactly:

FlowWhenReference
initCreate a new workspace (confirmation-gated)references/init.md
taskCreate, update, redesign, execute, or drop a unit of workreferences/task.md
enterLoad workspace context to start or resume workreferences/enter.md
auditVerify integrity, find drift, drive remediationreferences/audit.md
compactCollapse the ADR trail into a minimal set capturing the final visionreferences/compact.md

Before any flow, read references/workspace-layout.md for the hub anatomy and references/conventions.md for the binding rules, then read the hub's workspace memory (.claude/memory/MEMORY.md and the entries it indexes that touch your task) — memory is the always-read working-knowledge layer, and starting work without it repeats settled mistakes. When creating or editing the seeded skills, follow the skills-skill skill.

Scripts

All workspace mechanics go through one CLI (the consistent binding point; every workspace's Justfile delegates here):

bun $SKILL_DIR/scripts/workspace.ts <command> [--workspace <hub-dir>]
CommandPurpose
manifest sync [--check]Regenerate CLAUDE.md from workspace.yaml (--check exits 1 on drift)
manifest freezeCapture member HEAD SHAs into workspace.lock
status [--json]Per-member branch, dirtiness, and bound stacks
stacks [--json]All stacks across members matching the workspace stack prefix
context [--json]Ordered context-layer files (fails if any are missing)
audit [--json]Every integrity check; exits 1 on errors
journal add --category <c> --title <t> [--links <csv>] [--body <b>]Append a structured journal entry (categories: decision, deviation, scope, cross-repo)
compact inventory [--json]Emit live ADRs (number, title, status, references), journal switches, and context layers
compact archive [--json]Move the live ADRs into docs/adr/archive/ (clean tree required); print the mapping

--workspace defaults to walking up from the current directory to the nearest workspace.yaml. Member state is read via git -C from the hub; no command enters a worktree.

--workspace may itself be a linked worktree of the hub, which is how hub work is normally done. Member paths then anchor on the hub's main working tree, so ../app still names the sibling checkout and not .claude/worktrees/app. Hub-internal paths (context layers, JOURNAL.md, the generated files) stay on the worktree, because those are the files it exists to edit.

Core rules (full detail in conventions.md)

  1. One creator per branch+worktree pair. wt owns interactive worktrees, stacked-prs owns metadata only. Never run stacked-prs create for a child branch inside a wt worktree.
  2. Hub owns planning. Plan files live in the hub, and member repos never commit workflow artifacts.
  3. Binding is naming. Stacks <stack-prefix><task-slug> (no dots) and branches <branch-prefix><task-slug> use the same task slug.
  4. Manifest is truth. Edit workspace.yaml, run just sync; never hand-edit CLAUDE.md. docs/index.md is the context allow-list.
  5. Deviations are journaled before or with the change, cross-linked to phase, ADR, and PR. ADRs are superseded, never edited.
  6. init is gated. Always confirm with the user before creating the hub repo, touching member git config, or registering sources.
  7. Memory before work, memory as you think. The hub's .claude/memory/ (committed) is read before any flow's first action and written the moment an idea, decision-in-motion, surprise, or open question surfaces — during design especially, where the job is capturing and converging concepts, not generating variant floods. A settled entry graduates to an ADR, journal entry, or finding; the memory then points at that record.

Templates

references/templates/ holds the scaffold for every hub file (workspace.yaml, JOURNAL.md, constitution.md, index.md, phases.md, tasks.md, Justfile, memory-index.md → .claude/memory/MEMORY.md) and the three seed skills (skill-context.md, skill-domain.md, skill-conventions.md). Markdown and YAML templates use {{PLACEHOLDER}} markers; the Justfile template alone uses __PLACEHOLDER__ markers because just owns {{ }} interpolation there (and markdown formatters rewrite __x__ as bold).

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.