Windsurf + Aider targets, MCP server, and demo placement (#33)
Broadens both reach (more tools) and content types (an MCP server), continuing the multi-platform story. Windsurf + Aider: - build-exports.mjs gains two platforms: exports/windsurf/*.md (workspace rules, trigger: model_decision) and exports/aider/*.md (conventions for `aider --read`). Now 5 platforms (ChatGPT, Gemini, Cursor, Windsurf, Aider). - install.sh + bin/cli.mjs install both (windsurf -> .windsurf/rules, aider -> .aider/skills with a --read hint); generated README index is excluded from copies. - One-line windsurf-install.sh / aider-install.sh wrappers for parity. MCP server (new content type): - mcp/server.mjs — zero-dependency stdio MCP server exposing list_skills, search_skills, get_skill. Published as a second bin (pm-claude-skills-mcp). Logs to stderr; reads bundled skills/ at startup. mcp/README.md documents client config. Also: README hero "See it in action" demo placement (ready to swap in a GIF; recording guide in web/docs-assets/README.md), Works-With table + exports + install docs updated, CHANGELOG Unreleased. package.json files/bin updated. Claude-Session: https://claude.ai/code/session_016JWn5jRD5tcEFKrubjQ6Px Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
---
|
||||
trigger: model_decision
|
||||
description: "Draft a structured legal brief, case summary, or legal argument outline. Use when asked to write a legal brief, case note, legal memo, argument outline, or position paper. Produces a structured document using IRAC format (Issue, Rule, Application, Conclusion)."
|
||||
---
|
||||
|
||||
# Legal Brief Skill
|
||||
|
||||
This skill drafts structured legal briefs and memos using IRAC format — the standard structure for legal writing.
|
||||
|
||||
## Required Inputs
|
||||
- **Brief type** (legal memo / case summary / argument outline / position paper / letter before action)
|
||||
- **Legal issue or question**
|
||||
- **Jurisdiction** (England & Wales / US / EU / Other)
|
||||
- **Relevant facts**
|
||||
- **Relevant law or cases** (if known — otherwise flagged as [RESEARCH NEEDED])
|
||||
- **Audience** (internal memo / court submission / client letter)
|
||||
|
||||
## Output Structure
|
||||
|
||||
### Header
|
||||
- **To:** [Recipient]
|
||||
- **From:** [Author]
|
||||
- **Date:** [Date]
|
||||
- **Re:** [Matter reference]
|
||||
- **Confidential:** Subject to legal professional privilege
|
||||
|
||||
### Issue(s)
|
||||
One sentence per legal question:
|
||||
- Issue 1: Whether X constitutes Y under [law]
|
||||
|
||||
### Brief Answer
|
||||
One sentence per issue — conclusion upfront before analysis.
|
||||
|
||||
### Facts
|
||||
Concise relevant facts only. Flag disputed facts.
|
||||
|
||||
### Law (Rule)
|
||||
- Relevant statute, regulation, or case law
|
||||
- How the rule has been interpreted in key cases
|
||||
- Flag [RESEARCH NEEDED] where law is not provided
|
||||
|
||||
### Application
|
||||
- Arguments in favour
|
||||
- Counter-arguments and responses
|
||||
- Areas of uncertainty flagged explicitly
|
||||
|
||||
### Conclusion
|
||||
- Clear answer to each issue
|
||||
- Overall recommendation
|
||||
- Suggested next steps
|
||||
|
||||
### Caveats
|
||||
What this memo does not cover. What additional research would change the analysis.
|
||||
|
||||
---
|
||||
|
||||
WARNING: This draft requires review by a qualified legal professional. It does not constitute legal advice.
|
||||
|
||||
## Quality Checks
|
||||
|
||||
- [ ] Issue is stated as a specific legal question (not a general topic)
|
||||
- [ ] Brief answer appears before the analysis (conclusion upfront)
|
||||
- [ ] Disputed facts are explicitly flagged
|
||||
- [ ] Areas of legal uncertainty are noted (not hidden in confident language)
|
||||
- [ ] Caveats section lists what would change the analysis
|
||||
- [ ] Disclaimer is included
|
||||
|
||||
## Anti-Patterns
|
||||
|
||||
- [ ] Do not present uncertain legal positions with confident language — areas of legal ambiguity must be flagged explicitly, not smoothed over
|
||||
- [ ] Do not omit the disclaimer — every legal brief output must include the professional review caveat before the user treats it as advice
|
||||
- [ ] Do not structure the brief chronologically — IRAC format (Issue, Rule, Application, Conclusion) must be used regardless of how the user framed the request
|
||||
- [ ] Do not cite cases or statutes from memory without flagging them as [REQUIRES VERIFICATION] — hallucinated citations are worse than no citations
|
||||
- [ ] Do not conflate jurisdiction — legal positions in England & Wales, US, and EU can differ materially; always confirm jurisdiction before stating the rule
|
||||
|
||||
## Example Trigger Phrases
|
||||
- "Draft a legal memo on [issue]"
|
||||
- "Write a legal brief arguing [position]"
|
||||
- "Summarise the legal position on [topic]"
|
||||
- "Write a letter before action for [situation]"
|
||||
Reference in New Issue
Block a user