superpowers-cn
AGENTS.md8 starsChanged 6 months agoMITView on GitHub
This file is written for AI coding agents that have no prior context about the repository. It summarizes the project structure, runtime model, conventions, tests, and contribution rules. When this file conflicts with a more specific instructions file (e.g. CLAUDE.md, a per-directory AGENTS.md, or a user's direct request), the more specific instruction wins. 本项目是 Superpowers 的中文触发词优化版本,由 jnlk-cn 维护。核心技能文件已翻译为中文,并对 description 等触发元数据做了中文优化,使中文提示更容易激活对应工作流。 Superpowers CN is a fork of the Superpowers agent-workflow plugin. It ships a library of agent "skills" (markdown documents with…
- Reads credentials
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,542 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 168
Skills are behavior-shaping code, not prose: Treat edits to skills/*/SKILL.md as carefully as code changes.
- Very specific: line 170
Action vocabulary, not tool names: Never put harness-specific tool names (e.g.
- Very specific: line 186
Version synchronization: Update .version-bump.json if you add a new manifest that carries a version field, then run scripts/bump-version.sh.
- Very specific: line 199
Skill changes require evaluation: If you change a skill, follow skills/writing-skills/SKILL.md: write adversarial subagent pressure …
- Distinctive: line 248
Skill changes need eval evidence: Do not modify carefully-tuned content (Red Flags tables, rationalizations, "human partner" language) …
- Very specific: line 266
When in doubt, look at the live reference integration for the harness you are working on, then read docs/porting-to-a-new-harness.md for …
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.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.
Files
AGENTS.md — Superpowers CN(中文触发词优化版)
This file is written for AI coding agents that have no prior context about the repository. It summarizes the project structure, runtime model, conventions, tests, and contribution rules. When this file conflicts with a more specific instructions file (e.g.
CLAUDE.md, a per-directoryAGENTS.md, or a user's direct request), the more specific instruction wins.本项目是 Superpowers 的中文触发词优化版本,由 jnlk-cn 维护。核心技能文件已翻译为中文,并对
description等触发元数据做了中文优化,使中文提示更容易激活对应工作流。
Project overview
Superpowers CN is a fork of the Superpowers agent-workflow plugin. It ships a library of agent "skills" (markdown documents with YAML frontmatter) that are loaded by multiple coding-agent harnesses:
- Claude Code (
.claude-plugin/) - Codex (
.codex-plugin/) - Cursor (
.cursor-plugin/) - Kimi Code (
.kimi-plugin/) - OpenCode (
.opencode/) - Pi (
.pi/) - Gemini CLI (
gemini-extension.json+GEMINI.md) - Antigravity, Copilot CLI, Factory Droid (covered by shared hooks / manifests)
The project is intentionally zero-dependency for the core skill library.
Optional test harnesses have their own local dependencies (e.g. ws in
tests/brainstorm-server).
Current version: 6.0.3 (kept in sync across plugin manifests by
.version-bump.json and scripts/bump-version.sh).
Repository layout
| Path | Purpose |
skills/ | Source of truth. One directory per skill, each containing a SKILL.md with YAML frontmatter (name, description). Shared verbatim by every harness. |
skills/using-superpowers/references/ | Per-harness tool-mapping reference docs (claude-code-tools.md, kimi-tools.md, codex-tools.md, pi-tools.md, etc.). Skills describe actions, not concrete tool names. |
.claude-plugin/, .codex-plugin/, .cursor-plugin/, .kimi-plugin/ | Harness-specific plugin manifests and hooks. |
.opencode/plugins/superpowers.js | OpenCode plugin: registers the skills/ directory and injects the bootstrap context via experimental.chat.messages.transform. |
.pi/extensions/superpowers.ts | Pi extension: registers skills/ and injects bootstrap at session_start / after session_compact. |
gemini-extension.json + GEMINI.md | Gemini CLI extension manifest and context file. |
hooks/ | Session-start hooks for harnesses that use shell hooks (Claude Code, Codex, Cursor, Copilot CLI). Includes the polyglot dispatcher run-hook.cmd. |
tests/ | Plugin/infrastructure tests organized by harness. |
scripts/ | Repository maintenance scripts: bump-version.sh, lint-shell.sh, sync-to-codex-plugin.sh. |
docs/ | Human-facing docs, design plans (docs/plans/), and per-harness install guides (docs/README.kimi.md, docs/README.opencode.md). |
package.json | NPM package metadata (name: superpowers-cn), ES-module marker, OpenCode main entry, and Pi package configuration. |
.version-bump.json | Declares every file that must stay on the same version number. |
Technology stack and runtime architecture
- Core content: Markdown + YAML frontmatter. No build step for the skills.
- Plugin code:
- OpenCode plugin: ES module JavaScript (
superpowers.js). - Pi extension: TypeScript loaded natively by Pi (
superpowers.ts). - Claude / Codex / Cursor / Kimi / Gemini: JSON manifests + shell hooks or declared context files.
- OpenCode plugin: ES module JavaScript (
- Hook scripts: Bash, with a
run-hook.cmdpolyglot wrapper so the same dispatcher works on Windows (CMD) and Unix (bash). - Tests: Bash, Node.js, Python. No top-level test runner; each test
directory has its own
run-*.shscript.
How it works at runtime
- Bootstrap injection: At the start of every session the harness injects
the full contents of
skills/using-superpowers/SKILL.mdinto the model context, wrapped in<EXTREMELY_IMPORTANT>tags, plus the harness-specific tool mapping. - Skill auto-trigger: The bootstrap tells the model to check for relevant
skills before acting. Skills are loaded through the harness's native skill
mechanism (or
readif no skill tool exists). - Action vocabulary: Skill bodies never name a specific harness's tools. They say things like "dispatch a subagent", "create a todo", "read a file". The harness-specific reference doc maps those actions to real tools.
Without the bootstrap, the skill files are inert — present on disk but never invoked.
Key configuration files
package.json— package metadata, ES module type, Pipi.extensions/pi.skills, OpenCodemain..claude-plugin/plugin.json+.claude-plugin/marketplace.json— Claude Code plugin and marketplace entries..codex-plugin/plugin.json— Codex plugin manifest; points tohooks/hooks-codex.json..cursor-plugin/plugin.json— Cursor plugin manifest; points tohooks/hooks-cursor.json..kimi-plugin/plugin.json— Kimi Code plugin manifest; declaressessionStart.skill: using-superpowersand inlineskillInstructions.gemini-extension.json— Gemini CLI extension manifest; declarescontextFileName: GEMINI.md.GEMINI.md— Points Gemini at the bootstrap skill and the Gemini tool mapping.hooks/hooks.json,hooks/hooks-codex.json,hooks/hooks-cursor.json— Hook declarations for shell-hook harnesses..version-bump.json— Declares all files that participate in version sync..pre-commit-config.yaml— Runsruffchecks on the optionalevals/Python harness (only ifevals/is present)..gitignore— Ignores.worktrees/,.private-journal/,.claude/,.superpowers/,node_modules/, and the separately-clonedevals/.
Build and test commands
There is no top-level build. Individual test suites are run from their own directories.
Fast, harness-agnostic tests (recommended before committing):
# Shell hook output tests
bash tests/hooks/test-session-start.sh
# Shell-lint script self-tests
bash tests/shell-lint/test-lint-shell.sh
# Version sync check
bash scripts/bump-version.sh --check
# Lint changed shell scripts (requires shellcheck; shfmt optional)
bash scripts/lint-shell.shPer-harness plugin tests:
# Brainstorm server (Node tests + shell platform tests)
cd tests/brainstorm-server
npm install # if needed
npm test
# OpenCode plugin (no OpenCode required by default)
bash tests/opencode/run-tests.sh
# Add --integration to run tests that need a live OpenCode CLI.
# Kimi plugin manifest wiring
bash tests/kimi/run-tests.sh
# Pi extension (Node test, no external deps)
node tests/pi/test-pi-extension.mjs
# Claude Code skill tests (requires `claude` CLI)
bash tests/claude-code/run-skill-tests.sh
# Add --integration for slow full-workflow tests.
# Antigravity integration (requires `agy` CLI)
bash tests/antigravity/run-tests.sh
# Codex plugin sync verification (bash-only)
bash tests/codex-plugin-sync/test-sync-to-codex-plugin.shSkill behavior evaluation uses the separate
superpowers-evals
repository, cloned into evals/:
cd evals
uv sync --extra dev
export ANTHROPIC_API_KEY=sk-...
uv run drill run triggering-test-driven-development -b claudeThese evals drive real LLM sessions and are slow; they are not part of CI today.
Code style and conventions
- Skills are behavior-shaping code, not prose. Treat edits to
skills/*/SKILL.mdas carefully as code changes. - Action vocabulary, not tool names. Never put harness-specific tool names
(e.g.
TodoWrite,apply_patch,Agent) into skill bodies. Use the action phrases defined in the harness reference docs. - SKILL.md frontmatter:
- Required:
name(lowercase, hyphens, no spaces/special chars) anddescription. - Total frontmatter ≤ 1024 characters.
descriptionmust start with a triggering condition, written in third person, and must not summarize the skill workflow (seeskills/writing-skills/SKILL.md"Skill Discovery Optimization").
- Required:
- Chinese optimization: Descriptions and skill bodies are in Chinese and tuned so Chinese prompts trigger the right skill.
- No third-party dependencies in core. PRs adding dependencies are rejected unless they are adding support for a new harness.
- Cross-platform hooks: Hook scripts are extensionless (
session-start, notsession-start.sh). Dispatcher logic lives inhooks/run-hook.cmd. - Version synchronization: Update
.version-bump.jsonif you add a new manifest that carries a version field, then runscripts/bump-version.sh. - Refer to
CLAUDE.mdfor full contributor rules (PR requirements, prohibited changes, skill-change evaluation expectations).
Testing strategy
tests/— fast plugin/infrastructure tests: manifest wiring, hook JSON output, bootstrap caching, brainstorm-server JS, shell lint, sync verification.evals/— slow LLM-driven behavior evals from the separatesuperpowers-evalsrepo. They verify that agents actually follow skill instructions in real sessions.- Skill changes require evaluation. If you change a skill, follow
skills/writing-skills/SKILL.md: write adversarial subagent pressure scenarios, establish baseline failure, then verify the skill fixes it. - New harness support requires a clean-session transcript proving that the
bootstrap auto-triggers
brainstormingon the exact prompt:Let's make a react todo list.
Release, versioning, and deployment
- Version sync:
scripts/bump-version.sh <new-version>updates every file declared in.version-bump.json. Use--checkto detect drift and--auditto scan for missed occurrences. Requiresjq. - Shell lint:
scripts/lint-shell.sh [--all] [--format] [files...]runsshellcheck(and optionallyshfmt) on shell files. - Codex distribution:
scripts/sync-to-codex-plugin.shsyncs the tracked plugin content intoprime-radiant-inc/openai-codex-pluginsand opens a PR. Requiresbash,rsync,git,gh(authenticated), andpython3. - No GitHub Actions workflows are present; tests are run locally or via the user's own pre-commit / CI setup.
Security and privacy considerations
- Local-only bootstrap: Session-start hooks read
skills/using-superpowers/SKILL.mdfrom the plugin checkout and inject it into the model context. No external service is contacted during injection. - No remote telemetry: This fork has removed the brainstorming visual
companion's remote telemetry. The companion no longer loads any external logo
or image; it only displays a local text label (
Superpowers CN v{version}). The original opt-out environment variables (SUPERPOWERS_DISABLE_TELEMETRY,DISABLE_TELEMETRY,CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC) are therefore no longer needed. - Do not edit user files: A real integration delivers the bootstrap and
skills through the harness's own install mechanism. Never hand-edit a user's
global config (e.g.
~/.gemini/config/AGENTS.md,settings.json) as part of a port or fix. - Hook scripts execute shell commands: Changes to
hooks/session-start,hooks/session-start-codex, orhooks/run-hook.cmdaffect every session of every user. Keep them portable, self-contained, and free of PATH-dependent assumptions.
Contributing and pull requests
- Read
CLAUDE.mdfirst. It contains the strict contributor rules and is the authoritative source for PR requirements. - Read
.github/PULL_REQUEST_TEMPLATE.mdand fill in every section. - Target the
devbranch, notmain. - Disclose the agent environment (model, harness, version, installed plugins) in every PR.
- One problem per PR. Bundled or speculative PRs are closed without review.
- Skill changes need eval evidence. Do not modify carefully-tuned content (Red Flags tables, rationalizations, "human partner" language) without before/after eval results.
- New skills must be general-purpose. Domain-specific, tool-specific, or project-specific skills belong in a separate plugin.
Per-harness quick reference
| Harness | Bootstrap mechanism | Skill discovery | Tool mapping reference |
| Claude Code | hooks/session-start via hooks/hooks.json | Native Skill tool | skills/using-superpowers/references/claude-code-tools.md |
| Codex | hooks/session-start-codex via hooks/hooks-codex.json | Native | skills/using-superpowers/references/codex-tools.md |
| Cursor | hooks/session-start via hooks/hooks-cursor.json | Native | skills/using-superpowers/references/claude-code-tools.md |
| Kimi Code | .kimi-plugin/plugin.json sessionStart.skill | Native Skill tool | Inline skillInstructions + skills/using-superpowers/references/kimi-tools.md |
| OpenCode | .opencode/plugins/superpowers.js message transform | Plugin registers skills/ path | Inline in .opencode/plugins/superpowers.js and docs/README.opencode.md |
| Pi | .pi/extensions/superpowers.ts context injection | resources_discover skillPaths | skills/using-superpowers/references/pi-tools.md |
| Gemini CLI | GEMINI.md declared by gemini-extension.json | Native activate_skill | skills/using-superpowers/references/gemini-tools.md |
When in doubt, look at the live reference integration for the harness you are
working on, then read docs/porting-to-a-new-harness.md for the invariants that
must hold for any new port.
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.

