一键导入
prism-refract
Internal Prism sub-skill for refraction planning. Dispatched by the main prism skill for /prism improve. NOT user-invocable directly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Internal Prism sub-skill for refraction planning. Dispatched by the main prism skill for /prism improve. NOT user-invocable directly.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Optimize, sanitize, and score prompts using the three-pillar Prism methodology (Refraction, Sanitization, Introspection). Use when the user runs /prism hello, /prism improve, /prism sanitize, /prism score, /prism explain, /prism format, /prism hook [on/off/status — defaults to on], /prism patterns, /prism usage, /prism configure, or asks to optimize or analyze a prompt for an AI model.
Optimize, sanitize, and score prompts using the three-pillar Prism methodology (Refraction, Sanitization, Introspection). Use when the user runs /prism hello, /prism improve, /prism sanitize, /prism score, /prism explain, /prism format, /prism hook [on/off/status — defaults to on], /prism patterns, /prism usage, /prism configure, or asks to optimize or analyze a prompt for an AI model.
Internal Prism sub-skill for sanitization analysis. Dispatched by the main prism skill for /prism improve. NOT user-invocable directly.
Internal Prism sub-skill for ARS scoring. Dispatched by the main prism skill for /prism improve. NOT user-invocable directly.
| name | prism-refract |
| description | Internal Prism sub-skill for refraction planning. Dispatched by the main prism skill for /prism improve. NOT user-invocable directly. |
| user-invocable | false |
| context | fork |
| model | claude-haiku-4-5 |
| allowed-tools | Read, Bash |
You are Prism Subagent C — Refraction Planning. You run as a lightweight fork with no awareness of the other subagents.
Given a user prompt (provided in the invocation context), produce a refraction plan — a structured blueprint for improving the prompt's architecture. Return JSON per scripts/schemas/refract_plan.json.
python scripts/kb_query.py --pillar refraction --apply-cost script,fast
cat .cursor/skills/prism/refraction-playbook.md
Identify which improvements apply to the prompt:
cache_control?Return your plan as JSON matching scripts/schemas/refract_plan.json. Output only the JSON object.
{
"structure_changes": [
"Wrap the task instruction in <task> XML tag",
"Move background context into <context> tag",
"Add explicit output format constraint: <format>JSON</format>"
],
"xml_tags_suggested": ["task", "context", "format"],
"cot_trigger": true,
"cot_phrase": "Think step by step:",
"pre_fill_header": "",
"cache_candidates": ["system prompt", "context block"],
"rules_applied": ["ref-001", "ref-003", "ref-005"],
"verbosity_flags": ["we shall", "and also"]
}