بنقرة واحدة
triage
Aggressively scan all task sources and produce a ranked "do this next" action list
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Aggressively scan all task sources and produce a ranked "do this next" action list
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Scan all ecosystem repos for convention deviations. Reports findings; does not fix anything. Use proactively after cross-repo changes.
Validates pipeline parquet outputs for schema compliance, null rates, row count baselines, and freshness. Use after pipeline runs or when triage shows data quality concerns. Fast and read-only (uses haiku).
Run tests across all ecosystem repos and report pass/fail summary. Use when the user wants to verify the ecosystem is healthy or after cross-repo changes.
Runs the krff-shell ETL pipeline with pre/post validation. Use when data needs refreshing, after dependency updates, or when triage shows stale parquets. Reads CLAUDE.md before running.
Research across sibling repos to gather context for cross-project tasks. Use when working in one repo and needing to understand how another repo works, what it exports, or how data flows between them.
Show all open work (board + backlog) with dependency-aware execution order
| name | triage |
| description | Aggressively scan all task sources and produce a ranked "do this next" action list |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Grep, Glob |
Scan the entire ecosystem for actionable work and produce a prioritized task list. Runs triage-scan.sh to collect signals, then applies LLM judgment to rank heterogeneous findings.
Arguments: $ARGUMENTS
quick → fast scan (sources 1-3 only: board, git hygiene, backlog)Run the scanner:
bash "C:/Users/pon00/Projects/forensic-accounting-toolkit/triage-scan.sh" $ARGUMENTS
If $ARGUMENTS is empty, run without arguments (full mode).
Check for previous triage snapshot (for delta reporting):
Read C:\Users\pon00\Projects\forensic-accounting-toolkit\triage-last.json if it exists.
If it exists, note the timestamp and previous top findings for comparison.
Parse each section of the scanner output and classify findings.
Validate board freshness. The board is a claim about what needs doing. The filesystem is evidence of what's been done. Claims go stale. Evidence doesn't. For each board Todo/In Progress item:
~ lines in GIT HYGIENE). If commits show the described work was already completed, the board item is stale.reports/ directories with run logs, prep files, or lesson files that indicate iterations beyond what the board title describes.[STALE BOARD] in your output. Do NOT recommend them as next tasks.Gap synthesis. Go beyond reporting status — discover new work. Using the IMPLEMENTATION COMPLETENESS and STRATEGY ALIGNMENT scanner sections:
a. Separate blocked from actionable. Stubs tagged [BLOCKED] go to "Blocked (informational)" — never recommend these. [OPEN] stubs are candidates.
b. Cross-reference against board and backlog. If a gap is already tracked, don't surface it again. Only surface gaps that are NOT already tracked anywhere.
c. Assess strategic importance. Not every gap is worth filling now:
d. Generate task descriptions. For the top gaps (max 3), write a one-line task suitable for the board: repo, what's missing, why it matters.
e. Cross-reference Source 13 (Known Gaps). For each Unblocked Known Gap:
f. Output in "Gaps discovered" section. If none: "No new gaps found."
Rank findings using this priority matrix:
| Category | Priority | Rationale |
|---|---|---|
| Test failure detected | P0 | Broken code blocks everything |
| Uncommitted changes | P0 | Risk of lost work |
| Unpushed commits | P1 | Work done but not backed up |
| Board P0 tasks (AI-owned, unblocked) | P1 | Explicitly prioritized |
| Data sync staleness (STALE parquets) | P1 | Downstream results are wrong |
| Cross-issue newly resolved | P2 | Unblocks downstream work |
| Board P1 tasks (AI-owned, unblocked) | P2 | High priority |
| Backlog P1 not on board | P2 | Needs board promotion |
| Open stub in active code | P2 | Completeness of working system |
| Strategy-mentioned but untracked | P3 | Future alignment |
| Known Gap — Unblocked (bug/risk) | P2 | Documented gap with severity signal |
| Known Gap — Unblocked (other) | P3 | Documented gap, no severity signal |
| Convention drift (DRIFT) | P3 | Important but not urgent |
| Code signals (TODO/FIXME) | P3 | Technical debt |
| CHANGELOG staleness | P3 | Documentation hygiene |
| Stale branches (>3) | P3 | Repo cleanup |
Output the ranked action list (cap at 8 items). Use this format:
=== TRIAGE ===
Immediate (do before anything else):
1. [UNCOMMITTED] kr-derivatives — 2 files modified
2. [DATA STALE] kr-derivatives — price_volume.parquet older than source
-> Run: bash ecosystem.sh copy-parquets
Next task:
3. [BOARD P1] kr-derivatives Run 4 — 32 remaining outliers
-> /work kr-derivatives
Backlog surfaced:
4. [BACKLOG P1] kr-beneish PyPI publication — not on board
Gaps discovered:
5. [OPEN STUB] kr-derivatives — repricing engine has NotImplementedError
Why: core functionality, blocked only by SEIBRO data
6. [INTEGRATION] kr-enforcement-cases — enforcement labels not yet consumed by krff-shell
Why: violations.csv exists but label pipeline not wired
Blocked (informational):
- kr-derivatives — SVI fitting: requires KRX options data (Phase 2)
Clean: 6/8 repos clean | Board: 3 AI todo | Last CHANGELOG: today
Recommended: /work kr-derivatives
Grouping rules:
If previous triage exists, add a delta section:
Delta (since last triage YYYY-MM-DD HH:MM):
[RESOLVED] kr-beneish — was UNCOMMITTED, now clean
[NEW] kr-derivatives — STALE parquets detected
Write triage snapshot to C:\Users\pon00\Projects\forensic-accounting-toolkit\triage-last.json:
{
"timestamp": "2026-03-15T14:30:00",
"mode": "full",
"findings": {
"uncommitted": ["repo1"],
"unpushed": ["repo2"],
"stale_data": ["price_volume.parquet"],
"board_todo": 3,
"backlog_open": 5,
"code_signals": 12,
"convention_drift": [],
"cross_issues_active": ["XB-002"],
"open_stubs": 3,
"blocked_stubs": 1,
"strategy_untracked": 9
},
"known_gaps_unblocked": 0,
"top_task": "kr-derivatives Run 4",
"recommended_command": "/work kr-derivatives"
}
bash ecosystem.sh status as fallback.Recommended: line — the one command to run next.