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-shahboura3description: 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.4license: MIT5---67# Legal Advisor Skill89## When to Activate1011Activate this skill when:12- Answering legal questions tied to a specific country or jurisdiction13- Analyzing a case, situation, or scenario against applicable law14- Reviewing regulatory compliance (privacy, financial, employment, environmental, etc.)15- Evaluating contracts, agreements, or legal terms16- Auditing dependency licenses for compatibility and obligations17- Assessing data handling against privacy regulations18- Screening for export control or sanctions exposure19- Analyzing copyright, trademark, or IP ownership questions2021## Research Methodology2223### IRAC Framework2425Apply the Issue-Rule-Application-Conclusion framework for structured legal analysis:26271. **Issue:** Frame the precise legal question. Avoid vague or compound questions.282. **Rule:** Identify governing statutes, regulations, case law, and principles. Cite specific provisions with source references.293. **Application:** Apply the rules to the specific facts. Address counterarguments and edge cases.304. **Conclusion:** Provide a reasoned assessment. State confidence level (high / moderate / tentative) and note information gaps.3132### Source Hierarchy3334Evaluate sources by authority, in descending order:35- **Binding:** Constitution, statutes, regulations, supreme court decisions36- **Persuasive:** Lower court decisions, decisions from other jurisdictions, obiter dicta37- **Guidance:** Regulatory body publications, official interpretations, advisory opinions38- **Commentary:** Law review articles, treatises, practitioner guides3940Always prefer official government sources over secondary summaries. Note when sources may be outdated, repealed, or overruled.4142Reference: `references/research-methodology.md` for detailed source evaluation guidance.4344## Jurisdiction Framework4546Legal systems fall into broad categories that shape research approach:4748- **Common Law:** Case law and judicial precedent are primary. Statutes interpreted by courts.49- **Civil Law:** Codified statutes are primary. Case law is persuasive but not binding.50- **Mixed/Hybrid:** Elements of both common and civil law traditions.51- **Religious Law:** Religious texts or principles inform the legal framework.52- **Supranational:** EU law, international treaties — may override national law in member states.5354Reference: `references/jurisdictions/` for per-country legal system profiles — load only the file needed for the jurisdiction at hand.5556## License & Compliance Checks5758### License Compatibility Audit591. Identify all dependencies and their declared licenses602. Cross-reference against the license compatibility matrix613. Flag incompatible, unlicensed, or restricted dependencies624. Document attribution and source-disclosure requirements635. Recommend alternatives for problematic dependencies6465### Data Privacy Assessment661. Identify data types handled (PII, financial, health, etc.)672. Map applicable regulations by jurisdiction683. Review data flows: collection → storage → processing → sharing694. Flag missing safeguards and consent mechanisms705. Recommend privacy-by-design improvements7172### Export Control Screening731. Identify encryption-related code and ECCN classification742. Check for dependencies with export restrictions753. Flag geographic restrictions on distribution or use7677## Common License Obligations7879### Permissive (MIT, Apache-2.0, BSD)80- Include copyright notice and license text with distribution81- Apache-2.0 requires NOTICE file for modifications8283### Copyleft (GPL, AGPL, LGPL)84- GPL: Derivative works must also be GPL-licensed85- AGPL: Network/SaaS use triggers copyleft obligations86- LGPL: Library linking from proprietary code is permitted8788### Source-Available (BSL, SSPL, Elastic)89- BSL: Converts to open-source after a specified period90- SSPL: Requires release of service management infrastructure code91- Elastic-2.0: Restricts use for managed/hosted services9293## Quick Reference9495- [references/license-matrix.md](references/license-matrix.md) — Complete SPDX license compatibility matrix96- [references/privacy-checklists.md](references/privacy-checklists.md) — GDPR, CCPA, HIPAA compliance checklists97- [references/export-control.md](references/export-control.md) — Export control and sanctions guidance98- [references/jurisdictions/](references/jurisdictions/) — Per-country legal system profiles and official sources:99 - `united-states.md`, `united-kingdom.md`, `canada.md`, `australia.md`, `india.md`100 - `european-union.md`, `germany.md`, `france.md`, `japan.md`, `brazil.md`, `china.md`101 - `south-africa.md`, `scotland.md`, `quebec.md`, `saudi-arabia.md`, `united-arab-emirates.md`, `malaysia.md`102 - `international.md` — International treaty and court resources103- [references/research-methodology.md](references/research-methodology.md) — IRAC framework and source evaluation