fpf:query

Search the FPF knowledge base and display hypothesis details with assurance information

23 stars

Best use case

fpf:query is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Search the FPF knowledge base and display hypothesis details with assurance information

Teams using fpf:query should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/query/SKILL.md --create-dirs "https://raw.githubusercontent.com/christophacham/agent-skills-library/main/skills/database/query/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/query/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How fpf:query Compares

Feature / Agentfpf:queryStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Search the FPF knowledge base and display hypothesis details with assurance information

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Query Knowledge

Search the FPF knowledge base and display hypothesis details with assurance information.

## Action (Run-Time)

1. **Search** `.fpf/knowledge/` and `.fpf/decisions/` by user query.
2. **For each found hypothesis**, display:
   - Basic info: title, layer (L0/L1/L2), kind, scope
   - If layer >= L1: read audit section for R_eff
   - If has dependencies: show dependency graph
   - Evidence summary if exists
3. **Present results** in table format.

## Search Locations

| Location | Contents |
|----------|----------|
| `.fpf/knowledge/L0/` | Proposed hypotheses |
| `.fpf/knowledge/L1/` | Verified hypotheses |
| `.fpf/knowledge/L2/` | Validated hypotheses |
| `.fpf/knowledge/invalid/` | Rejected hypotheses |
| `.fpf/decisions/` | Design Rationale Records |
| `.fpf/evidence/` | Evidence and audit files |

## Output Format

```markdown
## Search Results for "<query>"

### Hypotheses Found

| Hypothesis | Layer | Kind | R_eff |
|------------|-------|------|-------|
| redis-caching | L2 | system | 0.85 |
| cdn-edge | L2 | system | 0.72 |

### redis-caching (L2)

**Title**: Use Redis for Caching
**Kind**: system
**Scope**: High-load systems, Linux only

**R_eff**: 0.85
**Weakest Link**: internal test (0.85)

**Dependencies**:
```
[redis-caching R:0.85]
  └── (no dependencies)
```

**Evidence**:
- ev-benchmark-redis-caching-2025-01-15 (internal, PASS)

### cdn-edge (L2)

**Title**: Use CDN Edge Cache
**Kind**: system
**Scope**: Static content delivery

**R_eff**: 0.72
**Weakest Link**: external docs (CL1 penalty)

**Evidence**:
- ev-research-cdn-2025-01-10 (external, PASS)
```

## Search Methods

### By Keyword

Search file contents for matching text:

```
/fpf:query caching
-> Finds all hypotheses with "caching" in title or content
```

### By Specific ID

Look up a specific hypothesis:

```
/fpf:query redis-caching
-> Shows full details for redis-caching
-> Displays dependency tree
-> Shows R_eff breakdown
```

### By Layer

Filter by knowledge layer:

```
/fpf:query L2
-> Lists all L2 hypotheses with R_eff scores
```

### By Decision

Search decision records:

```
/fpf:query DRR
-> Lists all Design Rationale Records
-> Shows what each DRR selected/rejected
```

## R_eff Display

For L1+ hypotheses, read the audit section and display:

```markdown
**R_eff Breakdown**:
- Self Score: 1.00
- Weakest Link: ev-research-redis (0.90)
- Dependency Penalty: none
- **Final R_eff**: 0.85
```

## Dependency Tree Display

If hypothesis has `depends_on`, show the tree:

```
[api-gateway R:0.80]
  └──(CL:3)── [auth-module R:0.85]
  └──(CL:2)── [rate-limiter R:0.90]
```

Legend:
- `R:X.XX` = R_eff score
- `CL:N` = Congruence Level (1-3)

## Examples

**Search by keyword:**
```
User: /fpf:query caching

Results:
| Hypothesis | Layer | R_eff |
|------------|-------|-------|
| redis-caching | L2 | 0.85 |
| cdn-edge-cache | L2 | 0.72 |
| lru-cache | invalid | N/A |
```

**Query specific hypothesis:**
```
User: /fpf:query redis-caching

# redis-caching (L2)

Title: Use Redis for Caching
Kind: system
Scope: High-load systems
R_eff: 0.85
Evidence: 2 files
```

**Query decisions:**
```
User: /fpf:query DRR

# Design Rationale Records

| DRR | Date | Winner | Rejected |
|-----|------|--------|----------|
| DRR-2025-01-15-caching | 2025-01-15 | redis-caching | cdn-edge |
```

Related Skills

bigquery-pipeline-audit

23
from christophacham/agent-skills-library

Audits Python + BigQuery pipelines for cost safety, idempotency, and production readiness. Returns a structured report with exact patch locations.

googlebigquery-automation

23
from christophacham/agent-skills-library

Automate Google BigQuery tasks via Rube MCP (Composio): run SQL queries, explore datasets and metadata, execute MBQL queries via Metabase integration. Always search tools first for current schemas.

bitquery-automation

23
from christophacham/agent-skills-library

Automate Bitquery tasks via Rube MCP (Composio). Always search tools first for current schemas.

uniprot-database

23
from christophacham/agent-skills-library

Direct REST API access to UniProt. Protein searches, FASTA retrieval, ID mapping, Swiss-Prot/TrEMBL. For Python workflows with multiple databases, prefer bioservices (unified interface to 40+ services). Use this for direct HTTP/REST work or UniProt-specific control.

tsdown

23
from christophacham/agent-skills-library

Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.

treatment-plans

23
from christophacham/agent-skills-library

Generate concise (3-4 page), focused medical treatment plans in LaTeX/PDF format for all clinical specialties. Supports general medical treatment, rehabilitation therapy, mental health care, chronic disease management, perioperative care, and pain management. Includes SMART goal frameworks, evidence-based interventions with minimal text citations, regulatory compliance (HIPAA), and professional formatting. Prioritizes brevity and clinical actionability.

transloadit-media-processing

23
from christophacham/agent-skills-library

Process media files (video, audio, images, documents) using Transloadit. Use when asked to encode video to HLS/MP4, generate thumbnails, resize or watermark images, extract audio, concatenate clips, add subtitles, OCR documents, or run any media processing pipeline. Covers 86+ processing robots for file transformation at scale.

transformers

23
from christophacham/agent-skills-library

This skill should be used when working with pre-trained transformer models for natural language processing, computer vision, audio, or multimodal tasks. Use for text generation, classification, question answering, translation, summarization, image classification, object detection, speech recognition, and fine-tuning models on custom datasets.

tapform-automation

23
from christophacham/agent-skills-library

Automate Tapform tasks via Rube MCP (Composio). Always search tools first for current schemas.

supabase-automation

23
from christophacham/agent-skills-library

Automate Supabase database queries, table management, project administration, storage, edge functions, and SQL execution via Rube MCP (Composio). Always search tools first for current schemas.

string-database

23
from christophacham/agent-skills-library

Query STRING API for protein-protein interactions (59M proteins, 20B interactions). Network analysis, GO/KEGG enrichment, interaction discovery, 5000+ species, for systems biology.

stormglass-io-automation

23
from christophacham/agent-skills-library

Automate Stormglass IO tasks via Rube MCP (Composio). Always search tools first for current schemas.