agentleFS
josephfungjosephfung/strategy-os/CLAUDE.md

strategy-os

CLAUDE.md6 starsChanged 6 months agoMITView on GitHub

Strategy OS is a Claude skill — a prompt-driven workflow system for startup/scaleup CEOs. No compiled code, no build system, no test suite. All content is markdown. End users install via: The .claude-plugin/plugin.json registers the plugin with Claude's plugin system (metadata only — no logic lives there). Strategy OS v2 has three operating modes, unified by a shared data layer. Live data location: ~/.claude/strategy-os/data/ — this is where all runtime data is read and written by the skills. Shared across…

  • In this repositoryOne other file it gives its agents.

The file

We split this CLAUDE.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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. Distinctive:

    No silent writes: No component writes to any file without a user-visible interaction that triggered it.

    line 64
  2. Very specific:

    Audit log on every write: Every write action by any component appends to ~/.claude/strategy-os/data/audit-log.jsonl.

    line 66
  3. Distinctive:

    No true hooks — detection happens within Claude's skill-triggering loop

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md 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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this project is

Strategy OS is a Claude skill — a prompt-driven workflow system for startup/scaleup CEOs. No compiled code, no build system, no test suite. All content is markdown.

Distribution

End users install via:

npx skills add josephfung/strategy-os
claude plugin install --from github:josephfung/strategy-os

The .claude-plugin/plugin.json registers the plugin with Claude's plugin system (metadata only — no logic lives there).

Architecture

Strategy OS v2 has three operating modes, unified by a shared data layer.

SKILL.md                    ← /strategy dispatcher — $ARGUMENTS routing to lifecycle phases and coach
shared/principles.md        ← 6 non-negotiables. All components read this first.
data/                       ← Starter templates (copied to ~/.claude/strategy-os/data/ on first run)
lifecycle/workflow.md       ← Mode 1: episodic 5-phase strategy work (reference doc, not a skill)
lifecycle/references/       ← Templates, prompts, and checklists for phases 1-5
agents/strategy-analyst.md  ← Mode 2: isolated subagent for ambient misalignment detection
agents/strategy-coach.md    ← Mode 3: isolated subagent for KPI tracking and check-in cadence
hooks/hooks.json            ← Wires UserPromptSubmit (analyst) and SessionStart (coach) events
scripts/detect-keywords.sh  ← Shell script: keyword scan, triggers analyst on match
scripts/check-coach-cadence.sh ← Shell script: cadence check, triggers coach if overdue

Data Layer

Live data location: ~/.claude/strategy-os/data/ — this is where all runtime data is read and written by the skills. Shared across Claude Code and Claude Desktop.

Template files: data/ (in this repo) — shipped with the plugin as starter files. On first run, the skill copies these to ~/.claude/strategy-os/data/ if that directory does not yet exist.

FileOwnerPurpose
~/.claude/strategy-os/data/strategy.mdLifecycle (Phase 1)Canonical strategy doc — source of truth
~/.claude/strategy-os/data/strategy-header.mdAuto-generated1-2 sentence summary for ambient loading (~150 tokens)
~/.claude/strategy-os/data/kpi-registry.mdCoachKPI definitions, targets, check-in history
~/.claude/strategy-os/data/watcher-memory.mdAnalystFull log of flags and user responses
~/.claude/strategy-os/data/watcher-memory-summary.mdAuto-generatedRecent patterns for cool-down and salience scoring
~/.claude/strategy-os/data/audit-log.jsonlAll componentsWrite-action log — one JSON object per line

The lifecycle skill is the only component that writes to ~/.claude/strategy-os/data/strategy.md (with CEO approval). After any write to ~/.claude/strategy-os/data/strategy.md, it also regenerates ~/.claude/strategy-os/data/strategy-header.md.

Key Invariants

These must be preserved when editing any skill file:

  • No silent writes. No component writes to any file without a user-visible interaction that triggered it.
  • Audit log on every write. Every write action by any component appends to ~/.claude/strategy-os/data/audit-log.jsonl.
  • Analyst is advisory only. Flags are prefixed notes, not blockers. Never directive.
  • Principles are canonical. The 6 principles in shared/principles.md must not be contradicted by any component's workflow instructions.
  • lifecycle/references/ paths. lifecycle/workflow.md references files as lifecycle/references/X.md — not as references/X.md. Don't break these.

Detection Paths (Two Environments)

Claude Code (hooks-based, mechanical):

  • SessionStart: root SKILL.md runs First-Run Check + ambient load; scripts/check-coach-cadence.sh checks if coach check-in is overdue and injects a trigger if so
  • UserPromptSubmit: scripts/detect-keywords.sh scans every message against six keyword clusters; injects a trigger if a match is found and the cluster is not in cool-down
  • Explicit: /strategy [subcommand] invokes root SKILL.md directly via $ARGUMENTS routing

Claude.ai / Desktop (description-based):

  • Strategy-adjacent language triggers root SKILL.md via its description field
  • strategy-analyst and strategy-coach agents activate via their own description fields
  • No true hooks — detection happens within Claude's skill-triggering loop
  • /strategy check-in still works as explicit invocation

MCP Integration

Phases 4 and 5 support optional connections to Jira/Monday/ClickUp (ticket tagging) and Slack (drift summaries). Default is always draft-only mode — agents propose, humans approve. The 4-level permission model in lifecycle/references/governance.md defines what can be automated at each level.

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.