portfolio-status — скилл для Claude Code: что делает и как установить
Собирает сводку по портфелю судебных дел из _log.yaml: раскладка по риску, сроки, резервы и просрочки. Пригодится, когда надо за минуту понять, что горит.
npx skills add anthropics/claude-for-legal --skill portfolio-status -a claude-codeЧто делает portfolio-status
Скилл читает журнал дел ~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_log.yaml и отдаёт одну страницу: раскладку по риску, дедлайны на 14, 30 и 60 дней, суммы резервов и раскрытых требований, распределение по стадиям. Закрытые дела в отчёт не попадают, пока не попросишь их явно.
Риск считается не на глаз: перед подсчётом скилл берёт калибровку из CLAUDE.md того же плагина, потому что без неё поле risk: читается произвольно. Фильтры — --all, --risk=high, --stale, --type=employment, --owner=[name]. Основное здесь — проверка аномалий: просроченный next_deadline, дело без обновлений больше 30 дней, незавершённая проверка конфликтов, оставленный override по конфликтам, высокий или критический риск без внешнего юриста, резерв без пересмотра дольше 60 дней, невыданный legal hold, пустые обязательные поля.
Суммы в блоке материальности — середина диапазона, то есть грубая прикидка, и подписаны они так же. Работает это ровно настолько, насколько заполнен журнал: пустой _log.yaml даст пустую сводку. Приоритет скилл не выбирает, он показывает, где узко, а решает юрист.
Какие задачи решает
- собрать сводку по всем активным делам перед звонком
- найти дела, которые не обновляли дольше 30 дней
- посчитать суммарный резерв и раскрытые суммы по портфелю
- поймать просроченный дедлайн и невыданный legal hold
- отфильтровать высокий риск без назначенного внешнего юриста
Примеры запросов агенту
- Где мы сейчас по портфелю? Собери сводку:
/portfolio-status - Покажи только заглохшие дела:
/portfolio-status --stale - Сколько открытых дел с высоким риском:
/portfolio-status --risk=high
Как установить portfolio-status
1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill portfolio-status -a claude-code2Вручную: положить файлы
~/.claude/skills/portfolio-status/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/portfolio-status/
1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill portfolio-status -a codex2Вручную: положить файлы
.agents/skills/portfolio-status/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill portfolio-status -a cursor2Вручную: положить файлы
.cursor/skills/portfolio-status/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install anthropics/claude-for-legal portfolio-status2Вручную: положить файлы
.github/skills/portfolio-status/SKILL.md1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill portfolio-status -a gemini-cli2Командой платформы
gemini skills install https://github.com/anthropics/claude-for-legal --path litigation-legal/skills/portfolio-statusВручную: положить файлы
.devin/skills/portfolio-status/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill portfolio-status -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора118
Похожие
Рядом в теме «Заметки, задачи и проекты»
Всё по теме «Заметки, задачи и проекты» →Вопросы о portfolio-status
Как установить portfolio-status в Claude Code?
Выполни npx skills add anthropics/claude-for-legal --skill portfolio-status -a claude-code. Файл скилла после этого лежит в ~/.claude/skills/portfolio-status/SKILL.md.
Что делает portfolio-status?
Читает журнал дел _log.yaml и собирает по нему сводку: риск, ближайшие дедлайны, резервы, стадии и список аномалий вроде просрочек и дел без движения.
Что должно быть готово до первого запуска?
Заполненный _log.yaml по пути конфига плагина claude-for-legal и файл CLAUDE.md с калибровкой риска в той же папке. Без журнала сводка будет пустой.
Исходный текст
SKILL.md · Apache-2.0
--- name: portfolio-status description: Roll up the portfolio from _log.yaml — risk distribution, upcoming deadlines, stale matters, materiality totals, stage distribution, and flagged anomalies. Use when the user asks "where do we stand", "how many open matters", or wants a portfolio rollup or status across all active matters. argument-hint: "[--all | --risk=high | --stale]" --- # /portfolio-status 1. Load `~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md` → risk calibration (defines how to read the `risk:` field). 2. Follow the workflow and reference below. 3. Parse `~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_log.yaml`. Filter closed matters by default (include with `--all`). 4. Produce rollup: risk distribution, deadlines in next 14/30/60 days, matters with no update in >30 days, materiality totals, stage distribution. 5. Flag anomalies — everything marked critical, overdue next_deadline, matters without outside counsel assigned where risk is medium or high. --- # Portfolio Status ## Purpose One read that answers: what do I own right now, what needs attention, and what's slipping? Output is scannable — designed for a counsel who has three minutes before their next call. ## Load context - `~/.claude/plugins/config/claude-for-legal/litigation-legal/matters/_log.yaml` — source of truth - `~/.claude/plugins/config/claude-for-legal/litigation-legal/CLAUDE.md` — risk calibration (to interpret risk/materiality fields correctly) ## Flags & filters Default: active matters only (exclude `status: closed`). Flags: - `--all` — include closed - `--risk=high` (or `critical` / `medium` / `low`) — filter by risk band - `--stale` — only matters with `last_updated` > 30 days - `--type=employment` — filter by matter type - `--owner=[name]` — filter by business/HR/comms owner ## The rollup ```markdown [WORK-PRODUCT HEADER — per plugin config ## Outputs — differs by role; see `## Who's using this`] # Portfolio Status — [today] **Active matters:** [N] **Closed (ytd):** [N] *(shown only with --all)* --- ## By risk | Risk | Count | Matters | |---|---|---| | Critical | [N] | [slugs] | | High | [N] | [slugs] | | Medium | [N] | [count only — expand with `--risk=medium`] | | Low | [N] | [count only] | ## Upcoming deadlines | Within | Matters | |---|---| | 14 days | [slug — deadline — brief] | | 15–30 days | [...] | | 31–60 days | [...] | *Overdue `next_deadline` flagged separately below.* ## Materiality | Category | Count | Total exposure (midpoint) | |---|---|---| | Reserved | [N] | [$X] | | Disclosed | [N] | [$X] | | Monitored | [N] | — | | None | [N] | — | ## By stage [table: pleadings / discovery / dispositive motions / trial prep / settlement / appeal] --- ## ⚠️ Anomalies & flags - **Overdue deadlines:** [list slugs where next_deadline has passed] - **Stale (>30d no update):** [list] - **Conflicts unresolved:** [list slugs with `conflicts.status in [pending, not-run]`] - **Conflicts bypassed (override active):** [list slugs where `conflicts.override.by` is populated — permanent flag until manually cleared] - **High/critical risk without outside counsel:** [list] - **Reserved without last_updated in >60d:** [list] — reserve recalibration likely overdue - **Hold not issued on active litigation:** [list] - **Missing fields:** [slug → field] --- ## Closing advice [One or two sentences on what to look at first, if anything stands out. Not boilerplate — only if something truly stands out.] ``` ## Anomaly rules These are the checks that make the skill useful rather than decorative: 1. **Overdue deadline:** `next_deadline < today` and `status != closed` 2. **Stale:** `last_updated < today - 30d` and `status != closed` 3. **Conflicts unresolved:** `conflicts.status in [pending, not-run]` and `status != closed` 3b. **Conflicts override active:** `conflicts.override.by != null` (never auto-clears) 4. **High-risk uncovered:** `risk in [high, critical]` and `outside_counsel.firm == null` 5. **Stale reserve:** `materiality == reserved` and `last_updated < today - 60d` 6. **Hold gap:** `status in [threatened, active, discovery, trial, appeal]` and `legal_hold.issued == false` — preservation duty attaches at reasonable anticipation, so `threatened` matters are in scope. 7. **Missing fields:** any required field null — `risk`, `materiality`, `status`, `opened`, `conflicts.status` ## Close with the next-steps decision tree End with the next-steps decision tree per CLAUDE.md `## Outputs`. Customize the options to what this skill just produced — the five default branches (draft the X, escalate, get more facts, watch and wait, something else) are a starting point, not a lock-in. The tree is the output; the lawyer picks. If the portfolio has more than ~10 matters, or any time the user asks: offer the dashboard (see CLAUDE.md `## Outputs → Dashboard offer for data-heavy outputs`). Shape the offer for this output — counts by risk tier, a timeline of upcoming deadlines, and a sortable matter ledger with status, conflicts check, and last-touched date. ## What this skill does not do - Make decisions. It surfaces what needs attention; the user decides priority. - Pretend precision it doesn't have. Exposure midpoints are rough and should be labeled so. - Replace a real MMS. This is a working-memory rollup, not a system of record.
© anthropics · Apache-2.0 · anthropics/claude-for-legal