一键导入
poe-code-experiment-plan
Create an experiment plan for the poe-code experiment loop. Triggers on: create experiment, experiment plan, karpathy loop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create an experiment plan for the poe-code experiment loop. Triggers on: create experiment, experiment plan, karpathy loop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Generate a Pipeline plan markdown file with YAML frontmatter from a user request. Triggers on: create a pipeline plan, write plan for, plan this feature, pipeline plan.
Create a superintendent markdown document for the autonomous build-inspect-review loop. Triggers on: create superintendent, superintendent plan, superintendent doc, autonomous loop.
Terminal automation skill using poe-code terminal-pilot MCP
基于 SOC 职业分类
| name | poe-code-experiment-plan |
| description | Create an experiment plan for the poe-code experiment loop. Triggers on: create experiment, experiment plan, karpathy loop. |
Ask the user what they want to optimize, fix, or measure.
Create an experiment doc in the shared plan directory and metric script(s) for the autonomous experiment loop.
<plan-directory>/<name>.md with YAML frontmatter (see Plan Directory section below).metric:* npm scripts in package.json.---
$schema: https://poe-platform.github.io/poe-code/schemas/plans/experiment.schema.json
kind: experiment
version: 1
agent: claude-code
metric:
name: <metric_name>
script: <full command to run in cwd>
direction: minimize | maximize | stable
delta: <optional, acceptable variance from baseline>
baseline: null
# Optional:
# max_experiments: 10
# metric_timeout: 120
---
Use snake_case for frontmatter fields. Do not write runtime state like status into the document frontmatter; the journal sidecar is authoritative.
To pin a specific model, use the agent specifier notation agent:provider/model:
agent: claude-code:<model-id>
For multiple metrics, all metrics must pass and scores are tracked independently:
metric:
- name: tests
script: node scripts/metric-tests.mjs
direction: maximize
- name: test_duration
script: node scripts/metric-test-duration.mjs
direction: minimize
Every metric must have an explicit script field: the full command to run in cwd.
The script must:
Pass/fail test gate:
metric:
name: tests
script: node scripts/metric-tests.mjs
direction: maximize
// scripts/metric-tests.mjs
import { execSync } from "node:child_process";
try {
execSync("npm test", { stdio: "pipe" });
console.log(1);
} catch {
console.log(0);
}
Benchmark measurement:
metric:
name: test_duration
script: node scripts/metric-test-duration.mjs
direction: minimize
// scripts/metric-test-duration.mjs
const result = await measure();
console.log(result);
Agent-as-judge:
metric:
name: readme_ux
script: node scripts/metric-readme-ux.mjs
direction: maximize
// scripts/metric-readme-ux.mjs
import { readFileSync } from "node:fs";
import { spawn } from "poe-code";
const readme = readFileSync("README.md", "utf8");
const { result } = spawn("claude-code", `Rate this README 1-100.\n\n${readme}`);
const { stdout } = await result;
console.log(stdout.trim());
docs/plans.direction: maximize when higher scores are better, direction: minimize when lower is better, direction: stable when the value must not change.delta to allow variance. Without delta, comparisons are strict (must improve or stay equal). With delta: 5, a regression up to 5 is tolerated for minimize/maximize, and stable accepts ±5 drift.baseline field starts as null; the loop measures it automatically before the first experiment.max_experiments to the frontmatter unless the user explicitly requests a limit. The loop defaults to unlimited.metric_timeout if the user wants to override the default metric timeout.status in frontmatter. Runtime progress belongs in the journal file, not the plan doc.poe-code experiment validate <path> to check the experiment doc is valid.script command from the frontmatter) and record the scores.Created:
<plan-directory>/<name>.md
scripts/metric-<name>.mjs (if needed)
Verification (3 runs):
metric:<name> -> 42, 43, 42 (variance: 0.3) stable
Run with:
poe-code experiment run <plan-directory>/<name>.md