xingwudao/open-xquant/audit-strategy-idea
Claude Code and agent skill by xingwudao/open-xquant
- community
Checking that the SKILL.md file is still in the repository.
Audit strategy_idea_brief.json and the brainstorm conversation before strategy_spec.yaml construction begins.
Install
npx vskill@latest install xingwudao/open-xquant/audit-strategy-ideaSKILL.md
Phase Path Containment Preflight
Before any phase artifact read, write, directory creation, command, or handoff, run this preflight completely and block on any failure:
- Read
.open-xquant/workspace.yaml. Resolveversion_rootfrom
paths.versions_dir, using versions only when that key is absent. Require version_root to be a safe workspace-relative path: reject an absolute path or any .. path segment, resolve it canonically with symlinks, and require the result to stay inside the workspace.
- Read
current.json. For normal phase work, setexpected_version_idto
current.json.active_version; it must exist. Only a contract that explicitly owns cross-version inspection may instead set expected_version_id from the referenced version id for that historical read. This exception never permits active-version work to consume another version.
- Set the intended version directory to
<version_root>/<expected_version_id>/ and resolve it canonically. Require the intended version directory to remain inside the canonical version root and workspace; otherwise treat it as a symlink escape. Read version_manifest.json only from that exact directory. The manifest version_id must equal expected_version_id; for normal phase work it therefore must also equal current.json.active_version.
- Before using each required
phase_pathsvalue, require a non-empty
workspace-relative string. Reject an absolute path and any .. path segment. Resolve <workspace>/<phase_path> canonically, including existing symlink ancestors even when the leaf will be created, and require the target to be the intended version directory or a descendant of it. A symlink escape outside that directory is invalid.
- On any identity or path failure, stop before phase artifact reads, writes,
directory creation, commands, or handoffs. Do not normalize an unsafe path into acceptance and do not fall back to a default phase path.
Block examples when expected_version_id is v001 include strategy_store/v001/../v002/04_spec_build, strategy_store/v002/04_spec_build, /tmp/04_spec_build, and strategy_store/v001/escape/04_spec_build when escape is a symlink whose target is outside the intended version directory. An allowed custom nested phase path is strategy_store/v001/custom/phases/04_spec_build when its canonical target remains under the intended version directory.
For a new-version bootstrap, only manage-strategy-version may proceed before the new manifest exists or the new id becomes active. It must apply the same workspace-relative, traversal, canonical-containment, and symlink checks to every constructed phase path before directory creation, then write a matching manifest before publishing current.json last.
Version Path Resolution
Before using any <phase_paths.*> or <version_root> placeholder, read .open-xquant/workspace.yaml. Resolve version_root from paths.versions_dir; use versions only when that key is absent. Require a safe relative path whose resolved target stays inside the workspace. Then read <version_root>/<version_id>/version_manifest.json and use its exact phase_paths entry for each phase. For example, a configured root of research_versions must resolve the spec-build phase to research_versions/v003/04_spec_build; never redirect it to a default-root phase path.
Strategy Idea Auditor
Use this skill after brainstorm-strategy-idea writes strategy_idea_brief.json and before build-strategy-spec is allowed to run.
This skill audits the brainstorm process. It does not judge whether the strategy will work, and it does not translate the idea into a SPEC.
Inputs
strategy_idea_brief.json- Agent-provided raw conversation history. Do not assume a filename or path.
The invoking Agent must supply the exact user/agent conversation text or Studio-provided object in a task-local variable such as:
``text CONVERSATION_HISTORY_RAW: <paste or load the exact brainstorm conversation text> ``
If CONVERSATION_HISTORY_RAW is missing, empty, summarized, or not exact, the audit must block. Do not use the SHA-256 of an empty string as a placeholder conversation hash unless the actual raw conversation is truly empty, which is not a valid strategy brainstorm. The hash must be computed from the exact raw conversation supplied by the coordinator.
Canonical hash rule: take the text after the CONVERSATION_HISTORY_RAW: marker, strip only leading and trailing whitespace from that body, then compute SHA-256 over the resulting UTF-8 text while preserving all interior content, line breaks, and order. Compare this canonical hash to strategy_idea_brief.json.conversation_hash.
Version-Governed Artifact Gate
Before reading or writing audit artifacts, read current.json and use active_version as version_id. The version-governed input brief is:
Write strategy_idea_audit.json only to:
The resolved output path is:
Do not write root-level strategy_idea_audit.json.
Scope
Do:
- audit the strategy brainstorm workflow
- verify that every confirmed value in
strategy_idea_brief.jsonhas user
evidence in the raw conversation
- verify that every phase was explained before the brainstormer asked for
values
- verify that defaults and candidates were explicitly confirmed by the user
- verify that
strategy_idea_brief.json.conversation_hashequals the SHA-256
hash computed from the supplied exact raw conversation
- write
strategy_idea_audit.json
Do not:
- Do not read, write, or edit
strategy_spec.yaml - Do not run
oxq - Do not export
component_catalog.json - Do not repair
strategy_idea_brief.json - Do not fill missing values on behalf of the user
- Do not call
build-strategy-spec
Strategy Idea Workflow Audit
Check that:
- every required brainstorm phase is present
- phases appear and complete in the required order
- the brainstormer explained the phase before asking for values
- the brainstormer redirected the user to the earliest incomplete phase when
the user skipped ahead
- default or candidate values were explicitly confirmed by the user
- every confirmed phase has user evidence from
CONVERSATION_HISTORY_RAW - no phase marks inferred, defaulted, or example values as confirmed
strategy_idea_brief.json.conversation_hashis present, non-placeholder,
not the hash of an empty string, and exactly equals the hash computed from the supplied exact raw conversation
Required phase names:
research intent and hypothesismarket, universe, and benchmarkdata and evaluation windowIndicator definitionsSignal rule definitionsPortfolio constructionexecution, costs, rebalance, and risk constraintsmetrics, robustness, and decision policy
Audit phase coverage against SPEC field groups:
- research phase:
strategy_id,name,research.* - market phase:
market.*,universe.*,benchmark.symbols - data phase:
data.*,validation.* - Indicator definitions phase:
signal.indicators.* - signal phase:
signal.signal_time,signal.rules.* - portfolio phase:
portfolio.type,portfolio.params - execution phase:
execution.*,cost.*,portfolio.rules.* - decision phase:
metrics.*,robustness.*,decision_policy.*
Missing, skipped, unconfirmed, or out-of-order brainstorm phases block the audit. A phase also blocks when the brainstormer did not explain its purpose before asking for values, when candidate defaults were not explicitly accepted, or when the brainstormer failed to redirect the user back into the workflow after a skip.
A missing, placeholder, empty-string, summarized-conversation, or mismatched conversation_hash also blocks the audit. The audit artifact must record the computed conversation hash and the found brief hash value in blocking_findings.
Indicator definitions require special attention. The audit must verify that the user described each Indicator as an Indicator, not only as a final signal, and that the brief maps those definitions to signal.indicators.*.
Default Confirmation Rule
Defaults and examples are never confirmed by existence. A value passes only when the user explicitly gave it, accepted a candidate, or confirmed a grouped candidate checklist.
If a value is useful but not confirmed, block the audit and ask the coordinator to return to brainstorm-strategy-idea. Do not make the confirmation yourself.
Output Artifact
Write strategy_idea_audit.json:
Set status: block, idea_workflow_pass: false, and next_required_phase: brainstorm when any workflow or confirmation check fails.
Set status: pass, idea_workflow_pass: true, and next_required_phase: build only when the entire brainstorm brief is complete, ordered, explained, and backed by user evidence.
Result
Return the audit status, strategy_idea_audit.json path, blocking findings, and the next required phase. If the audit blocks, ask for a return to brainstorm-strategy-idea, not to build-strategy-spec.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagent/skills/audit-strategy-idea/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xingwudao/open-xquant/audit-strategy-idea)