ワンクリックで
analyse
Minimal codex-native analysis loop. Use for issue/PR/problem analysis before implementation with measurable gates.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Minimal codex-native analysis loop. Use for issue/PR/problem analysis before implementation with measurable gates.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | analyse |
| description | Minimal codex-native analysis loop. Use for issue/PR/problem analysis before implementation with measurable gates. |
Run evidence-first analysis: truth, risk, next action before implementation, review, release, sync.
{
"question": "required analysis question",
"scope": "required files, diff, issue text, report path, PR number, or repo area",
"mode": "local|github|report|ecosystem",
"done_when": "findings are source-backed, ranked, and have explicit confidence"
}
Codex provides this selected SKILL.md path. Resolve PLUGIN_ROOT as the directory two levels above the containing
skill directory, then use only helpers under PLUGIN_ROOT/shared/ that are listed in package-manifest.json. Never
guess a cache version or fall back to a source checkout.
Run python PLUGIN_ROOT/shared/create_run.py --skill analyse once. Retain its single printed path as
<run-directory> and substitute that literal path into every later artifact path and helper argument. Never store or
reuse the path through a shell variable; shell variables do not persist across tool calls.
local: code, local diff/reports, pasted text.github: live issue/PR/discussion metadata.report: .reports/** or .reports/codex/** artifact.ecosystem: downstream/API/dependency impact; current external claims need live web/gh evidence.Unsupported/ambiguous mode => fail with usage note, unless pasted evidence supports local.
Use python PLUGIN_ROOT/shared/collect_diff.py --help; collect working-tree into <run-directory>/baseline. Scan references
separately; record failed diff collection.
<run-directory>/evidence.md with one row per claim:| Claim | Source | Freshness | Confidence | Notes |
| --- | --- | --- | --- | --- |
Evidence rules:
Use ../../shared/specialist-orchestration.md for broad/multi-risk PR/issue, ecosystem, or independently challenged conclusions. Stay single-agent when narrow local fan-out duplicates context.
Write <run-directory>/orchestration.md when fan-out is used or intentionally skipped for a broad scope. Include:
Routes: solution-architect architecture/API; qa-specialist testability; security-auditor risk; web-explorer current ecosystem; scientist method; curator config/workflow drift; challenger high-impact conclusions.
Required sections in <run-directory>/analysis.md:
QuestionScopeVerified FactsHypothesesRejected AlternativesFindingsRecommendationsGapsRun git diff --check as an argv command. Write its combined output to <run-directory>/review.txt and retain its
exit status as review evidence; do not erase a nonzero result.
pass: evidence-backed ranked findings, explicit gaps.fail: missing scope/blocking-claim evidence, stale external claim as fact, or no result artifact.Follow ../../shared/helper-cli-contract.md and helper --help. Analysis-only: mark lint/format/types/tests not applicable with reasons; review needs non-empty analysis.md, self-review.md, clean diff. Write ANALYSE_METADATA, validate analyse, promote only validated candidate.
Replace skip with command when analysis includes code changes/executable probes.
Before final output, answer in <run-directory>/self-review.md:
Critical conclusion without self-review cannot pass.
Required checks:
review: evidence ledger, self-review, git diff --check when diff exists.Optional checks:
lint, format, types, tests: only with code changes/executable probes.Update calibration when routing or evidence expectations change:
analyseUse shared gate schema from ../../shared/quality-gates.md.
Minimum artifact payload template: result-template.json.
Adapter over `codemap-py integrate` — audit, plan, source-wire, locally sync, and demonstrate the codemap-py integration with its supported consumers. Trigger with `/codemap-py:integration check|plan|apply|sync|demo [--runtime {claude,codex,both}] ...`. Default (no args) is `check`. Skip for: running a structural query (use `/codemap-py:query-code`); explicit standalone index rebuild (use `/codemap-py:scan-codebase`).
Scan the Python codebase and build a structural JSON index (import graph + blast-radius metrics). TRIGGER when: user asks to build, refresh, or rebuild the codemap index; user mentions stale index, missing symbols, or re-indexing after significant project changes; phrases: "build codemap", "scan codebase", "refresh structural index", "rebuild import graph".
Read local codemap telemetry logs and produce a diagnostic/usage report. Supports date filtering, session filtering, and optional anonymization before sharing. Trigger with `$codemap-py:debrief-coding [--since <YYYY-MM-DD>] [--session <id>] [--anonymize] [--output <path>]` to analyse recent codemap usage, debug query patterns, investigate errors, or prepare a shareable anonymized report of how codemap skills and the CLI are being used.
Adapter over `codemap-py integrate` — audit, plan, source-wire, locally sync, and demonstrate the codemap-py integration with its supported consumers. Trigger with `$codemap-py:integration check|plan|apply|sync|demo [--runtime {claude,codex,both}] ...`. Default (no args) is `check`. Skip for: running a structural query (use `$codemap-py:query-code`); explicit standalone index rebuild (use `$codemap-py:scan-codebase`).
Query the codemap structural index — module deps/rdeps/central/coupled/path, symbol-level source extraction, function call graph (fn-deps, fn-rdeps, fn-central, fn-blast), plus quality/coverage queries. Trigger with `$codemap-py:query-code <subcommand> ...` for: "what depends on", "who calls", "imports of", "dependency graph", "blast radius of", "list central modules". Skip for: rename intent (use `$codemap-py:rename-refs`); simple grep suffices; non-Python repo. Missing/stale index auto-builds — no manual scan-codebase needed.
Atomic rename of Python symbols or modules via the structural index — static callers, import sites, `__all__` re-exports, Sphinx cross-refs; optional deprecated alias (`--deprecate`) or hard-delete (`--remove-if-no-callers`). Trigger with `$codemap-py:rename-refs symbol <old> <new> [flags]` or `$codemap-py:rename-refs module <old_path> <new_path> [--dry-run]` for: "rename X to Y" (function/class/method/ module), "move module X to Y", "update all references to X". Skip for: non-Python; index not built (run `$codemap-py:scan-codebase` first); local-variable rename; grep-only rename wanted; 1:N symbol splits; package directory rename (use `git mv` directly).