Agent skill

Governor

by cwinvestments in cwinvestments/memstack

A skill your agent uses when the user says 'new project', 'project init', 'what tier', 'scope', or discusses project maturity, complexity budget, or what's appropriate to build.

MITAuto-check passed

Install Governor

skills CLI
$ npx skills add cwinvestments/memstack --skill governor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cwinvestments/memstack governor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cwinvestments/memstack.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/governor .claude/skills/governor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
governor
GitHub stars
423
Token cost
~1.7k tokens
SKILL.md length
788 words
Files
1
Skills in repo
87
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user says 'new project', 'project init', 'what tier', 'scope', or discusses project maturity, complexity budget, or what's appropriate to build.

  • Works in 4 steps: Determine Project Tier → Apply Tier Constraints → Report Constraints → …
  • The user says new project
  • SKILL.md covers Activation, Context Guard, Anti-Rationalization and Protocol, plus 4 more sections
  • Calls git

What it does

Governor is an agent skill from cwinvestments/memstack. Use when the user says 'new project', 'project init', 'what tier', 'scope', or discusses project maturity, complexity budget, or what's appropriate to build.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Structured skill framework for Claude Code. 130 skills, persistent memory, TokenStack compression, localhost dashboard with 3-agent runner, real-time streaming, MCP tools. The licence is MIT.

When your agent uses it

  • The user says new project
  • Discusses project maturity
  • Complexity budget
  • Whats appropriate to build

Example prompts

  • “new project”
  • “project init”
  • “what tier”
  • “/governor”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Determine Project Tier
  2. Apply Tier Constraints
  3. Report Constraints
  4. Flag Violations

What it can do on your machine

Read from SKILL.md and the folder at commit 00370ce. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Governor loads about 1.7k tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 788 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from cwinvestments/memstack at commit 00370ce, republished under its MIT licence (© cwinvestments). 788 words, ~1,674 tokens.

