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 agentmods add instructions/andreibrosmaster/ph-compliance-mcp/agents-mdgit clone --depth 1 https://github.com/andreibrosmaster/ph-compliance-mcpWrote 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/instructions/andreibrosmaster/ph-compliance-mcp/agents-md)<a href="https://agentmods.dev/instructions/andreibrosmaster/ph-compliance-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/andreibrosmaster/ph-compliance-mcp/agents-md.svg" alt="Measured on agentmods" 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.01177 | $0.01177 |
| Opus 5 | $0.00589 | $0.00589 |
| Sonnet 5 | $0.00235 | $0.00235 |
| Haiku 4.5 | $0.00118 | $0.00118 |
Grade A, and why
ph-compliance-mcp AGENTS.md 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 5d 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 — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Working In This Repo
This project is executed by agents (Claude Code / OpenCode / Cline) under a SCAN → AUDIT → PLAN → CONFIRM → IMPLEMENT → VERIFY → DOCUMENT loop. This file is the operating manual.
Read first
../second-brain/state.md— current state and next actions (single source of truth)../second-brain/roadmap.md— phase checkboxesdocs/adr/— decisions, before re-deciding somethingllms.txt+docs/seo.md— the public identity and GEO surface; keep them in sync
Rules
- One phase at a time. Hand an agent one phase's task block plus the
sections it depends on — never the whole blueprint at once.
1b. Git attribution is the user, never the AI tool. Commit author and
committer are
andreibrosmaster <[email protected]>(set repo-local in.git/config). NEVER use a Codebuff/Codebuff-Team/ AI-tool identity as author or committer, and NEVER include "Codebuff", "Co-Authored-By", "Generated with …", or any AI-attribution trailer in commit messages or file text. The.githooks/commit-msgguard rejects these mechanically — do not bypass it. - Identity is
ph-compliance-mcp. The product is the Philippine Legal & Compliance MCP (ADR-004). Package name, server name (ph-compliance), resource scheme (ph-compliance://), env prefix (PH_COMPLIANCE_), README,llms.txt, and docs must all say this. Never introduce newph-legalstrings (theph-legal-mcp/directory is a historical artifact renamed at first git init). - Scope: legal + compliance, 15 domains. The V1 taxonomy is 15 domains (ADR-000 core 11 + ADR-004 compliance expansion: business-transactional, accounting, payroll, human-resources). Coverage includes statutes, jurisprudence, and NGA/LGU/GOCC issuances. New domains still go through an ADR. No embeddings before Phase 5 (ADR-002).
- ADR discipline. Any architectural decision gets an ADR in
docs/adr/(next number). Update ADRs you materially change. - FTS5 first.
src/retrieval/fts-search.ts+confidence.tsare the V1 retrieval path. No vector/hybrid files before Phase 5. - No synthesis without citation. Tool responses carry structured citations; below confidence threshold → "insufficient corpus coverage."
- Provenance on everything ingested. URL + retrieval date + content hash.
- Checksums are load-bearing.
corpus-loader.tsverifies each asset's SHA-256 before caching; on mismatch it refuses to load and reports clearly. - LOC budget.
scripts/check-loc-budget.mjs: warn >220 LOC, flag >350. Keep modules small. 8b. Agency acronyms are word-boundary anchored. In issuance normalizers,AGENCY_HINTSacronyms must use\b…\bso "SEC" cannot match inside "SECURITY" (misdetects SSS/GSIS documents as the SEC). - Eval before release. The eval suite (
evals/golden/evaluation.xml— 10 QA pairs seeded;run-eval.tsharness is Phase 5) becomes a hard release gate in Phase 5 (blueprint §12/§14) — don't regress it, don't skip it. 9b. MCP tool conventions (mcp-builder skill). Every tool registers with zod object schemas forinputSchema/outputSchema, all four annotations (readOnly/destructive/idempotent/openWorld), and returnsstructuredContent(never truncated) alongside a text rendering. The SDK runtime-validatesstructuredContentagainstoutputSchema— every branch (including "not found"/"insufficient coverage") must satisfy the schema, or the tool errors out. Target the SDK API of^1.30.0(peers: zod^3.25);registerResourceis the 4-arg form with URL callbacks. - Document every session. Write
../second-brain/sessions/<date>-<phase>.md, updatestate.mdand roadmap checkboxes. Context does not survive resets — the brain does.
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.
- 5d ago First seen · 74 lines · 1,177 tokens per session scan A 23b44690aa2a
ph-compliance-mcp AGENTS.md is an instructions file published in the GitHub repository andreibrosmaster/ph-compliance-mcp (1 stars, last pushed 5d ago), licensed Apache-2.0. It adds 1,177 tokens to every session, about $0.0059 per session on Opus 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-08-31.
Other instructions, from other repositories
ZATCA AGENTS.md
AGENTS.md instructions for SallaApp/ZATCA: See CLAUDE.md for the full guide. Quick facts.
ayunis-legal-mcp CLAUDE.md
Instructions for ayunis-core/ayunis-legal-mcp, covering legal mcp - architecture and development guide, project overview, architecture, directory structure and key components.
korean-firefighter-law-mcp CLAUDE.md
Claude Code instructions for ssd7830-cmyk/korean-firefighter-law-mcp, covering korean-firefighter-law-mcp, a. 답변 규칙 — 기억이 아니라 이 저장소의 코드가 근거다, b. mcp 도구 사용 and c. 작업 규칙.
uae-regulations-registry AGENTS.md
AGENTS.md instructions for nshield-security/uae-regulations-registry, covering agents.md — instructions for ai agents, what this repo contains, preferred entry points, json schema (data/regulations.json) and stable urls.
spain-ai-kit CLAUDE.md
Instructions for aplaceforallmystuff/spain-ai-kit, a project described as: MCP servers connecting AI applications to Spanish government open data and legal infrastructure.
law-mcp CLAUDE.md
Claude Code instructions for finalchild/law-mcp, covering claude.md, build and development commands, architecture overview, core components and key integration points.