float-context
Query float.db for full context on a file or folder. Use when user mentions a path, asks about folder context, says "what do we know about X?", or BEFORE modifying any unfamiliar code. Proactive use prevents mistakes.
What this skill does
# Float Context Lookup
Query everything float.db knows about a given path. **Use this proactively, not just when asked.**
---
## When to Invoke This Skill
### Reactive (user asks)
- User mentions a file/folder path
- User asks "what do we know about /src/auth?"
- User says "what's the context for X?"
### Proactive (you decide)
**Invoke this BEFORE modifying code you haven't worked on recently:**
- About to edit files in an unfamiliar directory
- Making changes that could affect other parts of the system
- Unsure about existing patterns or conventions in an area
- Working on code another session touched
**Why proactive matters:** Previous sessions may have made decisions you shouldn't contradict. Context may be stale (files changed). There may be open questions you can resolve.
---
## What to Query
All queries use the project's `.float/float.db` directly:
### 1. Folder Context
```bash
sqlite3 .float/float.db "SELECT path, description, context, status, ai_updated FROM folders WHERE path = '/given/path'"
```
### 2. Locked Decisions
```bash
sqlite3 .float/float.db "SELECT date, title, decision, rationale FROM log_entries WHERE folder_path LIKE '/given/path%' AND status = 'locked' ORDER BY created_at DESC LIMIT 5"
```
### 3. Open Questions
```bash
sqlite3 .float/float.db "SELECT question, context FROM open_questions WHERE folder_path = '/given/path' AND resolved_at IS NULL"
```
### 4. Scope Chain
```bash
sqlite3 .float/float.db "WITH RECURSIVE chain AS (SELECT * FROM folders WHERE path = '/given/path' UNION ALL SELECT f.* FROM folders f JOIN chain c ON f.path = c.parent_path) SELECT path, description, status FROM chain"
```
---
## Interpreting Status
| Status | Meaning | What to Do |
|--------|---------|------------|
| `current` | Context is fresh and trustworthy | Rely on it confidently |
| `stale` | Files changed since last enrichment | **Verify before relying** — read actual files to confirm context still applies |
| `pending` | No AI context exists yet | You're the first — **write good context** for future sessions |
### Stale Context Warning
If status is `stale`, tell the user:
> "This folder's context is stale — files have changed since it was last analyzed. I'll verify the current state before making changes."
Then read the actual files to confirm or update your understanding.
### Pending Context Opportunity
If status is `pending`, you have a responsibility:
> "This folder has no context yet. As I work here, I'll capture what I learn so future sessions start with understanding."
---
## What to Surface
**Always tell the user what you found.** Don't silently query and move on.
### Warnings (surface immediately)
- **Stale context** — "Context for /src/auth is stale. Verifying current state."
- **Locked decisions** — "There's a locked decision about token handling here. I'll work within that constraint."
- **Open questions** — "Session 44 left an open question: 'Should we support OAuth?' Want to resolve it now?"
- **Scope conflicts** — If parent scope has constraints that affect this work
### Presentation Format
> **Context for `/src/auth`**
>
> **Description:** Authentication middleware and JWT handling
>
> **Status:** STALE — files changed since last enrichment
>
> **Locked Decisions:**
> - Session 42: "Use refresh tokens over session cookies"
> - Session 38: "Middleware runs before route handlers"
>
> **Open Questions:**
> - "Should we support OAuth providers?" (Session 44)
>
> **Scope Chain:** `/src/auth` ← `/src` ← `/`
---
## After Working in This Area
Once you've done significant work in a folder — especially if you learned something not in the database — remind the user:
> "I've learned more about this area than what's stored. Run `/float-capture` to preserve this understanding for future sessions."
**Significant work includes:**
- Understanding patterns not documented
- Making architectural decisions
- Resolving open questions
- Discovering how things actually work vs. how they were described
---
## Permissions
First-time queries may trigger permission prompts. If `/float` boot already ran, permissions should be set. If not, offer:
> "I can auto-approve FloatPrompt operations for future sessions. Want me to update your permissions?"
**If yes:**
1. Read `.claude/settings.json` (create if missing)
2. Add these patterns to `permissions.allow`:
- `"Bash(git:*)"` — for repo operations
- `"Bash(sqlite3:*)"` — for database queries
- `"Bash(${CLAUDE_PLUGIN_ROOT}/lib/boot.sh:*)"` — resolved to actual path
- `"Bash(${CLAUDE_PLUGIN_ROOT}/lib/scan.sh:*)"` — resolved to actual path
- `"Bash(${CLAUDE_PLUGIN_ROOT}/hooks/float-capture.sh:*)"` — resolved to actual path
3. Confirm: "Done — future FloatPrompt operations won't prompt."
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.