基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/xoai/sage --skill sage-autoresearch命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | sage-autoresearch |
| description | Optimized codebase on dedicated branch, Iteration log |
| version | 1.0.0 |
| author | Sage |
| metadata | {"hermes":{"tags":["Sage","Workflow","autoresearch"]}} |
Load this skill when the user runs /sage-autoresearch or asks to autoresearch something (the Sage autoresearch workflow).
Hermes does NOT interpolate an in-body argument token. The user's arguments/flags arrive as a SEPARATE instruction line appended to this skill invocation. Wherever the steps below refer to "the user's arguments", use the text of that appended instruction line.
When a step calls for an independent review, invoke delegate_task against the sage-reviewer skill. Hermes delegate_task has NO toolset-restriction parameter — read-only is prompt-enforced, and you MUST verify afterward that the reviewer made no edits (e.g. git status unchanged) before accepting its verdict.
RULES (apply to every step — non-negotiable):
Autonomous iteration toward a measurable outcome. Read the full skill
at skills/autoresearch/SKILL.md before proceeding.
Scan .sage/work/ for directories containing autoresearch.jsonl.
If found, this is a resume — skip to Step 3.
If the user provided inline flags or a complete description, extract the fields. Otherwise, elicit:
Search sage-memory for priors on this repo + metric domain:
Save to .sage/work/YYYYMMDD-<slug>/brief.md using the frontmatter
format from skills/autoresearch/SKILL.md.
🔒 CHECKPOINT:
Sage: Autoresearch session configured.
Goal: [goal] Metric: [name] ([direction]), target: [target or "none"] Verify: [command] Scope: writable [globs], frozen [globs] Budget: [seconds]s per run, [max iterations or "unlimited"]
[A] Start — begin autonomous iteration [R] Revise — change configuration
Pick A/R, or tell me what to change.
Read skills/autoresearch/SKILL.md for the 8-phase loop protocol.
Read skills/autoresearch/references/loop-protocol.md for per-phase
detail.
Before each IDEATE: If sage-memory priors were found in Step 1,
use them. If stuck (5+ consecutive discard/crash), read
skills/autoresearch/references/stuck-recovery.md.
Agent phases (REVIEW, IDEATE, MODIFY):
Runtime phases (COMMIT, VERIFY, DECIDE, LOG, REPEAT):
The autoresearch runtime is an optional package (extracted from core in Phase 3, like sage-memory). Probe for it first, and degrade LOUDLY if absent (never silently fall through):
if python3 -c 'import autoresearch' 2>/dev/null; then
python3 -m autoresearch run --brief .sage/work/<slug>/brief.md --project .
else
echo "Sage: autoresearch runtime not installed — the optimization loop will"
echo "run in degraded (manual) mode. Install it for the deterministic runtime:"
echo " sage add xoai/sage-autoresearch"
# …and log one line to the initiative's decisions.md (R29 loud degradation).
fi
When the package is absent, handle the phases inline (below) and announce the degradation so the user knows the deterministic runtime isn't active.
Or handle phases inline:
git add -A && git commit -m "autoresearch #N: <desc>"After each iteration: Update autoresearch.md living doc with
what was tried and the result.
When the loop exits (target hit, budget exhausted, or interrupted):
Sage: Autoresearch complete.
Iterations: [N total], [K kept] Best: [metric_name]=[value] (started at [baseline]) Branch: autoresearch/[slug]
Top improvements:
[M] Merge — review and merge the branch [C] Continue — resume iterating [R] Results — show full results.tsv
Store to sage-memory (if available):
Prepend to decisions.md:
### YYYY-MM-DD — Autoresearch: [goal]
Result: [best value] from [baseline], [N] iterations, [K] kept.
Branch: autoresearch/[slug]. Top change: [best iteration description].
autoresearch/<slug> branch. The loop never commits to the default branch.[M] choice merges the branch. The
loop never merges, pushes, or opens a PR on its own.skills/autoresearch/references/stuck-recovery.md before the next IDEATE.the arguments the user provided alongside this skill invocation (delivered as a separate instruction line, NOT a literal token)
When --quality-locked is active, loop review/revise at each Quality Gate until findings reach a clean bar (no Critical, no Major, only cosmetic Minor) or the iteration cap (10) is reached. Uses a deterministic Python checker for classification and decision logic; agent runs the actual review and revision steps.
Use after implementation passes the quality gates, when a change needs an independent pass over the code before it ships, or when the user asks to "QA this", "check the implementation", or "verify it matches the spec". Applies to Standard and Comprehensive scopes with the Task tool available; Lightweight tasks skip.
Configure Sage preset and project settings. Switch between base, startup, enterprise, or opensource constitution presets. Use when the user says "configure sage", "change preset", or "sage settings".