AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Agency Icm Builder

skill-krsnczky-agency-icm-builder-agency-icm-builder · by krsnczky

Build or audit an AI-runnable workspace for a client-service agency (marketing, PPC, design, consulting, dev shops). Folder structure does the orchestration - one agent, routing files, per-client folders, session capture. Use when the user wants to (1) set up an agency workspace an AI agent can operate ("build me an agency workspace", "structure my agency for AI"), (2) audit an existing agency fo…

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-krsnczky-agency-icm-builder-agency-icm-builder

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-krsnczky-agency-icm-builder-agency-icm-builder)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
20d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Agency Icm Builder? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Agency ICM Builder

Build workspaces where the folder structure runs the agency. One AI agent, reading the right files at the right moment, coordinates client work across services: the routing files decide what loads, per-client folders guarantee client data never mixes, and a session-end capture protocol turns daily work into durable memory.

This is not theory. The conventions here run a real agency: 15 client folders, 5 service departments, daily production use. Everything below was extracted from that system, then genericized.

The term ICM (Interpretable Context Methodology, folder structure as agent architecture) comes from Van Clief & McDermott, arXiv:2603.16021.

The ten rules

Every workspace this skill builds or audits follows these. In audit mode, each rule is a check.

  1. The root file routes, it does not teach. The root CLAUDE.md holds identity plus a routing table (task keyword to file path) and nothing else. Content lives in the files it points to. When the root file grows, it is absorbing payload that belongs on a shelf.
  2. Every client is one folder. Nothing about a client lives outside clients//. This is the no-mixing guarantee: the agent always knows which client it is working on, so client facts always land in the right folder. Cross-client insight goes to a shared patterns file, stripped of client identity.
  3. Three files tell the client's story. hot.md (current state and priorities, rewritten as things change), log.md (append-only event history with tags like [DECISION] [RESULT] [PROBLEM]), learnings.md (distilled operational rules). Now, what happened, what we learned. An agent reading these three files cold is up to speed.
  4. Load per task, not per session. A load-order contract (one file in system/) says which files each task type needs: a report task loads campaign state, a copy task loads brand voice, a strategy task loads the client profile. The agent loads those and stops. Whole-workspace loads are a bug.
  5. One home per fact. A link beats a copy. Two hand-maintained copies of the same fact will drift, and drifted copies are worse than no copy, because one of them lies.
  6. New client = copy the template. clients/_template/ is the unit of instantiation. Evolution rule: when three real clients independently grow the same folder, the template gains it. One client's extra folder is an exception; three are structure.
  7. State is rewritten, history is appended. hot.md gets edited in place. log.md only grows. Never rewrite history to reflect current state; that is what hot.md is for.
  8. Sessions end in capture. Work not written back to the client folder did not happen. The capture is agent-driven at session end: log entry, hot update if priorities shifted, learnings append if there was a lesson. If client attribution is uncertain, the note goes to a quarantine inbox for the human to file. Never guess the client.
  9. Expertise and state live apart. departments/ (or services/) holds stable know-how: agent instructions and skills that change rarely and apply to every client. clients/ holds per-client state. system/ holds workspace infrastructure: policies, the load-order contract, changelogs. A fact that survives every client belongs in a department; a fact about one client never leaves its folder.
  10. A hand-maintained index that duplicates state will rot: generate it, shrink it, or drop it. The failure mode is narrow: a file that re-lists state living elsewhere (client rosters, "map of everything" system maps) and relies on a human remembering to update it. That copy drifts and starts lying. Fix it one of three ways: rebuild it from a script, keep it small enough that drift is obvious at a glance (the root routing table is exactly this), or delete it if nothing reads it. Not every index is guilty: an index that holds its own content rather than duplicating state, and a purely presentational file (for example one that only exists to shape a graph view), are not state copies and this rule does not touch them. The question to ask is "does this file restate something whose real home is elsewhere?" Only then is it at risk.

Choose a mode

  • Build: the user describes their agency, you scaffold a workspace.
  • Audit: an existing workspace, you check it against the ten rules and report. No changes.
  • Restructure: audit first, then propose a migration map, get approval, migrate.

Build mode

1. Interview, a few questions at a time. Use [assets/templates/questionnaire.md](assets/templates/questionnaire.md). You need: what services the agency sells, the repeating unit of work (campaign, project, retainer month), how many clients, who touches the workspace, what repeats weekly, and where a human checks work before it moves on. Do not ask everything at once; the structure is in how they describe their week.

2. Map their answers to the skeleton.

