AGENT SKILL
sensei
**WORKFLOW SKILL** - Improve and evaluate Agent Skills with portable validation, host profiles, resource analysis, and behavioral evidence. WHEN: "run sensei", "sensei help", "improve skill", "fix frontmatter", "score skill", "analyze skill", "evaluate skill". INVOKES: Sensei CLI, test runners, git. FOR SINGLE OPERATIONS: use the Sensei CLI directly.
- License 许可
- MIT
- 所属仓库
- spboyer/sensei
- 最近更新
- 2026-11-14
- Stars
- ★ 60
- Forks
- 8
01 前言 Front Matter
- name
- sensei
- description
- **WORKFLOW SKILL** - Improve and evaluate Agent Skills with portable validation, host profiles, resource analysis, and behavioral evidence. WHEN: "run sensei", "sensei help", "improve skill", "fix frontmatter", "score skill", "analyze skill", "evaluate skill". INVOKES: Sensei CLI, test runners, git. FOR SINGLE OPERATIONS: use the Sensei CLI directly.
02 资源文件 158
- 参考文档.ai-team/agents/basher/charter.md2.4 KB
- 参考文档.ai-team/agents/basher/history.md10.8 KB
- 参考文档.ai-team/agents/linus/charter.md2.3 KB
- 参考文档.ai-team/agents/linus/history.md3.5 KB
- 参考文档.ai-team/agents/livingston/charter.md2.7 KB
- 参考文档.ai-team/agents/livingston/history.md3.4 KB
- 参考文档.ai-team/agents/rusty/audit-agent-customization.md9.7 KB
- 参考文档.ai-team/agents/rusty/charter.md2.4 KB
- 参考文档.ai-team/agents/rusty/history.md8.8 KB
- 参考文档.ai-team/agents/scribe/charter.md2.0 KB
- 参考文档.ai-team/casting/history.json518 B
- 参考文档.ai-team/casting/policy.json753 B
- 参考文档.ai-team/casting/registry.json825 B
- 参考文档.ai-team/ceremonies.md978 B
- 参考文档.ai-team/decisions.md20.2 KB
- 参考文档.ai-team/log/2026-02-09-landing-page.md756 B
- 参考文档.ai-team/log/2026-02-09-project-setup.md476 B
- 参考文档.ai-team/log/2026-02-09-publish.md727 B
- 参考文档.ai-team/log/2026-02-17-blog-content-fixes.md604 B
- 参考文档.ai-team/log/2026-02-17-blog-intro-rewrite.md424 B
- 参考文档.ai-team/log/2026-02-17-blog-research-integration.md910 B
- 参考文档.ai-team/log/2026-02-17-blog-social-content.md593 B
- 参考文档.ai-team/log/2026-02-17-linkedin-tables.md663 B
- 参考文档.ai-team/log/2026-02-17-readme-update.md512 B
- 参考文档.ai-team/log/2026-02-18-skillsbench-pr.md515 B
- 参考文档.ai-team/log/2026-02-18-skillsbench-scoring.md804 B
- 参考文档.ai-team/log/2026-02-18-v1-release.md553 B
- 参考文档.ai-team/log/2026-02-19-agent-customization-pr.md1.3 KB
- 参考文档.ai-team/log/2026-02-19-pr-revert-reorg.md1.5 KB
- 参考文档.ai-team/log/2026-02-19-sensei-audit-agent-customization.md1.3 KB
- 参考文档.ai-team/orchestration-log/2026-02-09T21-30-linus.md586 B
- 参考文档.ai-team/orchestration-log/2026-02-09T21-30-livingston.md538 B
- 参考文档.ai-team/orchestration-log/2026-02-09T21-30-rusty.md575 B
- 参考文档.ai-team/routing.md1.4 KB
- 参考文档.ai-team/team.md3.7 KB
- 其他.gitattributes199 B
- 参考文档.github/agents/squad.agent.md104.0 KB
- 参考文档.github/copilot-instructions.md3.2 KB
- 脚本.github/scripts/squad-main-guard.mjs545 B
- 脚本.github/scripts/squad-main-guard.test.mjs4.2 KB
- 参考文档.github/workflows/action-smoke.yml571 B
- 参考文档.github/workflows/deploy-pages.yml907 B
- 参考文档.github/workflows/package-skill.yml2.2 KB
- 参考文档.github/workflows/publish.yml2.2 KB
- 参考文档.github/workflows/squad-ci.yml403 B
- 参考文档.github/workflows/squad-docs.yml1.0 KB
- 参考文档.github/workflows/squad-heartbeat.yml12.0 KB
- 参考文档.github/workflows/squad-issue-assign.yml6.1 KB
- 参考文档.github/workflows/squad-label-enforce.yml6.7 KB
- 参考文档.github/workflows/squad-main-guard.yml2.6 KB
- 参考文档.github/workflows/squad-preview.yml999 B
- 参考文档.github/workflows/squad-release.yml3.0 KB
- 参考文档.github/workflows/squad-triage.yml10.7 KB
- 参考文档.github/workflows/sync-squad-labels.yml6.5 KB
- 其他.gitignore66 B
- 参考文档.token-limits.json437 B
- 参考文档action.yml3.3 KB
- 参考文档agent-registry.json362 B
- 参考文档AGENTS.md8.5 KB
- 参考文档CHANGELOG.md5.1 KB
- 参考文档demo-docs/INTERACTIVE-GUIDE.md2.9 KB
- 参考文档demo-docs/QUICK-REFERENCE.md2.7 KB
- 参考文档demo-docs/README.md2.2 KB
- 脚本demo-docs/run-demo.sh4.5 KB
- 参考文档demo-docs/TALKING-POINTS.md2.7 KB
- 参考文档demo-docs/VIDEO-OUTLINE.md2.3 KB
- 其他docs/.gitignore264 B
- 参考文档docs/.vscode/extensions.json87 B
- 参考文档docs/.vscode/launch.json207 B
- 脚本docs/astro.config.mjs289 B
- 参考文档docs/blog/sensei-launch.md5.6 KB
- 参考文档docs/blog/social-posts.md4.1 KB
- 参考文档docs/package-lock.json141.8 KB
- 参考文档docs/package.json343 B
- 参考文档docs/pilots/aspire-skills-2026-11-13.md6.8 KB
- 参考文档docs/plans/2026-10-29-agent-skills-refresh.md6.1 KB
- 参考文档docs/plans/2026-11-13-evidence-ladder-design.md11.0 KB
- 其他docs/public/favicon.ico655 B
- 资产文件docs/public/favicon.svg444 B
- 参考文档docs/README.md5.4 KB
- 其他docs/src/components/BeforeAfter.astro1.9 KB
- 其他docs/src/components/Evaluation.astro1.6 KB
- 其他docs/src/components/EvidenceProfiles.astro1.8 KB
- 其他docs/src/components/Footer.astro1.4 KB
- 其他docs/src/components/Hero.astro2.7 KB
- 其他docs/src/components/HowItWorks.astro1.8 KB
- 其他docs/src/components/Problem.astro1.6 KB
- 其他docs/src/components/QuickStart.astro6.6 KB
- 其他docs/src/components/ScoringLevels.astro2.2 KB
- 其他docs/src/layouts/BaseLayout.astro1.7 KB
- 其他docs/src/pages/index.astro1.2 KB
- 其他docs/src/styles/global.css337 B
- 参考文档docs/tsconfig.json109 B
- 许可证LICENSE.txt1.0 KB
- 参考文档package.json1.5 KB
- 参考文档README.md19.6 KB
- 参考文档references/adapters.md2.3 KB
- 参考文档references/configuration.md6.7 KB
- 参考文档references/distribution.md3.9 KB
- 参考文档references/evaluation.md8.8 KB
- 参考文档references/examples.md2.9 KB
- 参考文档references/loop.md11.2 KB
- 参考文档references/mcp-integration.md3.7 KB
- 参考文档references/portability.md4.5 KB
- 参考文档references/scoring.md7.4 KB
- 参考文档references/skillsbench.md3.6 KB
- 参考文档references/test-templates/jest.md3.8 KB
- 参考文档references/test-templates/prompts.md5.0 KB
- 参考文档references/test-templates/pytest.md5.4 KB
- 参考文档references/test-templates/skill-init.md2.4 KB
- 参考文档references/test-templates/waza.md1.4 KB
- 脚本scripts/package-lock.json56.9 KB
- 脚本scripts/package-skill.mjs2.5 KB
- 脚本scripts/package-skill.test.mjs5.2 KB
- 脚本scripts/package.json606 B
- 脚本scripts/src/analyze.ts42 B
- 脚本scripts/src/canonical-parity.test.ts1.2 KB
- 脚本scripts/src/checks.ts832 B
- 脚本scripts/src/documentation.test.ts1.2 KB
- 脚本scripts/src/evals/evaluate.test.ts15.4 KB
- 脚本scripts/src/evals/evaluate.ts28.3 KB
- 脚本scripts/src/evals/fixtures/adapter.mjs2.2 KB
- 脚本scripts/src/evals/fixtures/smoke.json627 B
- 脚本scripts/src/evidence.test.ts1.3 KB
- 脚本scripts/src/evidence.ts2.2 KB
- 脚本scripts/src/fixtures/agentskills-validator.json763 B
- 脚本scripts/src/gepa/auto_evaluator.py25.9 KB
- 脚本scripts/src/gepa/requirements.txt12 B
- 脚本scripts/src/host-profiles.test.ts1.5 KB
- 脚本scripts/src/host-profiles.ts2.8 KB
- 脚本scripts/src/package-metadata.test.ts5.2 KB
- 脚本scripts/src/parse.ts132 B
- 脚本scripts/src/proof.test.ts3.5 KB
- 脚本scripts/src/proof.ts3.9 KB
- 脚本scripts/src/public-exports.test.ts1010 B
- 脚本scripts/src/repo-policy.test.ts2.6 KB
- 脚本scripts/src/repo-policy.ts3.0 KB
- 脚本scripts/src/repository-analysis.test.ts10.1 KB
- 脚本scripts/src/repository-analysis.ts21.0 KB
- 脚本scripts/src/score.ts111 B
- 脚本scripts/src/tokens/cli.integration.test.ts5.6 KB
- 脚本scripts/src/tokens/cli.test.ts1.8 KB
- 脚本scripts/src/tokens/cli.ts11.2 KB
- 脚本scripts/src/tokens/commands/check.ts4.5 KB
- 脚本scripts/src/tokens/commands/compare.test.ts6.8 KB
- 脚本scripts/src/tokens/commands/compare.ts12.0 KB
- 脚本scripts/src/tokens/commands/count.ts4.8 KB
- 脚本scripts/src/tokens/commands/index.ts209 B
- 脚本scripts/src/tokens/commands/score.test.ts24.4 KB
- 脚本scripts/src/tokens/commands/score.ts31.2 KB
- 脚本scripts/src/tokens/commands/suggest.ts7.9 KB
- 脚本scripts/src/tokens/commands/types.test.ts3.0 KB
- 脚本scripts/src/tokens/commands/types.ts5.3 KB
- 脚本scripts/src/tokens/commands/utils.test.ts3.0 KB
- 脚本scripts/src/tokens/commands/utils.ts5.8 KB
- 脚本scripts/src/tokens/commands/yaml.test.ts6.7 KB
- 脚本scripts/tsconfig.json392 B
- 脚本scripts/vitest.config.ts328 B
03 SKILL.md 正文
Sensei
Improve skills using the Ralph loop. For help, explain modes, defaults, and checks from configuration. For source bundles and installation, see distribution.
- Read the target
SKILL.md, references, tests, and repo-local instructions. Verify tooling exists before claiming it is missing. Count baseline tokens: From the Sensei checkout, pass the target repository root and a path relative to it:npm run tokens -- count --root <target-repo> <skill-path>/SKILL.md. - Score with
npm run tokens -- score --root <target-repo> <skill-path>. Select--profile=portableor--profile=copilotexplicitly when host extensions are present. Separate portable-spec diagnostics from Sensei recommendations. Preserve.sensei.jsonand AGENTS.md short-description policy. A 150-character floor, 60-word target, type prefix,WHEN:, and 500-token target are heuristics, not specification requirements. - Scaffold missing tests using templates. Use realistic positive prompts and close near-misses from intended scope; negative frontmatter syntax is not required.
- Improve concise positive routing and operational instructions using examples. Keep descriptions non-empty and within 1024 characters. Preserve meaningful boundaries; evaluate them on the target host. Check portability before introducing host fields.
- Verify with the target project's test runner;
--fastskips tests but must report them as not run. GEPA mode uses optional keyword/proxy fitness, not observed host activation; follow configuration. - Analyze resources with
npm run tokens -- analyze --root <target-repo> <skill-path>. Review contained links, symlinks, aggregate resource limits, script signals, and lifecycle evidence. Treat heuristic warnings as hypotheses, not failures. - Check budgets with
npm run tokens -- check --root <target-repo> <skill-path>/SKILL.md. Report configured token-limit warnings separately from optional optimization suggestions. For MCP-aware skills, follow MCP integration. - Summarize profile states, findings, unavailable evidence, changes,
diagnostics, tests, token deltas, and remaining suggestions.
score --emit-proofrecords static evidence, not runtime quality or a security audit. Ask whether to commit, create an issue, or skip; do not discard edits unasked. - Repeat until the intended gates and tests pass, at most five iterations. Process batches sequentially and report failures explicitly.