Download SKILL.mdSave it as .claude/skills/governor/SKILL.md (or your agent's skills folder).
name
governor
description
Use when the user says 'new project', 'project init', 'what tier', 'scope', or discusses project maturity, complexity budget, or what's appropriate to build.
version
1.0.0

🏛️ Governor: Portfolio Governance

Enforce tier-appropriate complexity. Prevent over-engineering the #1 waste of time in AI-assisted development.

Activation

When this skill activates, output:

🏛️ Governor: Checking project tier constraints...

Then execute the protocol below.

Context Guard

ContextStatusPriority
User starts a new project ("new project", "init", "scaffold")ACTIVE: assign tierP1
User asks "what tier", "what's allowed", "scope check"ACTIVE, report current tier constraintsP1
User proposes work that exceeds current tierACTIVE: flag and adviseP2
User is executing work within tier constraintsDORMANT: don't interruptnone
User explicitly overrides ("I know, do it anyway")DORMANT: user has authoritynone

Anti-Rationalization

If you're thinking any of these, STOP, you're about to let scope creep happen:

You're thinking...Reality
"Adding tests is always good practice"Not for prototypes. Tests for throwaway code waste time.
"This needs proper auth"Single-user tools don't need auth. Add it when there are users.
"Let me add CI/CD while I'm at it"CI/CD for a prototype is gold-plating. Ship first.
"Error handling should be comprehensive"Prototype error handling = crash and log. That's it.
"I should add monitoring"< 10 users? Console.log is your monitoring.
"This should be configurable"Hardcode it. Make it configurable when someone asks.

Protocol

Step 1: Determine Project Tier

Ask or infer the project tier from context:

TierDescriptionEffort Allocation
PrototypeExploring an idea. May be thrown away.Minimal: working code only
MVPValidated idea, building for first users.Moderate: basic quality gates
ProductionServing real users, needs reliability.Full: complete quality stack

If tier is unclear, default to Prototype and escalate only when evidence suggests otherwise.

Step 2: Apply Tier Constraints
Prototype: Move Fast, Break Things
AllowedNOT Allowed
Working code that demonstrates the ideaUnit tests
Hardcoded config valuesCI/CD pipelines
Console.log for debuggingType systems / strict typing
Single-file scriptsMonitoring / alerting
README with setup instructionsAuthentication / authorization
Infrastructure-as-code
Rate limiting
Database migrations (use SQLite)

Prototype rule: If it works in a demo, ship it.

MVP: Prove It Works
AllowedNOT Allowed
Everything from Prototype, plus:Integration test suites
Basic unit tests (happy path only)Full CI/CD with staging
Simple error handling (try/catch at boundaries)Monitoring dashboards
Environment variables for configMulti-environment deploys
Basic input validationPerformance optimization
Simple auth (if multi-user)Horizontal scaling
README + basic API docsComprehensive logging

MVP rule: If the first 10 users can use it reliably, ship it.

Production: Reliability Matters
AllowedRequired
Everything from MVP, plus:Comprehensive tests (unit + integration)
Performance optimizationCI/CD pipeline
Monitoring and alertingError tracking (Sentry or equivalent)
Multi-environment deploymentInput validation at all boundaries
Horizontal scalingAuthentication + authorization
Database migrationsLogging with structured output
Rate limitingAPI documentation

Production rule: If it breaks at 3 AM, someone gets paged.

Step 3: Report Constraints

Output a brief summary:

🏛️ Project: {name}
   Tier: {Prototype | MVP | Production}
   Allowed: {brief list}
   NOT allowed: {brief list of key restrictions}
Step 4: Flag Violations

When the user proposes work that exceeds the tier, flag it:

🏛️ Governor, Scope check:
   You're proposing {X}, but this is a {Tier} project.
   {X} is a {higher tier} concern. Current tier doesn't require it.
   Want to proceed anyway, or skip it for now?

Always defer to the user if they override. Governor advises, doesn't block.

Show full SKILL.md (304 more words)Show less

Anti-Patterns by Tier

Prototype Anti-Patterns: DON'T DO THIS
  1. Writing tests for throwaway code: If the prototype proves the idea wrong, those tests are wasted
  2. Adding auth to single-user tools: You're the only user. Skip it
  3. Setting up CI/CD: You're not deploying to production. git push is your CI
  4. Using TypeScript for a quick script: JavaScript is fine for prototypes
  5. Adding rate limiting: You have 0 users. Rate limit when you have 10
  6. Creating database migrations: SQLite + direct schema changes. Migrate when you scale
  7. Building admin dashboards: Database GUI tool (TablePlus, DBeaver) is your admin panel
  8. Over-abstracting: 3 similar lines > 1 premature abstraction
  9. Adding comprehensive error handling: Crash and read the stack trace. That's debugging
  10. Monitoring and alerting: Console output is your monitoring
MVP Anti-Patterns: DON'T DO THIS
  1. Integration test suites: Happy-path unit tests are enough at MVP
  2. Multi-environment deploys: One environment. Dev IS production
  3. Performance optimization: Make it work, make it right, THEN make it fast. You're at step 2
  4. Horizontal scaling: Vertical scale (bigger server) until proven insufficient
  5. Comprehensive logging: Log errors and key events. Not every function call
Production Anti-Patterns: DON'T DO THIS
  1. Skipping tests to "move faster": You'll move slower when bugs hit production
  2. Manual deployments: CI/CD exists for a reason. Set it up
  3. No error tracking: If you can't see errors, you can't fix them
  4. Ignoring security: Production code faces the internet. Act like it

Inputs

  • Project name and context
  • Current tier (from user, STATE.md, or project CLAUDE.md)
  • Proposed work scope

Outputs

  • Tier assignment with constraint summary
  • Violation flags when scope exceeds tier
  • Anti-pattern warnings

Level History

  • Lv.1: Base: 3-tier governance system with phase constraints, anti-patterns list, and scope violation flagging. Inspired by Intellegix portfolio governance. (Origin: MemStack v3.2, Feb 2026)

© cwinvestments, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/governor of cwinvestments/memstack.

Open the folder on GitHubat commit 00370ce

Compare with similar skills

Governor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Governor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Governor this skillcwinvestments/memstack423—~1.7kAutomated safety check: PassMIT
Initasgeirtj/system_prompts_leaks69k—~5.5kAutomated safety check: PassCC0-1.0
Initasgeirtj/system_prompts_leaks69k—~602Automated safety check: PassCC0-1.0
Initbrycewang-stanford/Auto-Empirical-Research-Skills4.6k—~596Automated safety check: NotesCustom licence
Agent Coordinator Swarm Initruvnet/ruflo74k2 repos~997Automated safety check: PassMIT
Free Tier Strategysickn33/agentic-awesome-skills47k1 repos~3.4kAutomated safety check: PassMIT

Similar skills

  • Init

    asgeirtj/system_prompts_leaks

    Initialize new CLAUDE.md file(s) and optional skills/hooks with codebase documentation

    69k GitHub stars~5.5k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Init

    asgeirtj/system_prompts_leaks

    Initialize a new CLAUDE.md file with codebase documentation. An agent skill from asgeirtj/system_prompts_leaks.

    69k GitHub stars~602 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Init

    brycewang-stanford/Auto-Empirical-Research-Skills

    Fills all [FILL:] placeholders across the template to initialize a new research project.

    4.6k GitHub stars~596 tokensUpdated 5 days ago
    Auto-check: notes
  • Agent skill for coordinator-swarm-init - invoke with $agent-coordinator-swarm-init

    74k GitHub starsUsed in 2 repos~997 tokens
    Auto-check passed
  • Free Tier Strategy

    sickn33/agentic-awesome-skills

    Design free tiers that convert to paid without creating resentment or abuse.

    47k GitHub starsUsed in 1 repo~3.4k tokens
    Auto-check passed
  • Swarm Init

    ruvnet/ruflo

    Initialize a multi-agent swarm with anti-drift configuration.

    74k GitHub stars~319 tokensUpdated yesterday
    SecurityAuto-check passed

More from cwinvestments/memstack

All 87 skills in this repo
  • Memstack SEO Site Audit

    cwinvestments/memstack

    A skill your agent uses when the user says 'SEO audit', 'site audit', 'check SEO', 'audit my site', 'SEO check', 'technical SEO', or is evaluating a website's search engine optimization health, meta…

    423 GitHub stars~3.5k tokensUpdated 14 days ago
    Auto-check passed
  • Memstack SEO Schema Markup

    cwinvestments/memstack

    A skill your agent uses when the user says 'add schema', 'schema markup', 'JSON-LD', 'structured data', 'rich results', 'rich snippets', or is adding or fixing schema.org structured data for better…

    423 GitHub stars~2.7k tokensUpdated 14 days ago
    Auto-check passed
  • Compress

    cwinvestments/memstack

    A skill your agent uses when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage.

    423 GitHub stars~1.2k tokensUpdated 14 days ago
    Auto-check passed
  • Diary

    cwinvestments/memstack

    A skill your agent uses when the user says 'save diary', 'log session', 'wrapping up', or at end of a productive session.

    423 GitHub stars~5k tokensUpdated 14 days ago
    Auto-check passed
  • Echo

    cwinvestments/memstack

    A skill your agent uses when the user references past sessions, asks 'what did we do', 'do you remember', 'last session', 'recall', or 'continue from'.

    423 GitHub stars~1.7k tokensUpdated 14 days ago
    Auto-check passed
  • Familiar

    cwinvestments/memstack

    A skill your agent uses when the user says 'dispatch', 'send familiar', 'split task', or needs work split across parallel CC sessions.

    423 GitHub stars~556 tokensUpdated 14 days ago
    Auto-check passed

Questions about Governor

What does Governor do?

A skill your agent uses when the user says 'new project', 'project init', 'what tier', 'scope', or discusses project maturity, complexity budget, or what's appropriate to build. Governor is an agent skill from cwinvestments/memstack. Use when the user says 'new project', 'project init', 'what tier', 'scope', or discusses project maturity, complexity budget, or what's appropriate to build.

When should I use Governor?

Governor fits situations like: the user says new project; discusses project maturity; complexity budget; whats appropriate to build.

How do I install Governor in Claude Code?

Run `npx skills add cwinvestments/memstack --skill governor -a claude-code`. Or copy the skill folder (skills/governor in cwinvestments/memstack) into .claude/skills/governor in your project. Claude Code loads it when a task matches its description.

How do I install Governor in Codex?

Run `npx skills add cwinvestments/memstack --skill governor -a codex`. Or copy the skill folder (skills/governor in cwinvestments/memstack) into .agents/skills/governor in your project. Codex loads it when a task matches its description.

Can I use Governor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cwinvestments/memstack --skill governor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/governor, .gemini/skills/governor, .github/skills/governor and .opencode/skills/governor in your project.

What does Governor need to run?

Going by SKILL.md and its folder, Governor needs the command-line tools its instructions call (git).

Does Governor access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Governor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Governor use?

Governor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Governor use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Governor?

Skills that share tags, products or a category with Governor: Init (asgeirtj/system_prompts_leaks, 69k stars), Init (asgeirtj/system_prompts_leaks, 69k stars), Init (brycewang-stanford/Auto-Empirical-Research-Skills, 4.6k stars) and Agent Coordinator Swarm Init (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Governor?

cwinvestments (a GitHub user) maintains it in cwinvestments/memstack, which has 423 GitHub stars. The repository holds 87 skills in this directory. The repository was last updated on September 26, 2026.

Source: cwinvestments/memstack on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.