agency/
├─ CLAUDE.md                # root router (rule 1)
├─ clients/
│  ├─ _template/            # instantiation unit (rule 6)
│  └─ /             # one folder per client (rule 2)
│     ├─ .claude/CLAUDE.md  # pointer: load order for this client
│     ├─ wiki/              # index, hot, log, profile, brand (rule 3)
│     ├─ memory/            # learnings.md
│     └─ work/              # per-service output folders
├─ departments/             # stable expertise per service line (rule 9)
├─ workflows/               # multi-step sequences that cross departments
└─ system/                  # load-order contract, policies, changelog

Rename to their vocabulary (departments/services/pods, wiki/notes, work/deliverables). Names are theirs; the shape is not negotiable.

3. Build the full skeleton. Scaffold the whole shape even for one client. A system runs smoothly when every kind of information already has a home to land in, so set the homes up first and grow into them. Assume the agency will add clients and service lines; the structure should be ready when they do, not retrofitted under load. Create the departments and workflows the agency actually has, even if only one client uses them today.

4. Fill from templates. Copy from [assets/templates/](assets/templates/): root CLAUDE.md, client template, department file, workflow file. Write the load-order contract into system/ naming their actual task types.

5. Offer enforcement as opt-in. Conventions hold for weeks; hooks hold forever. If they use Claude Code, [references/enforcement.md](references/enforcement.md) shows how to inject the load-order reminder automatically. Skip it for a first build; add it when the workspace proves out.

6. Validate with the cold-read test (below).

Audit mode

Read-only. Never move, edit, or delete during an audit.

1. Inventory. List the tree two levels deep. Note file counts and last-modified where it matters.

2. Check the ten rules. For each: pass, or a finding with the exact path and what it costs in practice. The five failures that appear in almost every grown workspace:

  • Payload in the router (rule 1): root file over ~100 lines, holding protocol text or reference content.
  • Drifting duplicates (rule 5): the same fact in two hand-edited homes, already diverged. Diff them and show the divergence; it is the most convincing finding.
  • Stale maps (rule 10): an index that duplicates state (a client roster, a system map) with a stale last-updated date and missing entries. Name what is missing. Do not flag an index that carries its own content, or a file that exists only to shape a view (a graph-layout helper) - those are not state copies.
  • Template drift (rule 6): count folders real clients grew that the template lacks.
  • Orphan buckets: tmp/, docs/, misc/ holding one-off files nothing references.

3. Report with severities. For each finding: rule broken, path, cost, smallest fix. Then a verdict: what percentage of the shape is already there, and the three fixes worth doing first. End with what you would not change; an audit that flags everything flags nothing.

Restructure mode

Audit first, in full. Then:

1. Find the hidden shape. Most grown agency folders already contain the skeleton informally: some per-client folders, a notes file that is really hot.md, a graveyard that is really an archive. Extract what exists; do not bulldoze.

2. Classify every file: router / client state / expertise / workspace infra / dead. Dead means stale, duplicated, or superseded; it goes to _archive/, never silently deleted.

3. Propose a migration map. Old path, new path, role, one line of reasoning. Present the full map and the target tree. Get explicit approval before moving anything. This method is built on human gates; honor this one.

4. Migrate. Move, then write the router and pointer files, then de-duplicate toward one home per fact, leaving a link where a copy lived if anything might reference it.

5. Validate with the cold-read test.

The cold-read test

Validate any workspace, new or restructured, by walking it as an agent with no memory:

  • Open the root file. Can you say which client folders exist and where to go for a named task, from the router alone plus at most two more reads?
  • Pick one client. Read only hot.md, the last ten lines of log.md, and learnings.md. Can you state what is going on with this client and what to do next?
  • Pick one task type. Does the load-order contract name exact files for it, and does following it give you enough context to start, without loading anything else?
  • Ask "where would a session-end note about client X go, and what happens if the client is ambiguous?" The answer must be a path and a quarantine rule, not a judgment call.
  • Check any index-like file against reality. If it lies, rule 10 is broken.

If a step fails, fix the structure, not the explanation: move or split files until the walk works.

Guardrails

  • The structure is not the value. Tell users this honestly: the folders orchestrate, but the quality of what the agent does still comes from the expertise files they write into departments and the discipline of session capture. An empty skeleton does nothing.
  • Where this loses. Real-time multi-agent collaboration, many users hitting one workspace concurrently, and pipelines that must branch mid-run without a human. This method is for sequential, human-reviewed, repeatable client work, which is most agency work, but not all of it.

References

  • [references/conventions.md](references/conventions.md) - the client triad in depth, log tags, capture protocol, load-order contract format, cross-client patterns.
  • [references/enforcement.md](references/enforcement.md) - making the conventions self-enforcing with Claude Code hooks.
  • [assets/templates/](assets/templates/) - root CLAUDE.md, client template, department file, workflow file, questionnaire.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.