Legal Advisor Skill
When to Activate
Activate this skill when:
- Answering legal questions tied to a specific country or jurisdiction
- Analyzing a case, situation, or scenario against applicable law
- Reviewing regulatory compliance (privacy, financial, employment, environmental, etc.)
- Evaluating contracts, agreements, or legal terms
- Auditing dependency licenses for compatibility and obligations
- Assessing data handling against privacy regulations
- Screening for export control or sanctions exposure
- Analyzing copyright, trademark, or IP ownership questions
Research Methodology
IRAC Framework
Apply the Issue-Rule-Application-Conclusion framework for structured legal analysis:
- Issue: Frame the precise legal question. Avoid vague or compound questions.
- Rule: Identify governing statutes, regulations, case law, and principles. Cite specific provisions with source references.
- Application: Apply the rules to the specific facts. Address counterarguments and edge cases.
- Conclusion: Provide a reasoned assessment. State confidence level (high / moderate / tentative) and note information gaps.
Source Hierarchy
Evaluate sources by authority, in descending order:
- Binding: Constitution, statutes, regulations, supreme court decisions
- Persuasive: Lower court decisions, decisions from other jurisdictions, obiter dicta
- Guidance: Regulatory body publications, official interpretations, advisory opinions
- Commentary: Law review articles, treatises, practitioner guides
Always prefer official government sources over secondary summaries. Note when sources may be outdated, repealed, or overruled.
Reference: references/research-methodology.md for detailed source evaluation guidance.
Jurisdiction Framework
Legal systems fall into broad categories that shape research approach:
- Common Law: Case law and judicial precedent are primary. Statutes interpreted by courts.
- Civil Law: Codified statutes are primary. Case law is persuasive but not binding.
- Mixed/Hybrid: Elements of both common and civil law traditions.
- Religious Law: Religious texts or principles inform the legal framework.
- Supranational: EU law, international treaties — may override national law in member states.
Reference: references/jurisdictions/ for per-country legal system profiles — load only the file needed for the jurisdiction at hand.
License & Compliance Checks
License Compatibility Audit
- Identify all dependencies and their declared licenses
- Cross-reference against the license compatibility matrix
- Flag incompatible, unlicensed, or restricted dependencies
- Document attribution and source-disclosure requirements
- Recommend alternatives for problematic dependencies
Data Privacy Assessment
- Identify data types handled (PII, financial, health, etc.)
- Map applicable regulations by jurisdiction
- Review data flows: collection → storage → processing → sharing
- Flag missing safeguards and consent mechanisms
- Recommend privacy-by-design improvements
Export Control Screening
- Identify encryption-related code and ECCN classification
- Check for dependencies with export restrictions
- Flag geographic restrictions on distribution or use
Common License Obligations
Permissive (MIT, Apache-2.0, BSD)
- Include copyright notice and license text with distribution
- Apache-2.0 requires NOTICE file for modifications
Copyleft (GPL, AGPL, LGPL)
- GPL: Derivative works must also be GPL-licensed
- AGPL: Network/SaaS use triggers copyleft obligations
- LGPL: Library linking from proprietary code is permitted
Source-Available (BSL, SSPL, Elastic)
- BSL: Converts to open-source after a specified period
- SSPL: Requires release of service management infrastructure code
- Elastic-2.0: Restricts use for managed/hosted services
Quick Reference
- references/license-matrix.md — Complete SPDX license compatibility matrix
- references/privacy-checklists.md — GDPR, CCPA, HIPAA compliance checklists
- references/export-control.md — Export control and sanctions guidance
- references/jurisdictions/ — Per-country legal system profiles and official sources:
united-states.md, united-kingdom.md, canada.md, australia.md, india.md
european-union.md, germany.md, france.md, japan.md, brazil.md, china.md
south-africa.md, scotland.md, quebec.md, saudi-arabia.md, united-arab-emirates.md, malaysia.md
international.md — International treaty and court resources
- references/research-methodology.md — IRAC framework and source evaluation
1---2name: legal-advisor-shahboura3title: Legal Advisor Skill4description: Legal research, jurisdiction-aware analysis, regulatory compliance, case evaluation, license auditing, and structured legal findings. Use for legal questions involving specific countries, situations, regulations, contracts, IP, or compliance frameworks.5author: shahboura6author_url: https://github.com/shahboura/agents-opencode/tree/main/.opencode/skills/legal-advisor7license: MIT8version: 0.1.19execution_mode: open10jurisdiction: general11practice: general12language: en13sources:14- title: Export control15 path: references/export-control.md16- title: Australia17 path: references/jurisdictions/australia.md18- title: Brazil19 path: references/jurisdictions/brazil.md20- title: Canada21 path: references/jurisdictions/canada.md22- title: China23 path: references/jurisdictions/china.md24- title: European union25 path: references/jurisdictions/european-union.md26- title: France27 path: references/jurisdictions/france.md28- title: Germany29 path: references/jurisdictions/germany.md30- title: India31 path: references/jurisdictions/india.md32- title: International33 path: references/jurisdictions/international.md34- title: Japan35 path: references/jurisdictions/japan.md36- title: Malaysia37 path: references/jurisdictions/malaysia.md38- title: Quebec39 path: references/jurisdictions/quebec.md40- title: Saudi arabia41 path: references/jurisdictions/saudi-arabia.md42- title: Scotland43 path: references/jurisdictions/scotland.md44- title: South africa45 path: references/jurisdictions/south-africa.md46- title: United arab emirates47 path: references/jurisdictions/united-arab-emirates.md48- title: United kingdom49 path: references/jurisdictions/united-kingdom.md50- title: United states51 path: references/jurisdictions/united-states.md52- title: License matrix53 path: references/license-matrix.md54- title: Privacy checklists55 path: references/privacy-checklists.md56- title: Research methodology57 path: references/research-methodology.md58metadata:59 source: https://skillmd.com/skills/thomasmoreai/legal-advisor-shahboura60---6162# Legal Advisor Skill6364## When to Activate6566Activate this skill when:67- Answering legal questions tied to a specific country or jurisdiction68- Analyzing a case, situation, or scenario against applicable law69- Reviewing regulatory compliance (privacy, financial, employment, environmental, etc.)70- Evaluating contracts, agreements, or legal terms71- Auditing dependency licenses for compatibility and obligations72- Assessing data handling against privacy regulations73- Screening for export control or sanctions exposure74- Analyzing copyright, trademark, or IP ownership questions7576## Research Methodology7778### IRAC Framework7980Apply the Issue-Rule-Application-Conclusion framework for structured legal analysis:81821. **Issue:** Frame the precise legal question. Avoid vague or compound questions.832. **Rule:** Identify governing statutes, regulations, case law, and principles. Cite specific provisions with source references.843. **Application:** Apply the rules to the specific facts. Address counterarguments and edge cases.854. **Conclusion:** Provide a reasoned assessment. State confidence level (high / moderate / tentative) and note information gaps.8687### Source Hierarchy8889Evaluate sources by authority, in descending order:90- **Binding:** Constitution, statutes, regulations, supreme court decisions91- **Persuasive:** Lower court decisions, decisions from other jurisdictions, obiter dicta92- **Guidance:** Regulatory body publications, official interpretations, advisory opinions93- **Commentary:** Law review articles, treatises, practitioner guides9495Always prefer official government sources over secondary summaries. Note when sources may be outdated, repealed, or overruled.9697Reference: `references/research-methodology.md` for detailed source evaluation guidance.9899## Jurisdiction Framework100101Legal systems fall into broad categories that shape research approach:102103- **Common Law:** Case law and judicial precedent are primary. Statutes interpreted by courts.104- **Civil Law:** Codified statutes are primary. Case law is persuasive but not binding.105- **Mixed/Hybrid:** Elements of both common and civil law traditions.106- **Religious Law:** Religious texts or principles inform the legal framework.107- **Supranational:** EU law, international treaties — may override national law in member states.108109Reference: `references/jurisdictions/` for per-country legal system profiles — load only the file needed for the jurisdiction at hand.110111## License & Compliance Checks112113### License Compatibility Audit1141. Identify all dependencies and their declared licenses1152. Cross-reference against the license compatibility matrix1163. Flag incompatible, unlicensed, or restricted dependencies1174. Document attribution and source-disclosure requirements1185. Recommend alternatives for problematic dependencies119120### Data Privacy Assessment1211. Identify data types handled (PII, financial, health, etc.)1222. Map applicable regulations by jurisdiction1233. Review data flows: collection → storage → processing → sharing1244. Flag missing safeguards and consent mechanisms1255. Recommend privacy-by-design improvements126127### Export Control Screening1281. Identify encryption-related code and ECCN classification1292. Check for dependencies with export restrictions1303. Flag geographic restrictions on distribution or use131132## Common License Obligations133134### Permissive (MIT, Apache-2.0, BSD)135- Include copyright notice and license text with distribution136- Apache-2.0 requires NOTICE file for modifications137138### Copyleft (GPL, AGPL, LGPL)139- GPL: Derivative works must also be GPL-licensed140- AGPL: Network/SaaS use triggers copyleft obligations141- LGPL: Library linking from proprietary code is permitted142143### Source-Available (BSL, SSPL, Elastic)144- BSL: Converts to open-source after a specified period145- SSPL: Requires release of service management infrastructure code146- Elastic-2.0: Restricts use for managed/hosted services147148## Quick Reference149150- [references/license-matrix.md](references/license-matrix.md) — Complete SPDX license compatibility matrix151- [references/privacy-checklists.md](references/privacy-checklists.md) — GDPR, CCPA, HIPAA compliance checklists152- [references/export-control.md](references/export-control.md) — Export control and sanctions guidance153- [references/jurisdictions/](references/jurisdictions/) — Per-country legal system profiles and official sources:154 - `united-states.md`, `united-kingdom.md`, `canada.md`, `australia.md`, `india.md`155 - `european-union.md`, `germany.md`, `france.md`, `japan.md`, `brazil.md`, `china.md`156 - `south-africa.md`, `scotland.md`, `quebec.md`, `saudi-arabia.md`, `united-arab-emirates.md`, `malaysia.md`157 - `international.md` — International treaty and court resources158- [references/research-methodology.md](references/research-methodology.md) — IRAC framework and source evaluation