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…
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- code-review-excellenceSkill
- directiveSkill
- frontend-designSkill
- gruai-agentsSkill
- healthcheckSkill
- reportSkill
- scoutSkill
- seo-auditSkill
- smoke-testSkill
- walkthroughSkill
- webapp-testingSkill
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
- Very specific: line 3
Update the gruai framework files (skills, pipeline docs, templates) to the latest version.
- Distinctive: line 30
Before reading any package files, resolve the gruai package root directory.
- Very specific: line 36
All package source paths below are relative to $GRUAI_ROOT (e.g., $GRUAI_ROOT/.claude/skills/directive/SKILL.md).
- Distinctive: line 40
Check that at least one of these exists:
- Very specific: line 45
If none exist, tell the user to run /gruai-agents first.
- Very specific: line 49
Create a backup directory at .gruai-backup/{YYYY-MM-DDTHH-MM-SS}/.
- Very specific: line 59
Read the SKILL.md from the package source
- Very specific: line 61
If the skill has a docs/ subdirectory, copy that too (recursive)
- Very specific: line 67
Create .claude/hooks/ in the consumer project if it does not exist
- Very specific: line 69
Ensure copied scripts are executable (chmod +x)
- Very specific: line 75
Read .claude/agent-registry.json to get the current agent names
- Very specific: line 76
Read the project name from gruai.config.json (field: name) or from the first heading in CLAUDE.md
- Distinctive: line 80
Write the result to CLAUDE.md
≈ “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.
Files
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
- Backs up existing
.claude/skills/and.claude/hooks/to.gruai-backup/{timestamp}/ - Copies latest skill files from the gruai package
- Copies latest hook scripts (
.shfiles) from the gruai package to.claude/hooks/ - Re-renders
CLAUDE.mdwith 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 filesgruai.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.jsonCLAUDE.mdgruai.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):
- Read the SKILL.md from the package source
- Copy it to
.claude/skills/{skill}/SKILL.mdin the user's project - 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:
- Create
.claude/hooks/in the consumer project if it does not exist - Copy each
.shfile from$GRUAI_ROOT/.claude/hooks/*.shto.claude/hooks/ - 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
- Read
.claude/agent-registry.jsonto get the current agent names - Read the project name from
gruai.config.json(field:name) or from the first heading inCLAUDE.md - Read
$GRUAI_ROOT/cli/templates/CLAUDE.md.template - Replace
{{PROJECT_NAME}}with the project name - Replace
{{AGENT_ROSTER}}with a markdown table built from the registry agents - 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)
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
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.

