$npx -y skills add NeoLabHQ/context-engineering-kit --skill querySearch the FPF knowledge base and display hypothesis details with assurance information
| 1 | # Query Knowledge |
| 2 | |
| 3 | Search the FPF knowledge base and display hypothesis details with assurance information. |
| 4 | |
| 5 | ## Action (Run-Time) |
| 6 | |
| 7 | 1. **Search** `.fpf/knowledge/` and `.fpf/decisions/` by user query. |
| 8 | 2. **For each found hypothesis**, display: |
| 9 | - Basic info: title, layer (L0/L1/L2), kind, scope |
| 10 | - If layer >= L1: read audit section for R_eff |
| 11 | - If has dependencies: show dependency graph |
| 12 | - Evidence summary if exists |
| 13 | 3. **Present results** in table format. |
| 14 | |
| 15 | ## Search Locations |
| 16 | |
| 17 | | Location | Contents | |
| 18 | |----------|----------| |
| 19 | | `.fpf/knowledge/L0/` | Proposed hypotheses | |
| 20 | | `.fpf/knowledge/L1/` | Verified hypotheses | |
| 21 | | `.fpf/knowledge/L2/` | Validated hypotheses | |
| 22 | | `.fpf/knowledge/invalid/` | Rejected hypotheses | |
| 23 | | `.fpf/decisions/` | Design Rationale Records | |
| 24 | | `.fpf/evidence/` | Evidence and audit files | |
| 25 | |
| 26 | ## Output Format |
| 27 | |
| 28 | ```markdown |
| 29 | ## Search Results for "<query>" |
| 30 | |
| 31 | ### Hypotheses Found |
| 32 | |
| 33 | | Hypothesis | Layer | Kind | R_eff | |
| 34 | |------------|-------|------|-------| |
| 35 | | redis-caching | L2 | system | 0.85 | |
| 36 | | cdn-edge | L2 | system | 0.72 | |
| 37 | |
| 38 | ### redis-caching (L2) |
| 39 | |
| 40 | **Title**: Use Redis for Caching |
| 41 | **Kind**: system |
| 42 | **Scope**: High-load systems, Linux only |
| 43 | |
| 44 | **R_eff**: 0.85 |
| 45 | **Weakest Link**: internal test (0.85) |
| 46 | |
| 47 | **Dependencies**: |
| 48 | ``` |
| 49 | [redis-caching R:0.85] |
| 50 | └── (no dependencies) |
| 51 | ``` |
| 52 | |
| 53 | **Evidence**: |
| 54 | - ev-benchmark-redis-caching-2025-01-15 (internal, PASS) |
| 55 | |
| 56 | ### cdn-edge (L2) |
| 57 | |
| 58 | **Title**: Use CDN Edge Cache |
| 59 | **Kind**: system |
| 60 | **Scope**: Static content delivery |
| 61 | |
| 62 | **R_eff**: 0.72 |
| 63 | **Weakest Link**: external docs (CL1 penalty) |
| 64 | |
| 65 | **Evidence**: |
| 66 | - ev-research-cdn-2025-01-10 (external, PASS) |
| 67 | ``` |
| 68 | |
| 69 | ## Search Methods |
| 70 | |
| 71 | ### By Keyword |
| 72 | |
| 73 | Search file contents for matching text: |
| 74 | |
| 75 | ``` |
| 76 | /fpf:query caching |
| 77 | -> Finds all hypotheses with "caching" in title or content |
| 78 | ``` |
| 79 | |
| 80 | ### By Specific ID |
| 81 | |
| 82 | Look up a specific hypothesis: |
| 83 | |
| 84 | ``` |
| 85 | /fpf:query redis-caching |
| 86 | -> Shows full details for redis-caching |
| 87 | -> Displays dependency tree |
| 88 | -> Shows R_eff breakdown |
| 89 | ``` |
| 90 | |
| 91 | ### By Layer |
| 92 | |
| 93 | Filter by knowledge layer: |
| 94 | |
| 95 | ``` |
| 96 | /fpf:query L2 |
| 97 | -> Lists all L2 hypotheses with R_eff scores |
| 98 | ``` |
| 99 | |
| 100 | ### By Decision |
| 101 | |
| 102 | Search decision records: |
| 103 | |
| 104 | ``` |
| 105 | /fpf:query DRR |
| 106 | -> Lists all Design Rationale Records |
| 107 | -> Shows what each DRR selected/rejected |
| 108 | ``` |
| 109 | |
| 110 | ## R_eff Display |
| 111 | |
| 112 | For L1+ hypotheses, read the audit section and display: |
| 113 | |
| 114 | ```markdown |
| 115 | **R_eff Breakdown**: |
| 116 | - Self Score: 1.00 |
| 117 | - Weakest Link: ev-research-redis (0.90) |
| 118 | - Dependency Penalty: none |
| 119 | - **Final R_eff**: 0.85 |
| 120 | ``` |
| 121 | |
| 122 | ## Dependency Tree Display |
| 123 | |
| 124 | If hypothesis has `depends_on`, show the tree: |
| 125 | |
| 126 | ``` |
| 127 | [api-gateway R:0.80] |
| 128 | └──(CL:3)── [auth-module R:0.85] |
| 129 | └──(CL:2)── [rate-limiter R:0.90] |
| 130 | ``` |
| 131 | |
| 132 | Legend: |
| 133 | - `R:X.XX` = R_eff score |
| 134 | - `CL:N` = Congruence Level (1-3) |
| 135 | |
| 136 | ## Examples |
| 137 | |
| 138 | **Search by keyword:** |
| 139 | ``` |
| 140 | User: /fpf:query caching |
| 141 | |
| 142 | Results: |
| 143 | | Hypothesis | Layer | R_eff | |
| 144 | |------------|-------|-------| |
| 145 | | redis-caching | L2 | 0.85 | |
| 146 | | cdn-edge-cache | L2 | 0.72 | |
| 147 | | lru-cache | invalid | N/A | |
| 148 | ``` |
| 149 | |
| 150 | **Query specific hypothesis:** |
| 151 | ``` |
| 152 | User: /fpf:query redis-caching |
| 153 | |
| 154 | # redis-caching (L2) |
| 155 | |
| 156 | Title: Use Redis for Caching |
| 157 | Kind: system |
| 158 | Scope: High-load systems |
| 159 | R_eff: 0.85 |
| 160 | Evidence: 2 files |
| 161 | ``` |
| 162 | |
| 163 | **Query decisions:** |
| 164 | ``` |
| 165 | User: /fpf:query DRR |
| 166 | |
| 167 | # Design Rationale Records |
| 168 | |
| 169 | | DRR | Date | Winner | Rejected | |
| 170 | |-----|------|--------|----------| |
| 171 | | DRR-2025-01-15-caching | 2025-01-15 | redis-caching | cdn-edge | |
| 172 | ``` |