From legal-investigative
Provision a new legal or investigative workspace on disk. Use when the user wants to start a case, evidence bundle, OSINT investigation, or document-review workspace. Accepts a workspace name and optional variant (legal-research | evidence-management | osint-investigation | document-analysis). Scaffolds the workspace, personalises CLAUDE.md from the user's global memory, and (by default) creates a GitHub repo.
How this skill is triggered — by the user, by Claude, or both
Slash command
/legal-investigative:new-workspaceThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Creates a new workspace for a legal or investigative matter. This plugin's primitives (`/legal-investigative:log-evidence`, `/legal-investigative:analyze-document`, `/legal-investigative:redact-content`, `/legal-investigative:generate-brief`) are globally available once installed — this skill only provisions the **data scaffold** (CLAUDE.md, context/, research/, evidence/, etc.) that those comm...
Creates a new workspace for a legal or investigative matter. This plugin's primitives (/legal-investigative:log-evidence, /legal-investigative:analyze-document, /legal-investigative:redact-content, /legal-investigative:generate-brief) are globally available once installed — this skill only provisions the data scaffold (CLAUDE.md, context/, research/, evidence/, etc.) that those commands read from and write to.
$ARGUMENTS is parsed as:
~/repos/github/my-repos.--variant=<legal-research|evidence-management|osint-investigation|document-analysis> (optional): which scaffold to copy. Default: legal-research.--jurisdiction=<code> (optional): jurisdiction hint for legal-research variant. israel loads the Israel sub-variant. Any other value is written as free-text into the workspace CLAUDE.md.--local-only (optional): skip GitHub repo creation and push. Default: create a public GitHub repo and push.--private (optional): create the GitHub repo as private. Default: public./legal-investigative:new-workspace tenancy-dispute
/legal-investigative:new-workspace small-claims-isr --variant=legal-research --jurisdiction=israel
/legal-investigative:new-workspace product-liability-evidence --variant=evidence-management
/legal-investigative:new-workspace subject-x-osint --variant=osint-investigation --private
/legal-investigative:new-workspace nda-review --variant=document-analysis --local-only
Extract workspace name, target parent path, variant, jurisdiction, and flags from $ARGUMENTS. If workspace name is missing, ask the user for it before proceeding. Default variant is legal-research.
The bundled scaffold lives at ${CLAUDE_SKILL_DIR}/../../template/<variant>/. Confirm it exists. Valid variants: legal-research, evidence-management, osint-investigation, document-analysis.
If --variant=legal-research --jurisdiction=israel, also plan to overlay ${CLAUDE_SKILL_DIR}/../../template/legal-research/israel-variant/ on top of the base scaffold after the copy in step 4.
Read ~/.claude/CLAUDE.md if it exists. Extract OS, locale, timezone, and user identity facts. These will personalise the workspace's CLAUDE.md at step 5.
mkdir -p <target-parent>/<workspace-name>
cp -r ${CLAUDE_SKILL_DIR}/../../template/<variant>/. <target-parent>/<workspace-name>/
If the Israel sub-variant applies, additionally:
cp -r ${CLAUDE_SKILL_DIR}/../../template/legal-research/israel-variant/. <target-parent>/<workspace-name>/
The sub-variant overlay replaces the base CLAUDE.md with the Israel-specific one and adds jurisdiction context files. Do not include the israel-variant/ folder itself inside the provisioned workspace — only its contents. Do not copy any .claude/ tree.
Open the new workspace's CLAUDE.md and:
Ask the user only for facts this plugin can't infer. Write each into the new workspace's CLAUDE.md as a labelled line so commands can parse them:
--jurisdiction), parties, confidentiality level. Write as MATTER, JURISDICTION, PARTIES, CONFIDENTIALITY.sha256), whether OpenTimestamps / GPG signing is in use. Write as CASE_REF, HASH_ALGOS, OTS_ENABLED, GPG_SIGN.SUBJECT, SCOPE, BOUNDARIES.CORPUS, JURISDICTION, CONFIDENTIALITY.cd <target-parent>/<workspace-name>
git init
git add .
git commit -m "Initial workspace from legal-investigative plugin"
Unless --local-only is set:
gh repo create <workspace-name> --<public|private> --source=. --push
If --private is passed, use --private; otherwise default to --public.
After provisioning, print a short summary telling the user which primitives are relevant to the variant:
/legal-investigative:analyze-document, /legal-investigative:generate-brief/legal-investigative:log-evidence, /legal-investigative:generate-brief/legal-investigative:analyze-document, /legal-investigative:generate-brief/legal-investigative:analyze-document, /legal-investigative:redact-contentRemind the user that /legal-investigative:redact-content is available in any variant when sensitive disclosure is required.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin legal-investigativeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.