.claude/skills/schema-builder/SKILL.md
# SKILL: schema-builder Use when: creating, reviewing, or modifying document schemas for the v11.0 pipeline. Covers all 12 civil document types. ## What Are Document Schemas Document schemas define the STRUCTURE of a legal document — section order, per-section instructions, filing rules. They are INDEPENDENT of cause type. Same schema works for ALL 92 cause types. One schema per document type. ## The 12 Civil Document Schemas | # | Document Type | CPC Reference | Filed By | Annexure Prefix
npx skillsauth add itmegirish/boardingmcp-server .claude/skills/schema-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use when: creating, reviewing, or modifying document schemas for the v11.0 pipeline. Covers all 12 civil document types.
Document schemas define the STRUCTURE of a legal document — section order, per-section instructions, filing rules. They are INDEPENDENT of cause type.
Same schema works for ALL 92 cause types. One schema per document type.
| # | Document Type | CPC Reference | Filed By | Annexure Prefix | |---|--------------|---------------|----------|-----------------| | 1 | plaint | Order VII | plaintiff | P- | | 2 | written_statement | Order VIII | defendant | D- | | 3 | rejoinder | Order VIII Rule 2 | plaintiff | P- | | 4 | counter_claim | Order VIII Rule 6A-6G | defendant | D- | | 5 | interim_application | Order XXXIX / XXXVIII / XL | either | Annexure- | | 6 | execution_application | Order XXI | decree_holder | Annexure- | | 7 | appeal_memo | Order XLI Rule 1 | appellant | Annexure- | | 8 | revision_petition | S.115 CPC | aggrieved_party | Annexure- | | 9 | review_petition | Order XLVII, S.114 CPC | aggrieved_party | Annexure- | | 10 | condonation_of_delay | S.5 Limitation Act | applicant | Annexure- | | 11 | set_aside_ex_parte | Order IX Rule 13 | defendant | Annexure- | | 12 | caveat | S.148A CPC | caveator | Annexure- |
{
"code": "written_statement",
"display_name": "Written Statement",
"filed_by": "defendant",
"cpc_reference": "Order VIII",
"annexure_prefix": "D-",
"verification_type": "defendant",
"signing_format": "Defendant through Advocate",
"sections": [
{"key": "court_heading", "instruction": "Court name and place"},
{"key": "preliminary_objections", "instruction": "Limitation, jurisdiction, non-joinder"},
{"key": "parawise_reply", "instruction": "Reply to EVERY plaint paragraph"},
{"key": "additional_facts", "instruction": "New facts in defence"},
{"key": "prayer", "instruction": "Dismiss suit with costs"},
{"key": "verification", "instruction": "Verification on oath"},
],
"filing_rules": {
"court_fee": False,
"filing_deadline": "30 days (max 120 days — Order VIII Rule 1)",
},
}
instruction — what that section must containfiled_by, annexure_prefix, verification_typefiling_rules (deadline, court fee, certified copy needed)schemas/ directoryapp/agents/drafting_agents/schemas/
├── __init__.py # DOCUMENT_SCHEMAS registry + lookup
├── trial_court.py # plaint, written_statement, rejoinder, counter_claim
├── applications.py # interim_application, condonation, set_aside, caveat
├── appellate.py # appeal_memo, revision_petition, review_petition
└── execution.py # execution_application
instruction field concise — tells LLM what goes in that sectiondevelopment
# SKILL: v9-architecture Use when: planning, building, or reviewing v11.0 architecture components (LKB 2-layer model, document schemas, structured prompt builder, gates, family migrations). ## v11.0 Architecture — Scalable Context-Driven Pipeline ### Core Principles 1. **Better context to LLM = better draft** — no complex engine needed 2. **Separate law from structure** — cause type (92) × document type (12) = 1,104 combinations 3. **Decide law before drafting, enforce law after drafting** #
development
# SKILL: test-draft-pipeline ## Purpose Run the drafting pipeline, evaluate output quality, and verify all 4 gates + review work correctly. ## When to Use - After modifying any pipeline node, gate, or prompt - After creating or updating an exemplar or LKB entry - For regression testing across multiple scenarios - For debugging pipeline failures ## Test Runners ### Quick Test (single scenario) ```bash agent_steer/Scripts/python.exe research/run_draft_live.py ``` ### Unit Tests ```bash agent_
development
# SKILL: exemplar-builder ## Purpose Create, validate, and maintain document schemas and LKB Layer 2 data for the v11.0 scalable drafting pipeline. **v11.0 approach:** No exemplar documents in prompts. Instead: LKB 2-layer data + document schema → structured prompt → LLM drafts. ## When to Use - Creating a new document schema (e.g., written_statement, appeal_memo) - Enriching LKB entries with Layer 2 data (available_reliefs, jurisdiction_basis) - Reviewing schema quality against CPC rules - A
development
# SKILL: section-validator ## Purpose Build and maintain the 4 deterministic verification gates (Stage 3). Gates run on the full draft text with zero LLM calls. They validate, auto-fix formatting, and flag issues for review. ## When to Use - Building or modifying any gate - Adding new entity extraction patterns - Debugging false positives / false negatives - Extending verified provisions coverage ## Architecture Context (v5.1 — what's running) 4 gates run sequentially on `draft.draft_artifac