Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Security-Phoenix-demo/security-skills-claude-code --skill phoenix-contract-architectgit clone --depth 1 https://github.com/Security-Phoenix-demo/security-skills-claude-codeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/security-phoenix-demo/security-skills-claude-code/phoenix-contract-architect)<a href="https://agentmods.dev/skills/security-phoenix-demo/security-skills-claude-code/phoenix-contract-architect"><img src="https://agentmods.dev/badge/skills/security-phoenix-demo/security-skills-claude-code/phoenix-contract-architect/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/security-phoenix-demo/security-skills-claude-code/phoenix-contract-architect"><img src="https://agentmods.dev/badge/skills/security-phoenix-demo/security-skills-claude-code/phoenix-contract-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00190 | $0.01190 |
| Opus 5.5 | $0.00076 | $0.00476 |
| Sonnet 5.5 | $0.00038 | $0.00238 |
| Haiku 4.5 | $0.00019 | $0.00119 |
Grade A, and why
phoenix-contract-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Phoenix Security — Contract Architect (Role 07)
Token Budget: ≤1200 tokens
Depends On: Roles 03, 04, 06 — ACTIVE_SET, NORMATIVE_REQUIREMENTS, SECURITY_REQUIREMENTS
Feeds Into: Role 08 — Verification Matrix
Output: 07-contracts.md
Phoenix API Conventions
Authentication
- All endpoints: Phoenix auth layer (Bearer token, tenant-scoped)
- Integration endpoints: API key auth with rate limiting (tool ingestion)
- AI/LLM endpoints: internal-only (no direct customer access without proxy)
Tenant Isolation Pattern
GET /api/v1/{tenantId}/resource
Authorization: Bearer {token}
# tenantId extracted from JWT — NEVER trusted from request body
Standard Response Envelope
{
"data": { ... },
"meta": {
"tenant_id": "...",
"request_id": "uuid-v4",
"timestamp": "ISO 8601"
},
"errors": []
}
Pagination (cursor-based — required for vuln/asset lists)
?cursor=<opaque_token>&limit=100 (max 500)
Response: { next_cursor, total_count }
Phoenix Error Code Ranges
| Range | Domain |
|---|---|
| 4001–4099 | Auth / authz |
| 4100–4199 | Tenant isolation violations |
| 4200–4299 | Input validation |
| 4300–4399 | Integration / ingestion errors |
| 4400–4499 | Rate limit / throttle |
| 5001–5099 | Internal service errors |
| 5100–5199 | AI/LLM errors |
| 5200–5299 | Upstream integration failures |
Integration Event Patterns (inbound tool webhooks)
- Delivery: at-least-once (idempotency key required)
- Ordering: per-tenant, best-effort
schema_versionfield required in all events
Core Rules
- Do not invent endpoints or fields. If missing → list as QUESTIONS.
- Schemas explicit: types, required/optional, constraints, examples.
- Every endpoint touching customer data → tenant isolation invariant required.
- LLM-touching contracts → prompt schema, sanitisation rules, output format constraint.
- Idempotency keys on all write endpoints and event consumers.
- Errors must be deterministic and testable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 137 lines · 190 tokens per session scan A 7f99541ba1e8
phoenix-contract-architect is a skill published in the GitHub repository Security-Phoenix-demo/security-skills-claude-code (81 stars, last pushed 5d ago), licensed MIT. It adds 190 tokens to every session and 1,190 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.
phoenix-contract-architect compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| phoenix-contract-architectSecurity-Phoenix-demo/security-skills-claude-code | Skill | 81 | 5d ago | MIT | A | 190 | Claude Code |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 68k | 2d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.2k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.0k | yesterday | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 105 | Claude Code, Codex |
| migrate-segw-to-raparc-mcp/arc-1 | Skill | 252 | yesterday | MIT | A | 106 | Claude Code |