From superpowers-plus
Initializes or upgrades AI guidance (AGENTS.md) in a git repo. Detects repo state and language, then generates appropriate guidance using the golden-agents framework.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-plus:golden-agentsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
> **Wrong skill?** Writing individual skills → `skill-authoring`. Checking skill health → `skill-health-check`. Runtime diagnostics → `superpowers-doctor`.
Wrong skill? Writing individual skills →
skill-authoring. Checking skill health →skill-health-check. Runtime diagnostics →superpowers-doctor.Last Updated: 2026-02-01
Initialize or upgrade AI guidance in any repository using the golden-agents framework. Auto-detects repo state and language, offers appropriate workflow.
Prerequisite: Clone golden-agents if not present:
git clone https://github.com/bordenet/golden-agents.git ~/.golden-agents
Invoke when:
# Verify golden-agents is installed
if [[ ! -f ~/.golden-agents/generate-agents.sh ]]; then
echo "Installing golden-agents..."
git clone https://github.com/bordenet/golden-agents.git ~/.golden-agents
fi
# Sync to latest
~/.golden-agents/generate-agents.sh --sync
# Check if git repo exists
if [[ ! -d .git ]]; then
echo "No git repository found."
# Offer: git init
fi
| File State | Action |
|---|---|
| No AGENTS.md | → New generation |
| AGENTS.md WITH markers | → Upgrade path |
| AGENTS.md WITHOUT markers | → Migrate path |
| Only CLAUDE.md (no AGENTS.md) | → Migrate path |
Check for markers:
if [[ -f AGENTS.md ]]; then
if grep -q "<!-- GOLDEN:framework:start -->" AGENTS.md; then
echo "AGENTS.md has markers → Upgrade path"
else
echo "AGENTS.md lacks markers → Migrate path"
fi
fi
Scan for dependency files:
| File | Language |
|---|---|
go.mod | go |
package.json | javascript |
requirements.txt / pyproject.toml | python |
pubspec.yaml | dart-flutter |
Cargo.toml | rust |
*.sh (multiple) | shell |
Scan for project type indicators:
| Indicator | Type |
|---|---|
cmd/ directory | cli-tools |
templates/ + generator scripts | genesis-tools |
src/ + index.html or framework config | web-apps |
ios/ + android/ directories | mobile-apps |
Present findings to user for confirmation:
Detected:
Languages: go, shell
Type: cli-tools
Proceed with these settings? [Y/n/edit]
Based on detection results, run the appropriate workflow from references/workflows.md:
| Detected State | Workflow | Key Command |
|---|---|---|
| No .git | 2.1 New Repository | git init + generate-agents.sh |
| Git, no AGENTS.md | 2.2 New AI Guidance | generate-agents.sh --language=X --type=Y --path=. |
| AGENTS.md with markers | 2.3 Upgrade | generate-agents.sh --upgrade --path=. |
| AGENTS.md without markers | 2.4 Migrate | Interactive: Migrate/Replace/Cancel |
After generating AGENTS.md, create redirect files (CLAUDE.md, CODEX.md, GEMINI.md, COPILOT.md) pointing to AGENTS.md. See references/workflows.md for templates.
Always ask before committing. Suggest message based on action:
| Action | Commit Message |
|---|---|
| New repo | feat: Initialize repository with AI guidance |
| Add to existing | feat: Add AI guidance files |
| Upgrade | chore: Upgrade AI guidance framework |
| Migrate | refactor: Migrate to golden-agents framework |
| Command | Purpose |
|---|---|
~/.golden-agents/generate-agents.sh --help | Show all options |
~/.golden-agents/generate-agents.sh --sync | Update templates from GitHub |
~/.golden-agents/generate-agents.sh --dry-run | Preview without writing |
~/.golden-agents/generate-agents.sh --upgrade | Preview upgrade diff |
~/.golden-agents/generate-agents.sh --upgrade --apply | Apply upgrade |
~/.golden-agents/generate-agents.sh --compact | Generate ~130 line version |
| Mistake | Fix |
|---|---|
Running without --path | Always specify --path=. or target directory |
| Upgrading file without markers | Use migrate workflow instead |
| Forgetting redirect files | Always create all 4 (CLAUDE, CODEX, GEMINI, COPILOT) |
| Not syncing before upgrade | Run --sync to get latest templates |
references/workflows.md — Phase 2 workflow templates (new/upgrade/migrate), Phase 3 redirect file templates, language detection scripts. Load when executing a workflow.npx claudepluginhub bordenet/superpowers-plus --plugin superpowers-plusGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.