Not loaded · from tec-knowledge-base
When using MCP tools to check platform health, CI status, deployments, or Railway services — apply TEC-specific query patterns and interpret results through the platform knowledge lens.
Claude Code won't load this skill
It ships in tec-knowledge-base at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Use MCP tools to observe and verify the live state of the TEC platform. Always interpret results through the knowledge base.
| MCP Server | Capability | When to Use |
|---|---|---|
| GitHub | CI status, PR reviews, commits, branch state | Verify fixes landed, check test results |
| Vercel | Deployments, runtime logs, error traces | Debug production issues, verify deploy success |
| Railway | Service health, env vars, deploy logs | Check backend status, NEW-B verification |
| Supabase | DB queries, migrations, schema | Database health if applicable |
Check CI for a repo:
→ list workflow runs — owner: yasira82, repo: tec-ecommerce, branch: main
→ get failed job logs — for the latest failed run_id
Check a specific file:
→ get file contents — path: src/app/api/bff/payment/create/route.ts
Search for pattern:
→ search code — query: "x-internal-key" in yasira82/tec-ecommerce
Check PR status:
→ list pull requests — state: open, repo: tec-ecommerce
Get runtime logs for BFF failures:
→ get runtime logs — project: tec-ecommerce
→ filter: level: ["error"], source: ["serverless"]
→ query: "bff/payment/create"
Check deployment:
→ list deployments — project: tec-ecommerce
→ get deployment — for latest deploymentId
| Error Pattern in Logs | Root Cause | Knowledge Reference |
|---|---|---|
Payment setup failed (422) | Missing fetch mock for payment/create | tec-testing skill — C-76 backend-first |
.rejects.toThrow(...) failing | Old reject-based assertions | tec-testing — always resolves pattern |
body.userId in policy check | Merchant ID from request body | security-reviewer — Forbidden #8 |
jwt.decode detected | JWT decoded without verification | C-47 Forbidden #2 |
NEXT_PUBLIC_API_GATEWAY_URL in client | NEW-A violation | security-reviewer skill |
| Error in Vercel Logs | Root Cause | Fix |
|---|---|---|
Gateway not configured (503) | NEXT_PUBLIC_API_GATEWAY_URL not set | Add env var on Vercel |
missing userId from tec_user cookie (401) | Cookie format issue | Check getUserId — u?.id ?? u?.sub ?? u?.piId |
CSRF validation failed (403) | CSRF cookie present but header missing | Check x-csrf-token header in client |
gateway error: 401 | x-internal-key: '' (empty string) | Only send header if INTERNAL_SECRET is SET |
gateway error: 422 | Gateway rejects request body | Check gateway contract — no memo field |
| State | Meaning | Action |
|---|---|---|
Active | Service running normally | ✅ OK |
Crashed | Service exited with error | Check Railway logs immediately (P0) |
Sleeping | Inactive (free tier) | Expected on free Railway plan |
Building | Deploying new version | Wait 2-3 minutes |
Query: List env vars for each service
Check: INTERNAL_SECRET is SET (not empty) on:
→ tec-api-gateway
→ tec-auth-service
→ tec-payment-service
→ tec-commerce-service
If MISSING: generate secret + set on all 4 services
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
When a fix is pushed to one repo, verify cross-repo impact:
1. payment-expert skill change in tec-ecommerce
→ Verify: same fix needed in tec-assets? tec-commerce?
→ Check: each has isHubNavigation() guard (ADR-007)
2. tec-ui version bump
→ Verify: ALL 4 apps updated (not staggered)
→ Check: each builds without type errors
3. Gateway API change in tec-core-backend
→ Verify: tec-sdk contracts updated FIRST
→ Check: all BFF routes still work
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", agents.1: Invalid string: must start with "./", agents.1: Invalid string: must end with ".md", agents.2: Invalid string: must start with "./", agents.2: Invalid string: must end with ".md", skills: Invalid input, author: Invalid input: expected object, received string
.claude-plugin/plugin.json: commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", agents.1: Invalid string: must start with "./", agents.1: Invalid string: must end with ".md", agents.2: Invalid string: must start with "./", agents.2: Invalid string: must end with ".md", skills: Invalid input, author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
16 skills in this plugin
/bff-patternsWhen writing or modifying any BFF route (/api/bff/*) in any TEC app — enforce BFF-first rule, createHandler pattern, auth cookie reading, CSRF protection, and proper gateway proxying./charter-advisorWhen working on any app within the TEC ecosystem — before modifying code, architecture, or CLAUDE.md — load the app's Institutional Charter (C-100→C-115 infra apps + C-124→C-131 user-layer apps) to understand its engineering authority, security model, and P0/P1/P2 gaps./community-marketingWhen building or growing the TEC community on Pi Network channels (Pi Chat, Pi Forum, Telegram, Discord) — apply community-first growth, ambassador programs, and trust-building frameworks.