用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oimiragieo/agent-studio --skill reflection-worker命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | reflection-worker |
| description | Fixes reflection system, evolution triggers, token reporting, and hook registration |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Features involving:
Read the feature description and CTO Directive #2 from AGENTS.md.
For score tracker work: Before ANY changes to reflection-score-tracker.cjs:
.claude/agents/core/reflection-agent.md to determine the ACTUAL scoring rubricWrite tests first (red):
Implement the fix (green):
if (score <= 1.0) normalizedScore = score * 10For hook registration: When registering hooks in settings.json:
For token reporting: When fixing post-pipeline-token-report.cjs:
For TokenAccountant persistence:
Run all reflection-related tests:
node --test tests/hooks/reflection-*.test.cjs
node --test tests/lib/reflection-score-tracker.test.cjs
Run broader suites for regression check:
pnpm test:framework
Commit with descriptive message.
{
"salientSummary": "Fixed reflection-score-tracker.cjs: added defensive normalization (scores <= 1.0 multiplied by 10), calibrated LOW_SCORE_THRESHOLD to 4.0 (matching Critical Fail < 0.4 rubric = 4.0 on 1-10 scale). Registered force-step0-execution.cjs and reflection-data-aggregator.cjs in settings.json. Fixed token report to use structural pipelineComplete detection. Added disk persistence to TokenAccountant with atomic writes.",
"whatWasImplemented": "Score normalization in reflection-score-tracker.cjs handles 0-1 and 1-10 scales. Two hooks registered. Token report uses metadata.pipelineComplete as primary signal. TokenAccountant persists to .claude/context/metrics/token-usage.json with write-to-temp+rename.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{
"command": "node --test tests/lib/reflection-score-tracker.test.cjs",
"exitCode": 0,
"observation": "All tests pass including both scale normalization"
},
{ "command": "pnpm test:framework", "exitCode": 0, "observation":
Agent frontmatter enhancements — disallowedTools, mcpServers scoping, fork_eligible field
Context management — pre-compact persistence, threshold alignment, microcompact/circuit breaker detection
Hook enhancements — updatedInput for bash safety prefixes, suppressOutput for verbose blocks, denial-based routing feedback