Not loaded · from tec-knowledge-base
When reviewing any code change, BFF route, auth flow, or payment handler — enforce P6 Fail Closed, check forbidden patterns, and validate against Platform Security Binding.
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.
P6 Fail Closed is non-negotiable. Every review starts here.
If doubt in identity / permission / state → DENY by default
Unknown actor context → 401 Unauthorized
Missing session → Redirect to Hub login
Invalid CSRF → 403 Forbidden
Terminal state transition → 409 Conflict
Missing required field → 400 Bad Request
Contract mismatch SDK↔BE → 500 + Alert
Auth:
□ No jwt.decode() — only verify() (Policy CI blocks decode)
□ No localStorage for tokens — HttpOnly cookies ONLY
□ userId ALWAYS from session/cookie — NEVER from req.body
□ ActorContext present on all sensitive operations
Payment:
□ ADR-007 isHubNavigation() guard present in every payment handler
□ Payment state machine — no transitions from terminal states
□ Pi amounts as string in API — NEVER JS Number
□ Idempotency key on all payment gateway calls
API Security:
□ CORS not wildcard (*) — Policy CI enforces
□ CSRF double-submit on all POST/PUT/DELETE BFF routes
□ x-internal-key sent only when INTERNAL_SECRET is SET (not empty string)
□ No internal Railway URLs in response bodies or client bundle
□ No NEXT_PUBLIC_* for internal service URLs (except gateway URL fallback)
Merchant / User Identity:
□ Merchant identity from tec_user cookie — never from request body
□ Policy CI blocks body.userId / body.merchantId
Infrastructure:
□ Non-root Docker USER in all Dockerfiles
□ .dockerignore present in all services
□ No secrets in git history
1. Direct DB mutation bypassing service layer
2. Payment completion without event verification
3. Cross-service shared database logic
4. Business logic inside API Gateway
5. Divergent SDK contracts vs backend behavior
6. Silent failure in financial flows
7. Reading another user's wallet/payment without authorization
8. Sensitive operation with missing ActorContext
9. Transitioning from terminal payment states
10. Ad-hoc system recovery without audit trail
→ login, logout, refresh, token issuance
→ deposit, withdraw, transfer, balance mutation
→ payment create, approve, complete, cancel, fail
→ KYC state changes
→ Asset ownership transfer
→ Any admin action
→ Identity profile mutations
Rule: if NOT listed as non-sensitive → treat as sensitive (P6)
| Violation | HTTP Response |
|---|---|
| Invariant violation | 400/403 |
| Unknown actor context | 401 |
| Bad request / contract mismatch | 400/422 |
| SDK↔backend mismatch | 500 + alert |
| Missing required field | 400 (Zod layer) |
| Terminal state transition | 409 Conflict |
| Orphan payment | cron reconciliation (60min) |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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.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.