agentleFS
timothywarner-orgtimothywarner-org/context-engineering/.claude/skills/warnerco-schematica/SKILL.md

warnerco-schematica

Skill27 starsChanged 5 months agoMITView on GitHub

Develop and extend the WARNERCO Robotics Schematica system - an agentic RAG application with FastAPI, FastMCP, LangGraph orchestration, and 3-tier memory (JSON/Chroma/Azure AI Search). Use when working on the schematica backend, adding schematics, modifying the LangGraph flow, updating dashboards, or deploying to Azure.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    inject_scratchpad: - Add session working memory (CoALA working tier)

    line 103
  2. Distinctive:

    log_episode: - Write the interaction back to episodic memory (always)

    line 109

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

WARNERCO Robotics Schematica

Agentic robot schematics system with semantic memory and retrieval-augmented generation.

Architecture

┌─────────────────────────────────────────────────────────────┐
│                     FastAPI + FastMCP                       │
├─────────────────────────────────────────────────────────────┤
│  LangGraph Flow (9-node Hybrid RAG)                         │
│  parse_intent -> query_graph -> inject_scratchpad -> retrieve│
│  -> compress -> reason -> respond                            │
├─────────────────────────────────────────────────────────────┤
│  Hybrid Memory Layer                                        │
│  +-------------------+  +-------------------+  +-----------+│
│  | Vector Store      |  | Graph Store       |  | Scratchpad|│
│  | JSON->Chroma->    |  | SQLite + NetworkX |  | In-memory |│
│  | Azure AI Search   |  | (Knowledge Graph) |  | (Session) |│
│  +-------------------+  +-------------------+  +-----------+│
└─────────────────────────────────────────────────────────────┘

Project Structure

src/warnerco/backend/
├── app/
│   ├── main.py           # FastAPI application
│   ├── config.py         # Settings and environment
│   ├── models.py         # Pydantic schemas
│   ├── routes.py         # API endpoints
│   ├── mcp_tools.py      # FastMCP tool definitions
│   ├── adapters/         # Memory backend implementations
│   │   ├── json_store.py
│   │   ├── chroma_store.py
│   │   ├── azure_search_store.py
│   │   ├── graph_store.py
│   │   └── scratchpad_store.py
│   └── langgraph/
│       └── flow.py       # 9-node hybrid RAG orchestration
├── data/
│   ├── schematics/       # JSON source of truth
│   └── chroma/           # Vector embeddings
├── static/dash/          # SPA dashboards
└── .env                  # Configuration

Commands

cd src/warnerco/backend

# Local development
uv sync
uv run uvicorn app.main:app --reload --port 8000

# Index schematics into Chroma
uv run python -c "from app.adapters.chroma_store import ChromaMemoryStore; import asyncio; asyncio.run(ChromaMemoryStore().index_all())"

# MCP stdio server (for Claude Desktop)
uv run warnerco-mcp

Memory Backend Selection

Set MEMORY_BACKEND in .env:

BackendUse CaseConfig
jsonFastest startup, keyword searchDefault
chromaLocal semantic searchRecommended for dev
azure_searchEnterprise deploymentRequires Azure resources

MCP Tools

ToolDescription
warn_list_robotsList schematics with filters
warn_get_robotGet schematic by ID
warn_semantic_searchNatural language search
warn_memory_statsBackend statistics
warn_add_relationshipCreate graph triplet (subject, predicate, object)
warn_graph_neighborsGet connected entities
warn_graph_pathFind shortest path between entities
warn_graph_statsGraph node/edge statistics
warn_scratchpad_writeStore session observation
warn_scratchpad_readRetrieve session entries
warn_scratchpad_clearClear session entries
warn_scratchpad_statsToken budget statistics

LangGraph Flow

9-node hybrid retrieval-augmented generation:

  1. parse_intent - Classify query (lookup/diagnostic/analytics/search)
  2. query_graph - Enrich with knowledge graph relationships
  3. inject_scratchpad - Add session working memory (CoALA working tier)
  4. recall_episodes - Recall prior episodes (CoALA episodic tier; gated to ANALYTICS/DIAGNOSTIC)
  5. retrieve - Fetch candidates from memory backend (CoALA semantic tier)
  6. compress_context - Minimize token bloat
  7. reason - LLM generates response (official anthropic SDK preferred, then Azure OpenAI, then OpenAI)
  8. respond - Format for dashboards/MCP
  9. log_episode - Write the interaction back to episodic memory (always)

Adding Schematics

Edit data/schematics/schematics.json:

{
  "id": "WRN-00026",
  "model": "WC-900",
  "name": "New Robot Name",
  "component": "component description",
  "version": "v1.0",
  "summary": "Technical summary...",
  "category": "sensors",
  "status": "active",
  "tags": ["tag1", "tag2"],
  "specifications": {
    "spec_key": "spec_value"
  },
  "url": "https://schematics.warnerco.io/..."
}

Then re-index: uv run python -c "...index_all()"

Dashboards

  • Schematics Browser (/dash/schematics/) - Search, filter, view robot data
  • Memory Learning (/dash/memory/) - Educational RAG visualization

Azure Deployment

See references/azure-deployment.md for:

  • Container App setup
  • APIM configuration
  • AI Search indexing
  • OpenAI model deployment

API Endpoints

MethodPathDescription
GET/api/robotsList schematics
GET/api/robots/{id}Get by ID
POST/api/searchSemantic search
GET/api/memory/statsBackend stats
GET/docsOpenAPI docs

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.