一键导入
patronum-add
Add a file pattern or command to the agento-patronum protection list. Use when the user wants to block access to a file, path, or command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a file pattern or command to the agento-patronum protection list. Use when the user wants to block access to a file, path, or command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Adopt portless for stable, git-worktree-aware .localhost dev URLs following its documented best practices (pinned devDependency + portless.json + dev/dev:app script split — never a hand-rolled slug or sh -c wrapper), then wire it into Conductor via .conductor/settings.toml. Detects the stack first, wraps ONLY the JS/TS frontend dev server, and researches per-workspace isolation for backends/DB/Docker that portless can't cover. Use when asked to set up portless, fix stable dev URLs across worktrees, or make a repo Conductor-friendly for parallel agents.
Create or update GitHub issues for bug reports, feature requests, and refactor tasks using the gh CLI. Use when the user wants to file a ticket, create an issue, report a bug, request a feature, plan a refactor, or update an existing GitHub issue. Also triggers for new issue, open a ticket, file a bug, feature request, create task, or mentions wanting to track work in GitHub Issues.
Sets up, audits, or migrates release-please (Conventional-Commit versioning, changelogs, GitHub releases). Use to set up release automation, automated versioning/changelogs, or release-please; to audit, review, fix, or question an existing setup; or to switch release forms (single ↔ per-module) without breaking changelog/tag history.
Sets up a repo for Conductor end-to-end: install/setup script (automatic), selectable Run targets (with more than one, no default so nothing autostarts), and archive cleanup (automatic) — writes .conductor/settings.toml. Use when asked to set up conductor, configure a workspace, add run targets, stop conductor autostarting, make a run-button menu, or add archive/cleanup on workspace removal.
Release & supply-chain readiness audit: gathers evidence from real workflows, manifests, and repo settings, compares against a gold-standard reference stack, has an adversarial subagent try to refute the draft, and returns a prioritized action plan (P1–P3) whose fixes are delegated to the sibling setup skills. Use when asked to audit release automation, publishing security, CI or supply-chain maturity, or whether a repo is ready to release. For a whole-repo health check (docs, tests, code quality) use maturity-analysis instead.
Audits and sets up .github/dependabot.yml: recommends a grouping mode (low-noise, balanced, fine-grained) from the repo's use-case, gates setup on pinned dependency versions, wires CODEOWNERS over the deprecated reviewers key, groups security updates. Use when asked to set up, review, fix, or audit Dependabot / automated dependency updates / dependency grouping.
| name | patronum-add |
| argument-hint | "<pattern>" [--reason "reason"] |
| description | Add a file pattern or command to the agento-patronum protection list. Use when the user wants to block access to a file, path, or command. |
| allowed-tools | Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/patronum-add.sh" *), Bash(bash "${CLAUDE_PLUGIN_ROOT}/scripts/patronum-list.sh"), AskUserQuestion |
Add a protection pattern to the agento-patronum shield.
**/.env, ~/.aws/credentials, **/*.tfstateBash(<command>), e.g. Bash(printenv); the hook prefix-matches the command inside the parentheses. A bare command name like printenv is treated as a file glob and will NOT block the command. Details: docs/rules/bash-commands.md.Parse the user's input from $ARGUMENTS. Expect a pattern and an optional --reason.
If the user described what to protect conversationally, derive the concrete pattern yourself using the formats above (wrap commands as Bash(<command>)).
If no reason is provided, generate a short reason based on what the pattern protects.
Use AskUserQuestion to confirm the addition. Present:
*, **/*, or very short globs)After the user confirms, run the script with the pattern and reason from Steps 1–2 (never raw $ARGUMENTS):
bash "${CLAUDE_PLUGIN_ROOT}/scripts/patronum-add.sh" "<pattern>" --reason "<reason>"
If the script reports the pattern already exists, tell the user it was already protected and stop — do not present it as a new addition.
Run bash "${CLAUDE_PLUGIN_ROOT}/scripts/patronum-list.sh" and present the updated protection list as a markdown table:
| Pattern | Source | Reason |
|---|
Highlight the newly added entry.