ai-team-library/claude/skills/risk-liability/SKILL.md
# Skill: Risk Assessment & Liability Analysis ## Description Performs a structured legal risk assessment and liability analysis for a software project, evaluating legal exposure across six domains: contractual liability, indemnification obligations, limitation of liability provisions, insurance requirements, incident response legal obligations, and breach notification duties. The skill reads project context, contracts, and regulatory landscape to produce a comprehensive risk-liability report w
npx skillsauth add beekeeper-lab/foundry ai-team-library/claude/skills/risk-liabilityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Performs a structured legal risk assessment and liability analysis for a software project, evaluating legal exposure across six domains: contractual liability, indemnification obligations, limitation of liability provisions, insurance requirements, incident response legal obligations, and breach notification duties. The skill reads project context, contracts, and regulatory landscape to produce a comprehensive risk-liability report with scored risks, mitigation strategies, and actionable recommendations. This is a core analytical tool for the Legal Counsel persona, complementing the existing legal risk assessment template with a process-driven, repeatable methodology.
/risk-liability slash command.| Input | Type | Required | Description |
|-------|------|----------|-------------|
| project_context | File path | Yes | ai/context/project.md or equivalent project brief with business context, data types, and target jurisdictions |
| contracts | File list | No | Paths to contracts, service agreements, or vendor terms under review |
| architecture_doc | File path | No | Architecture spec or design doc describing system components and data flows |
| regulatory_scope | String | No | Comma-separated list of applicable regulations (e.g., "GDPR, CCPA, HIPAA") |
| existing_assessment | File path | No | Previous risk-liability assessment to update incrementally |
| insurance_policies | File list | No | Paths to current insurance policy summaries (cyber liability, E&O, general liability) |
Establish assessment scope -- Parse the project context to identify the business domain, data types processed (PII, PHI, financial, etc.), target jurisdictions, and contractual relationships. Define the boundaries of the assessment.
Evaluate legal exposure -- Analyze the project's legal exposure across each category:
Analyze indemnification clauses -- For each contract in scope, identify and evaluate indemnification provisions:
Assess limitation of liability -- For each contract in scope, evaluate liability limitation provisions:
Determine insurance requirements -- Assess insurance adequacy:
Map incident response legal obligations -- Document legal obligations triggered by a security incident or data breach:
Analyze breach notification duties -- For each applicable jurisdiction and regulation, document:
Score and prioritize risks -- For each identified risk, assign probability (1-5) and impact (1-5) ratings with documented rationale. Calculate risk score (P x I). Classify as Low (1-5), Medium (6-12), High (13-19), or Critical (20-25).
Develop mitigation strategies -- For each Medium+ risk, propose specific mitigation actions:
Produce the risk-liability report -- Write the complete assessment following the Legal Counsel's risk assessment template structure, with additional sections for indemnification analysis, liability caps, insurance adequacy, incident response obligations, and breach notification duties.
| Output | Type | Description | |--------|------|-------------| | risk_liability_report | Markdown file | Complete risk assessment covering all six analysis domains with scored risks and mitigations | | indemnification_matrix | Section in report | Comparative analysis of indemnification provisions across all contracts in scope | | liability_cap_summary | Section in report | Summary of liability limitations across contracts with gap analysis | | insurance_gap_analysis | Section in report | Coverage adequacy assessment against contractual and operational requirements | | incident_response_playbook | Section in report | Legal obligations checklist triggered by security incidents, organized by timeline | | breach_notification_matrix | Section in report | Jurisdiction-by-jurisdiction notification requirements with timelines and recipients | | priority_actions | Section in report | Ranked mitigation actions by risk severity and urgency |
| Error | Cause | Resolution |
|-------|-------|------------|
| NoProjectContext | No project context file provided or found | Create a project context document with business domain, data types, and jurisdictions |
| NoJurisdiction | Project context does not specify target jurisdictions | Add jurisdiction information to the project context; breach notification analysis requires specific jurisdictions |
| NoContracts | No contracts provided for contractual risk analysis | Provide contracts for review or note that contractual analysis is out of scope for this assessment |
| IncompleteRegScope | Regulatory scope specified but missing key regulations for the jurisdiction/data type combination | Review applicable regulations for the project's jurisdictions and data types |
| StaleAssessment | Existing assessment references contracts or regulations that have been superseded | Obtain current versions of contracts and verify regulatory citations before updating |
personas/legal-counsel/templates/legal-risk-assessment.md)development
# Skill: VDD (Verification-Driven Development) Gate ## Description Runs the programmatic VDD gate for a bean: parses the bean's `## Acceptance Criteria` section, dispatches each criterion's evidence type to the matching runner (test, lint, file, file-contains, or manual), aggregates the results into a pass/fail verdict, and writes a structured markdown report at `ai/outputs/tech-qa/vdd-<NNN>.md` (zero-padded NNN). This is the machine-checkable counterpart to the prose VDD policy in `ai/contex
tools
# Skill: Spawn Task ## Description Dispatches a single specialist persona to execute a single task with only that task's context. Auto-detects the runtime environment and chooses one of two execution paths: - **In tmux** (`$TMUX` set): spawn a worker in a git worktree using a child tmux window. Process-isolated, parallelizable, durable across the calling session's lifetime. Same pattern as `/spawn-bean` but at task granularity. - **Not in tmux**: invoke the `Agent` tool with `subagent_typ
development
# Skill: Orchestration Report ## Description Aggregates the per-bean **Orchestration Telemetry** blocks (BEAN-278) across recent Done beans and produces a markdown report that answers the architecture-aware-evaluation question: **is the orchestration paying for itself?** Distinct from `/telemetry-report` (which aggregates raw cost, duration, and tokens); this skill aggregates the orchestration-quality metrics layered on top — bounces, persona activations, contract violations, escape-hatch usag
development
# Skill: Health Check ## Description Runs all health checks defined in `ai/context/health-checks.md` and produces a table-format report. Can be called standalone or by other skills (e.g., `/long-run`). ## Trigger - Invoked by the `/health-check` slash command. - Called programmatically by `/long-run` at the start of each cycle. ## Inputs | Input | Type | Required | Description | |-------|------|----------|-------------| | health_checks | Markdown file | Yes | `ai/context/health-checks.md`