Skip to content

About

๐Ÿงญ An Agent Skill that turns repos, docs, and skills into a navigable, verifiable workspace โ€” so every AI-agent session starts with context, not guesswork.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

agent-workspace

Give your coding agent a map, not a memory test.

็ฎ€ไฝ“ไธญๆ–‡ ยท Quick start ยท What it builds ยท Workflow

License: MIT Python 3.9+ Agent Skills Tests PRs Welcome

agent-workspace is an Agent Skill that turns a pile of repositories, docs, and setup knowledge into a workspace an AI agent can actually navigate.

One entry point. Clear ownership. Real evidence.

No framework. No database. No vendor lock-in. Just markdown, a small read-only Python checker, and a workflow that refuses to call a skeleton "done".


The cold-start tax

Every new agent session starts from zero. You pay for it in the same five ways:

  • ๐Ÿ” Re-explaining the system โ€” "the web app calls the API, the API owns billing, don't touch the legacy worker."
  • ๐Ÿงญ Repo roulette โ€” three checkouts, two branches, one service nobody remembers starting.
  • ๐Ÿ“š Knowledge without routing โ€” the design doc exists, but the agent doesn't know it exists.
  • โœ… "Done" without proof โ€” the structure looks right, so everyone assumes it runs.
  • ๐Ÿงฑ Scaffold sprawl โ€” a giant workspace built for an imagined future, abandoned in a week.

agent-workspace attacks all five: it builds the smallest workspace that supports one real user behavior, wires only the repos that behavior needs, and reports exactly what was verified โ€” and what was not.

What it builds

Layer What you get Why it matters
Entry README.md as the single source of truth; AGENTS.md / CLAUDE.md as pointers Every agent starts in the same place
Knowledge docs/knowledge/, docs/activity/, docs/INDEX.md, docs/LOG.md, routing table Stable facts stay separate from one-off work
Repos repos/index.md + per-repo overview.md, setup.md, test.md, relative .source Agents can locate, run, and test the code
Skills skills/<name>/SKILL.md plus project-level platform links Capabilities are reusable, not copy-pasted
Evidence Acceptance record with PASS / FAIL / UNRUN per layer "Done" means something

A generated workspace looks like this:

workspace/
โ”œโ”€โ”€ README.md                 # the only entry source
โ”œโ”€โ”€ AGENTS.md -> README.md    # relative link, not a copy
โ”œโ”€โ”€ CLAUDE.md -> README.md
โ”œโ”€โ”€ docs/
โ”‚   โ”œโ”€โ”€ README.md             # "where to find what"
โ”‚   โ”œโ”€โ”€ INDEX.md              # one line per asset
โ”‚   โ”œโ”€โ”€ LOG.md                # append-only maintenance log
โ”‚   โ”œโ”€โ”€ knowledge/            # stable concepts, rules, external summaries
โ”‚   โ””โ”€โ”€ activity/             # dated work, failures, evidence
โ”œโ”€โ”€ repos/
โ”‚   โ”œโ”€โ”€ index.md              # repo responsibilities and call direction
โ”‚   โ””โ”€โ”€ api/
โ”‚       โ”œโ”€โ”€ .source -> ../../external/api   # keeps the original checkout
โ”‚       โ”œโ”€โ”€ overview.md       # contracts, consumers, boundaries
โ”‚       โ”œโ”€โ”€ setup.md          # shortest real run path
โ”‚       โ””โ”€โ”€ test.md           # what tests prove, how to observe them
โ””โ”€โ”€ skills/                   # reusable capabilities

Workspace architecture

Existing workspaces are treated as first-class: the skill reads the conventions already in place and fills only confirmed gaps. It does not "normalize" your layout, move your checkouts, or recreate a parallel structure.

The workflow

Workspace workflow

Six moves, each with an explicit completion condition:

  1. Read the site โ€” inspect existing entry points, links, repos, and Git state.
  2. Choose a path โ€” build a minimal structure, or extend an existing workspace.
  3. Organize assets โ€” one body per fact; indexes register, routes point, logs append.
  4. Wire the repos โ€” only those on the representative behavior chain; keep original checkouts.
  5. Verify โ€” structure first, then the shortest real run path and the end-to-end behavior.
  6. Hand off โ€” record commands, results, evidence locations, blockers, and next steps.

How a session runs

sequenceDiagram
    autonumber
    actor You
    participant Agent
    participant WS as Workspace files
    participant Repo as Source checkouts
    You->>Agent: One real behavior + constraints
    Agent->>WS: Read entry, routes, repo index
    WS-->>Agent: Existing conventions + gaps
    Agent->>Repo: Inspect setup and test notes
    Agent->>WS: Write or repair owned files only
    Agent->>WS: Run read-only structure check
    Agent->>Repo: Run shortest authorized path
    Repo-->>Agent: Commands, exit codes, logs
    Agent->>WS: Record PASS / FAIL / UNRUN
    Agent-->>You: Evidence-backed handoff
Loading

How knowledge flows

flowchart TB
    EXT[External sources<br/>docs ยท tickets ยท links] --> SUM[Short summary<br/>source + how to fetch]
    SUM --> K[docs/knowledge<br/>stable facts]
    WORK[This session<br/>decisions ยท failures ยท evidence] --> A[docs/activity<br/>dated record]
    K --> ROUTE[docs/README.md<br/>where to look]
    A --> ROUTE
    K --> IDX[docs/INDEX.md<br/>asset registry]
    A --> IDX
    K --> LOG[docs/LOG.md<br/>append-only]
    A --> LOG
    ROUTE --> NEXT[Next agent session]
    IDX --> NEXT
    LOG --> NEXT
Loading

Quick start

Install

Clone into the skills directory your agent reads:

# Shared skills convention (Codex, OpenCode, Cline, and others)
git clone https://github.com/IQQcode/agent-workspace.git ~/.agents/skills/agent-workspace

# Claude Code (user-level)
git clone https://github.com/IQQcode/agent-workspace.git ~/.claude/skills/agent-workspace

Or install it for every compatible platform in one step with skill-unify:

git clone https://github.com/IQQcode/skill-unify.git ~/.agents/skills/skill-unify
python3 ~/.agents/skills/skill-unify/scripts/skill-unify install https://github.com/IQQcode/agent-workspace --yes

Ask

Then hand your agent a real goal:

Build an agent workspace for these two repos.
The key flow is: web app โ†’ API โ†’ Postgres. Only wire what that flow needs.
My workspace already exists. Add the payments repo without moving anything,
and tell me what you could not verify.
Audit this workspace. Don't change files.
Show me missing entry points, stale links, and unverified run paths.

Check

The bundled checker is read-only. It never executes setup, tests, network calls, or writes.

python3 ~/.agents/skills/agent-workspace/scripts/check_workspace.py \
  /absolute/path/to/workspace \
  --mode self-built \
  --platform claude
Exit code Meaning
0 Selected structure checks PASS
1 At least one check FAIL
2 UNRUN or invalid arguments

--mode existing checks only the shared entry, knowledge routing, and the platforms/repos you explicitly declare โ€” useful for workspaces that do not follow the default blueprint.

Built-in platforms are claude (.claude/skills) and codex (.agents/skills). Any other platform can be declared without code changes:

python3 .../check_workspace.py /path/to/workspace \
  --platform studio \
  --platform-dir studio=.studio

License

MIT

About

๐Ÿงญ An Agent Skill that turns repos, docs, and skills into a navigable, verifiable workspace โ€” so every AI-agent session starts with context, not guesswork.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages