skills/benderfendor/storage-debug-instrumentation/SKILL.md
Add comprehensive debugging and observability tooling for backend storage layers (PostgreSQL, ChromaDB) and startup metrics. Includes storage drift detection, raw data inspection endpoints, and a Next.js admin dashboard.
npx skillsauth add aiskillstore/marketplace storage-debug-instrumentationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Enable rapid diagnosis of storage state, synchronization health, and backend performance bottlenecks by exposing:
app/services/startup_metrics.py, app/main.py, app/vector_store.py, app/database.py, app/api/routes/debug.pyfrontend/lib/api.ts, frontend/app/debug/page.tsxFile: backend/app/services/startup_metrics.py
StartupMetrics class to record phase timingsrecord_event(name, started_at, detail, metadata) for phase captureadd_note(key, value) for arbitrary annotationsstartup_metrics for app-wide useFile: backend/app/vector_store.py
startup_metricsVectorStore.__init__(), wrap initialization with time.time() timerhost, port, collection, documentsFile: backend/app/main.py
startup_metrics.mark_app_started() at beginning of on_startup()record_event()cache_size, article_count, oldest_article_hoursstartup_metrics.mark_app_completed() at endadd_note()File: backend/app/database.py
fetch_articles_page() to support:
fetch_article_chroma_mappings() to return all article→chroma ID mappings for drift analysisFile: backend/app/vector_store.py
list_articles(limit, offset) to return paginated Chroma documents with metadata and previewslist_all_ids() to return all stored Chroma IDs for drift detection (used by /debug/storage/drift)File: backend/app/api/routes/debug.py
GET /debug/startup → returns startup metrics timeline (events + notes)GET /debug/chromadb/articles → returns paginated raw Chroma entries with limit/offsetGET /debug/database/articles → returns paginated Postgres rows with filters (source, embeddings, date range, sort)GET /debug/storage/drift → compares Chroma IDs vs Postgres mappings, returns missing/dangling counts + samplesFile: frontend/lib/api.ts
StartupEventMetric, StartupMetricsResponse, ChromaDebugResponse, DatabaseDebugResponse, StorageDriftReportfetchStartupMetrics(), fetchChromaDebugArticles(), fetchDatabaseDebugArticles(), fetchStorageDrift()File: frontend/app/debug/page.tsx
/debug route with multi-tab inspection UIbackend/app/services/startup_metrics.pybackend/app/vector_store.py::VectorStore.__init__()backend/app/main.py::on_startup() (all phases)fetch_articles_page() and fetch_article_chroma_mappings() to backend/app/database.pylist_articles() and list_all_ids() to backend/app/vector_store.py/debug/startup, /debug/chromadb/articles, /debug/database/articles, /debug/storage/drift to backend/app/api/routes/debug.pyfrontend/lib/api.tsfrontend/app/debug/page.tsx with dashboard layoutuvx ruff check backend → all checks passGET http://localhost:8000/debug/startup returns valid timeline with events and notesGET http://localhost:8000/debug/chromadb/articles?limit=50&offset=0 returns paginated Chroma docsGET http://localhost:8000/debug/database/articles?source=bbc&missing_embeddings_only=false filters correctlyGET http://localhost:8000/debug/storage/drift compares counts and returns drift sampleshttp://localhost:3000/debug loads without errors and displays all four sectionsdevelopment
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.