lawyer-analyst
Analyzes events through legal lens using statutory interpretation, case law analysis, legal reasoning, constitutional principles, and multiple legal frameworks (common law, civil law, international law). Provides insights on legal rights, obligations, liabilities, remedies, and compliance requiremen
By rysweet · 683 installs
npx skills add rysweet/amplihack --skill lawyer-analyst
Source repository · Upstream listing
Lawyer Analyst Skill
Purpose
Analyze events through the disciplinary lens of law, applying rigorous legal methodologies (statutory interpretation, case law analysis, legal reasoning), constitutional principles, procedural frameworks, substantive legal doctrines across multiple domains (contracts, torts, property, criminal, constitutional, administrative, international), and professional ethical standards to understand legal rights and obligations, assess liabilities and risks, identify applicable authorities, and recommend legally sound strategies.
When to Use This Skill
Contract Analysis : Interpreting agreements, identifying obligations, assessing breach and remedies
Liability Assessment : Evaluating potential legal exposure in torts, criminal law, or regulatory violations
Compliance Review : Ensuring adherence to statutes, regulations, and industry standards
Dispute Analysis : Assessing strengths and weaknesses of legal positions in litigation or arbitration
Rights Analysis : Identifying constitutional, statutory, and common law rights
Statutory Interpretation : Understanding and applying legislation and regulations
Precedent Research : Finding and analyzing relevant case law
Risk Management : Identifying legal risks and mitigation strategies
Regulatory Analysis : Understanding administrative law, agency rules, and enforcement
Core Philosophy: Legal Thinking
Legal analysis rests on fundamental principles:
Rule of Law : Law, not arbitrary discretion, governs society. Everyone, including government, is subject to law. Predictability and stability are essential.
Precedent and Stare Decisis : Courts follow prior decisions (precedent) to ensure consistency and predictability. "Stand by things decided." Distinguishing cases or overruling precedent requires strong justification.
Textual Authority : Legal conclusions must be grounded in authoritative texts—statutes, constitutions, regulations, contracts, case law. Personal preferences are irrelevant.
Adversarial System : Truth emerges from competing advocates presenting strongest cases for each side. Lawyers have duty to zealously represent clients within bounds of law.
Burden of Proof : Party asserting claim bears burden of proving it. Standards vary: preponderance of evidence (civil), beyond reasonable doubt (criminal), clear and convincing evidence (some contexts).
Procedural Justice : How decisions are reached matters as much as outcomes. Due process, notice, opportunity to be heard, impartial tribunal are essential.
Statutory Interpretation Canons : Principles guide interpretation—plain meaning, legislative intent, avoiding absurd results, constitutional avoidance, rule of lenity (criminal statutes construed narrowly).
Legal Realism : Law is not purely logical or mechanical. Judges are humans influenced by facts, policy, and context. Understanding outcomes requires considering more than just rules.
Theoretical Foundations (Expandable)
Foundation 1: Sources of Law and Hierarchy
Constitutional Law : Supreme law of the land (U.S. context)
U.S. Constitution establishes government structure and fundamental rights
State constitutions govern state governments (cannot contradict federal constitution)
Constitutional provisions override conflicting statutes or regulations
Interpreted by courts, ultimately U.S. Supreme Court for federal constitution
Statutory Law : Legislation enacted by legislature
Federal statutes (Congress)
State statutes (state legislatures)
Local ordinances (municipalities)
Later statutes can override earlier statutes
Statutes override common law
Must comply with constitution
Regulatory Law (Administrative Law): Rules promulgated by administrative agencies
Agencies derive authority from statutes (delegation)
Regulations have force of law if properly promulgated
Examples: EPA regulations, SEC rules, FDA regulations
Subject to judicial review for compliance with statute and constitution
Common Law : Judge made law from court decisions
Develops incrementally through case by case adjudication
Fills gaps where statutes don't address issues
Includes torts, contracts (supplemented by statutes), property
Can be overridden by statute
Binds lower courts in same jurisdiction (precedent)
Hierarchy (highest to lowest in U.S. federal system):
1. U.S. Constitution
2. Federal statutes and treaties
3. Federal regulations
4. State constitutions
5. State statutes
6. State regulations
7. Common law
Supremacy Clause : Federal law supreme over state law when conflict exists (U.S. Constitution Article VI)
Sources :
[Sources of Law Cornell Law](https://www.law.cornell.edu/wex/source of law)
[Hierarchy of Law Library of Congress](https://guides.loc.gov/law making process)
Foundation 2: Common Law vs. Civil Law Systems
Common Law System (U.S., UK, former British colonies):
Characteristics :
Precedent based : Prior judicial decisions bind future courts (stare decisis)
Adversarial : Parties present cases; judge/jury decides
Case law dominant : Judges create law through decisions
Incremental development : Law evolves gradually through cases
Advantages :
Flexibility: Adapts to new situations
Specificity: Detailed guidance from prior cases
Predictability: Similar cases decided similarly
Disadvantages :
Complexity: Voluminous case law
Inconsistency: Different courts may reach different results
Access: Requires legal expertise to navigate
Civil Law System (Continental Europe, Latin America, Japan):
Characteristics :
Code based : Comprehensive legal codes (civil code, criminal code, etc.)
Inquisitorial : Judge actively investigates facts
Statutory law dominant : Codes are primary source
Less precedent : Prior decisions less binding
Advantages :
Accessibility: Codes are organized and (relatively) clear
Uniformity: Codes provide consistent rules
Democratic legitimacy: Codes enacted by legislature
Disadvantages :
Rigidity: Codes may not adapt quickly to new situations
Gaps: Codes cannot anticipate every situation
Abstraction: General principles may be unclear in application
Hybrid Systems : Many jurisdictions combine elements (e.g., Louisiana, Quebec, Scotland)
Application : Understanding legal system type is crucial for analyzing legal issues in different jurisdictions.
Sources :
[Common Law Wikipedia](https://en.wikipedia.org/wiki/Common law)
[Civil Law Wikipedia](<https://en.wikipedia.org/wiki/Civil law (legal system) )
Foundation 3: Constitutional Principles (U.S. Context)
Separation of Powers : Three branches with distinct functions
Legislative : Makes laws (Congress)
Executive : Enforces laws (President, agencies)
Judicial : Interprets laws (courts)
Checks and balances prevent concentration of power
Federalism : Power divided between federal and state governments
Enumerated powers (federal): Commerce, taxation, war, foreign affairs
Reserved powers (states): Police powers (health, safety, welfare, morals)
Concurrent powers: Both can exercise (e.g., taxation)
Individual Rights (Bill of Rights and amendments):
First Amendment : Speech, religion, press, assembly, petition
Free speech: Government generally cannot restrict content of speech (subject to narrow exceptions: incitement, true threats, obscenity, defamation)
Free exercise: Government cannot prohibit religious practice (unless neutral law of general applicability)
Establishment Clause: Government cannot establish religion
Fourth Amendment : Protection against unreasonable searches and seizures
Warrant requirement (with exceptions)
Exclusionary rule: Illegally obtained evidence inadmissible
Fifth Amendment : Due process, self incrimination, takings, double jeopardy
Due process: Government cannot deprive life, liberty, or property without due process
Takings: Government must pay just compensation for taking private property
Fourteenth Amendment : Equal protection, due process (applies to states)
Equal protection: Government cannot discriminate without justification
Scrutiny levels: Strict (suspect classifications like race), intermediate (gender), rational basis (everything else)
Judicial Review : Power of courts to invalidate laws violating constitution
Established in Marbury v. Madison (1803)
Final arbiter: U.S. Supreme Court
Application : Constitutional law provides framework for assessing government action and individual rights.
Sources :
[U.S. Constitution National Archives](https://www.archives.gov/founding docs/constitution)
[Constitutional Law Cornell Law](https://www.law.cornell.edu/wex/constitutional law)
Foundation 4: Contract Law Principles
Definition : Contract is legally enforceable agreement
Formation (requirements for valid contract):
1. Offer : Manifestation of willingness to enter bargain, inviting acceptance
2. Acceptance : Unqualified agreement to terms of offer
3. Consideration : Each party gives something of value (bargained for exchange)
4. Mutual assent : Meeting of minds (parties understand and agree)
5. Capacity : Parties have legal capacity to contract (not minors, mentally incapacitated, intoxicated)
6. Legality : Purpose must be legal
Defenses to Formation :
Fraud : Intentional misrepresentation inducing contract
Duress : Improper threat coercing agreement
Undue influence : Unfair persuasion taking advantage of relationship
Mistake : Erroneous belief about fact material to contract (mutual mistake may allow rescission)
Unconscionability : Contract so one sided as to be oppressive
Performance and Breach :
Substantial performance : Materially performed obligations (minor deviations don't excuse other party)
Material breach : Serious failure to perform (excuses other party's performance, allows damages)
Anticipatory repudiation : Party indicates won't perform before performance due
Remedies :
Damages : Monetary compensation
Expectation damages : Put injured party in position if contract performed
Reliance damages : Reimburse expenses incurred in reliance
Restitution : Restore benefit conferred to prevent unjust enrichment
Specific performance : Court orders breaching party to perform (rare, typically for unique goods like land)
Rescission : Undo contract, restore parties to pre contract position
Parol Evidence Rule : Extrinsic evidence (oral statements, prior drafts) generally inadmissible to contradict written contract if contract is fully integrated
Statute of Frauds : Certain contracts must be in writing (e.g., land sales, contracts taking 1 year)
Application : Contract law governs most commercial relationships and many personal interactions.
Sources :
[Contract Law Cornell Law](https://www.law.cornell.edu/wex/contract)
[Restatement (Second) of Contracts](https://www.ali.org/)
Foundation 5: Tort Law Principles
Definition : Tort is civil wrong causing injury for which law provides remedy (typically damages)
Categories :
Intentional Torts : Defendant intends act and consequences
Battery : Intentional harmful or offensive contact
Elements: Intent, contact, harmful/offensive
Assault : Intentional act placing plaintiff in reasonable apprehension of imminent harmful/offensive contact
False Imprisonment : Intentional confinement within bounded area
Intentional Infliction of Emotional Distress : Extreme and outrageous conduct intentionally or recklessly causing severe emotional distress
Trespass : Intentional physical invasion of another's property
Conversion : Intentional substantial interference with plaintiff's property
Negligence : Unintentional harm resulting from failure to exercise reasonable care
Elements (all required):
1. Duty : Legal obligation to conform to standard of care
General duty: Reasonable person under circumstances
Spe