$npx -y skills add NeoLabHQ/context-engineering-kit --skill statusDisplay the current state of the FPF knowledge base
| 1 | # Status Check |
| 2 | |
| 3 | Display the current state of the FPF knowledge base. |
| 4 | |
| 5 | ## Action (Run-Time) |
| 6 | |
| 7 | 1. **Check Directory Structure:** Verify `.fpf/` exists and contains required subdirectories. |
| 8 | 2. **Count Hypotheses:** List files in each knowledge layer: |
| 9 | - `.fpf/knowledge/L0/` (Proposed) |
| 10 | - `.fpf/knowledge/L1/` (Verified) |
| 11 | - `.fpf/knowledge/L2/` (Validated) |
| 12 | - `.fpf/knowledge/invalid/` (Rejected) |
| 13 | 3. **Check Evidence Freshness:** Scan `.fpf/evidence/` for expired evidence. |
| 14 | 4. **Count Decisions:** List files in `.fpf/decisions/`. |
| 15 | 5. **Report to user.** |
| 16 | |
| 17 | ## Status Report Format |
| 18 | |
| 19 | ```markdown |
| 20 | ## FPF Status |
| 21 | |
| 22 | ### Directory Structure |
| 23 | - [x] .fpf/ exists |
| 24 | - [x] knowledge/L0/ exists |
| 25 | - [x] knowledge/L1/ exists |
| 26 | - [x] knowledge/L2/ exists |
| 27 | - [x] evidence/ exists |
| 28 | - [x] decisions/ exists |
| 29 | |
| 30 | ### Current Phase |
| 31 | Based on hypothesis distribution: ABDUCTION | DEDUCTION | INDUCTION | DECISION | IDLE |
| 32 | |
| 33 | ### Hypothesis Counts |
| 34 | |
| 35 | | Layer | Count | Status | |
| 36 | |-------|-------|--------| |
| 37 | | L0 (Proposed) | 3 | Awaiting verification | |
| 38 | | L1 (Verified) | 2 | Awaiting validation | |
| 39 | | L2 (Validated) | 1 | Ready for decision | |
| 40 | | Invalid | 1 | Rejected | |
| 41 | |
| 42 | ### Evidence Status |
| 43 | |
| 44 | | Total | Fresh | Stale | Expired | |
| 45 | |-------|-------|-------|---------| |
| 46 | | 5 | 3 | 1 | 1 | |
| 47 | |
| 48 | ### Warnings |
| 49 | |
| 50 | - 1 evidence file is EXPIRED: ev-benchmark-old-2024-06-15 |
| 51 | - Consider running `/fpf:decay` to review stale evidence |
| 52 | |
| 53 | ### Recent Decisions |
| 54 | |
| 55 | | DRR | Date | Winner | |
| 56 | |-----|------|--------| |
| 57 | | DRR-2025-01-15-use-redis | 2025-01-15 | redis-caching | |
| 58 | ``` |
| 59 | |
| 60 | ## Phase Detection Logic |
| 61 | |
| 62 | Determine current phase by examining the knowledge base state: |
| 63 | |
| 64 | | Condition | Phase | Next Step | |
| 65 | |-----------|-------|-----------| |
| 66 | | No `.fpf/` directory | NOT INITIALIZED | Run `/fpf:propose-hypotheses` | |
| 67 | | L0 > 0, L1 = 0, L2 = 0 | ABDUCTION | Continue with verification | |
| 68 | | L1 > 0, L2 = 0 | DEDUCTION | Continue with validation | |
| 69 | | L2 > 0, no recent DRR | INDUCTION | Continue with audit and decision | |
| 70 | | Recent DRR exists | DECISION COMPLETE | Review decision | |
| 71 | | All empty | IDLE | Run `/fpf:propose-hypotheses` | |
| 72 | |
| 73 | ## Evidence Freshness Check |
| 74 | |
| 75 | For each evidence file in `.fpf/evidence/`: |
| 76 | 1. Read the `valid_until` field from frontmatter |
| 77 | 2. Compare with current date |
| 78 | 3. Classify: |
| 79 | - **Fresh**: `valid_until` > today + 30 days |
| 80 | - **Stale**: `valid_until` > today but < today + 30 days |
| 81 | - **Expired**: `valid_until` < today |
| 82 | |
| 83 | If any evidence is stale or expired, warn the user and suggest `/fpf:decay`. |
| 84 | |
| 85 | ## Example Output |
| 86 | |
| 87 | ``` |
| 88 | ## FPF Status |
| 89 | |
| 90 | ### Current Phase: DEDUCTION |
| 91 | |
| 92 | You have 3 hypotheses in L0 awaiting verification. |
| 93 | Next step: Continue the FPF workflow to process L0 hypotheses. |
| 94 | |
| 95 | ### Hypothesis Counts |
| 96 | |
| 97 | | Layer | Count | |
| 98 | |-------|-------| |
| 99 | | L0 | 3 | |
| 100 | | L1 | 0 | |
| 101 | | L2 | 0 | |
| 102 | | Invalid | 0 | |
| 103 | |
| 104 | ### Evidence Status |
| 105 | |
| 106 | No evidence files yet (hypotheses not validated). |
| 107 | |
| 108 | ### No Warnings |
| 109 | |
| 110 | All systems nominal. |
| 111 | ``` |