| name | legal-advisor-shahboura |
| title | Legal Advisor Skill |
| description | 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. |
| author | shahboura |
| author_url | https://github.com/shahboura/agents-opencode/tree/main/.opencode/skills/legal-advisor |
| license | MIT |
| version | 0.1.0 |
| execution_mode | open |
| jurisdiction | general |
| practice | general |
| language | en |
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.
- EU law, international treaties — may override national law in member states.