fpf-methodology
First Principles Framework (FPF) for structured, auditable reasoning.
What this skill does
# First Principles Framework (FPF) Structured reasoning for AI coding tools — make better decisions, remember why you made them. ## When to Use This Skill **Activate FPF for:** - Architectural decisions with long-term consequences - Multiple viable approaches requiring systematic evaluation - Need auditable reasoning trail for team/future reference - Complex problems requiring hypothesis → verification cycle - Building up project knowledge base over time **Skip FPF for:** - Quick fixes, obvious solutions - Easily reversible decisions - Time-critical situations where overhead isn't justified ## Core Concept The core cycle follows three modes of inference: 1. **Abduction** — Generate competing hypotheses (don't anchor on the first idea) 2. **Deduction** — Verify logic and constraints (does the idea make sense?) 3. **Induction** — Gather evidence through tests or research (does the idea work in reality?) Then, audit for bias, decide, and document the rationale in a durable record. ## Assurance Levels Knowledge claims are tracked at different assurance levels: | Level | Name | Description | | ----------- | ----------- | ------------------------------------ | | **L0** | Observation | Unverified hypothesis or note | | **L1** | Reasoned | Passed logical consistency check | | **L2** | Verified | Empirically tested and confirmed | | **Invalid** | Disproved | Disproved claims (kept for learning) | ## Commands Use the following slash commands in order: | # | Command | Phase | What it does | | --- | ----------------- | ---------- | ---------------------------------------------- | | 0 | `/q0-init` | Setup | Initialize `.quint/` structure | | 1 | `/q1-hypothesize` | Abduction | Generate hypotheses → `L0/` | | 1b | `/q1-add` | Abduction | Inject user hypothesis → `L0/` | | 2 | `/q2-verify` | Deduction | Logical verification → `L1/` | | 3 | `/q3-validate` | Induction | Test (internal) or Research (external) → `L2/` | | 4 | `/q4-audit` | Bias-Audit | WLNK analysis, congruence check | | 5 | `/q5-decide` | Decision | Create DRR from winning hypothesis | | S | `/q-status` | — | Show current state and next steps | | Q | `/q-query` | — | Search knowledge base | | D | `/q-decay` | — | Check evidence freshness | ## Key Concepts ### WLNK (Weakest Link) Assurance = min(evidence), never average. A chain is only as strong as its weakest link. ### Congruence External evidence must match our context (high/medium/low). Evidence from a different context may not apply. ### Validity Evidence expires — check with `/q-decay`. Stale evidence creates epistemic debt. ### Scope Knowledge applies within specified conditions only. Document the boundaries. ## Workflow Example ``` User: How should we implement caching for our API? /q0-init # Initialize knowledge base /q1-hypothesize "API caching" # Generate hypotheses Hypotheses generated: - H1: Redis with TTL-based invalidation (Conservative) - H2: CDN edge caching (Novel) - H3: In-memory cache with pub/sub invalidation (Hybrid) /q2-verify H1 # Verify Redis approach logic /q3-validate H1 # Test Redis in development /q4-audit # Check for biases, weakest links /q5-decide H1 # Create Design Rationale Record ``` ## Design Rationale Record (DRR) The `/q5-decide` command generates a DRR with: - **Context**: The initial problem - **Decision**: The chosen hypothesis - **Rationale**: Why it won (citing evidence and R_eff) - **Consequences**: Trade-offs and next steps - **Validity**: When should this be revisited? ## State Location All FPF state is stored in `.quint/` directory (git-tracked): ``` .quint/ ├── context.md # Project context and constraints ├── knowledge/ │ ├── L0/ # Unverified hypotheses │ ├── L1/ # Logically verified claims │ ├── L2/ # Empirically verified claims │ └── invalid/ # Disproved claims └── decisions/ # Design Rationale Records ``` ## Transformer Mandate **Critical Principle:** You (Claude) generate options with evidence. Human decides. A system cannot transform itself — the human partner makes final architectural decisions. Generate high-quality options, present evidence, but don't autonomously choose major architectural directions. ## Integration with Code Review After FPF-driven implementation: 1. Generate hypotheses for approach 2. Verify and validate the chosen approach 3. Implement with the structured reasoning as documentation 4. Code review references the DRR for context 5. Future developers understand _why_ decisions were made ## Benefits - **Auditability**: Every decision has a documented trail - **Reduced Bias**: Multiple hypotheses prevent anchoring - **Knowledge Retention**: Project learnings persist - **Team Alignment**: Clear rationale for decisions - **Technical Debt Prevention**: Bad decisions caught early
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.