agentleFS
andrew-yangyandrew-yangy/gru-ai/.claude/skills/gruai-config/SKILL.md

gruai-config

Skill155 starsChanged 9 months agoMITView on GitHub

Update the gruai framework files (skills, pipeline docs, templates) to the latest version. This replaces the old gruai update CLI command. These are framework files managed by gruai. They get replaced on every update: - .claude/skills/ — all skill SKILL.md files and docs/ subdirectories - .claude/hooks/*.sh — validation and utility scripts (validate-cast.sh, validate-project-json.sh, validate-reviews.sh, validate-gate.sh, detect-stale-docs.sh) - CLAUDE.md — re-rendered from template with your agent names Before reading any package files, resolve the gruai package root directory. This ensures paths…

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 3 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

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

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

    Update the gruai framework files (skills, pipeline docs, templates) to the latest version.

    line 3
  2. Distinctive:

    Before reading any package files, resolve the gruai package root directory.

    line 30
  3. Very specific:

    All package source paths below are relative to $GRUAI_ROOT (e.g., $GRUAI_ROOT/.claude/skills/directive/SKILL.md).

    line 36
  4. Distinctive:

    Check that at least one of these exists:

    line 40
  5. Very specific:

    If none exist, tell the user to run /gruai-agents first.

    line 45
  6. Very specific:

    Create a backup directory at .gruai-backup/{YYYY-MM-DDTHH-MM-SS}/.

    line 49
  7. Very specific:

    Read the SKILL.md from the package source

    line 59
  8. Very specific:

    If the skill has a docs/ subdirectory, copy that too (recursive)

    line 61
  9. Very specific:

    Create .claude/hooks/ in the consumer project if it does not exist

    line 67
  10. Very specific:

    Ensure copied scripts are executable (chmod +x)

    line 69
  11. Very specific:

    Read .claude/agent-registry.json to get the current agent names

    line 75
  12. Very specific:

    Read the project name from gruai.config.json (field: name) or from the first heading in CLAUDE.md

    line 76
  13. Distinctive:

    Write the result to CLAUDE.md

    line 80

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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
SKILL.md

Update gruai Framework Files

Update the gruai framework files (skills, pipeline docs, templates) to the latest version. This replaces the old gruai update CLI command.

What This Does

  1. Backs up existing .claude/skills/ and .claude/hooks/ to .gruai-backup/{timestamp}/
  2. Copies latest skill files from the gruai package
  3. Copies latest hook scripts (.sh files) from the gruai package to .claude/hooks/
  4. Re-renders CLAUDE.md with the latest template (preserving your agent names)

What It DOES Overwrite (Framework Files)

These are framework files managed by gruai. They get replaced on every update:

  • .claude/skills/ — all skill SKILL.md files and docs/ subdirectories
  • .claude/hooks/*.sh — validation and utility scripts (validate-cast.sh, validate-project-json.sh, validate-reviews.sh, validate-gate.sh, detect-stale-docs.sh)
  • CLAUDE.md — re-rendered from template with your agent names

What It Does NOT Overwrite

  • .context/ — your data (vision, directives, reports, lessons)
  • .claude/agent-registry.json — your team names and config
  • .claude/agents/*.md — your personality files
  • gruai.config.json — your project configuration

Instructions

Step 0: Resolve Package Root

Before reading any package files, resolve the gruai package root directory. This ensures paths work whether gruai is installed via npm, linked locally, or running from source.

GRUAI_ROOT="$(bash "$(npm root)/gru-ai/cli/resolve-pkg-root.sh" 2>/dev/null || bash "cli/resolve-pkg-root.sh")"

All package source paths below are relative to $GRUAI_ROOT (e.g., $GRUAI_ROOT/.claude/skills/directive/SKILL.md).

Step 1: Verify This Is a gruai Project

Check that at least one of these exists:

  • .claude/agent-registry.json
  • CLAUDE.md
  • gruai.config.json

If none exist, tell the user to run /gruai-agents first.

Step 2: Create Backup

Create a backup directory at .gruai-backup/{YYYY-MM-DDTHH-MM-SS}/.

Copy the existing .claude/skills/ directory tree into the backup. Copy the existing .claude/hooks/ directory tree into the backup (if it exists). Copy the existing CLAUDE.md into the backup.

Step 3: Update Skill Files and Hooks

Skills: For each skill in the gruai package (directive, scout, healthcheck, report, gruai-agents, gruai-config):

  1. Read the SKILL.md from the package source
  2. Copy it to .claude/skills/{skill}/SKILL.md in the user's project
  3. If the skill has a docs/ subdirectory, copy that too (recursive)

The package source skills are at $GRUAI_ROOT/.claude/skills/ (resolved in Step 0).

Hooks: Copy all .sh files from $GRUAI_ROOT/.claude/hooks/ to the consumer's .claude/hooks/ directory:

  1. Create .claude/hooks/ in the consumer project if it does not exist
  2. Copy each .sh file from $GRUAI_ROOT/.claude/hooks/*.sh to .claude/hooks/
  3. Ensure copied scripts are executable (chmod +x)

This ensures pipeline docs can reference .claude/hooks/ directly -- the hooks are always present in the consumer project after running /gruai-config.

Step 4: Re-render CLAUDE.md

  1. Read .claude/agent-registry.json to get the current agent names
  2. Read the project name from gruai.config.json (field: name) or from the first heading in CLAUDE.md
  3. Read $GRUAI_ROOT/cli/templates/CLAUDE.md.template
  4. Replace {{PROJECT_NAME}} with the project name
  5. Replace {{AGENT_ROSTER}} with a markdown table built from the registry agents
  6. Write the result to CLAUDE.md

Step 5: Report

Output a summary:

  • How many skills were updated
  • How many files were backed up
  • The backup location
  • What was preserved (not overwritten)

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.