analyse-security
БесплатноБез исполняемых скриптовНе проверенPerforms tracked, evidence-bounded security posture assessment for a project, sub-directory, module, concept, or feature topic with standards mapping and…
от rp1-run★ 38 звёзд на GitHubОб этом скилле
Analyse Security
ROLE: Tracked workflow dispatcher. Bootstrap run tracking, pass canonical directories and resolved arguments to security-validator, register the produced report once, and stop. MUST NOT perform the security assessment directly.
Target Resolution
Before emitting the first status:
- Set
TARGET_TOPICtoTOPICwhen non-empty; otherwise set it towhole project. - Set
REPORT_IDfromFEATURE_IDwhen non-empty; otherwise derive it fromTOPIC. In both cases, normalize by lowercasing, replacing path separators, whitespace, and punctuation with-, trimming duplicate separators, and falling back toprojectif the normalized value is empty. IfTOPICis empty andFEATURE_IDis empty, setREPORT_IDtoproject. - Use
TARGET_TOPICas the assessment scope selector.FEATURE_IDis only a report grouping slug and must not narrow the assessment whenTOPICis empty. - Set
OUTPUT_PATHtosecurity/{REPORT_ID}/report.mdandOUTPUT_ABSOLUTE_PATHto{workRoot}/{OUTPUT_PATH}.
STATE-MACHINE
stateDiagram-v2
[*] --> prepare_context
prepare_context --> analyse : context_ready
analyse --> register : report_written
register --> [*] : done
On each phase transition, emit:
rp1 agent-tools emit --harness $CURRENT_HOST \
--workflow analyse-security \
--type status_change \
--run-id {RUN_ID} \
--name "Security assessment: {REPORT_ID}" \
--step {CURRENT_STATE} \
--data '{"status":"running","target":"{TARGET_TOPIC}","reportId":"{REPORT_ID}","scope":"{SECURITY_SCOPE}"}'
Terminal state register uses --data '{"status":"completed","target":"{TARGET_TOPIC}","reportId":"{REPORT_ID}","scope":"{SECURITY_SCOPE}"}'.
Governance
Role: workflow dispatcher.
Scope limits: dispatch only; no direct code scanning, report writing, or remediation.
Error degradation: missing KB directory or validator failure -> emit failed status for the current step and stop. Do not retry or produce a partial report.
Artifact contract: exactly one artifact_registered event, after the validator reports OUTPUT_PATH. Use storageRoot: "work_dir".
Dispatch
- Use the generated Workflow Bootstrap variables. Do not call argument or directory resolution tools, generate a UUID, or re-derive directories.
- Emit
prepare_contextrunning. Verify{kbRoot}exists. If missing, emit failed status and tell the user to run/knowledge-build. - Emit
analyserunning and invoke the validator:
{% dispatch_agent "rp1-base:security-validator" %} FEATURE_ID: {FEATURE_ID} TOPIC: {TOPIC} REPORT_ID: {REPORT_ID} OUTPUT_PATH: {OUTPUT_PATH} OUTPUT_ABSOLUTE_PATH: {OUTPUT_ABSOLUTE_PATH} SECURITY_SCOPE: {SECURITY_SCOPE} COMPLIANCE_FRAMEWORK: {COMPLIANCE_FRAMEWORK} KB_ROOT: {kbRoot} WORK_ROOT: {workRoot} CODE_ROOT: {codeRoot} RUN_ID: {RUN_ID} {% enddispatch_agent %}
- The sub-agent must write exactly
{OUTPUT_ABSOLUTE_PATH}and return exactlyOUTPUT_PATH: {OUTPUT_PATH}. Do not infer, rewrite, or register any other path. - Before artifact registration, verify the exact file exists:
test -f {OUTPUT_ABSOLUTE_PATH}
If the file is missing, emit failed status for register, report that the validator did not create {OUTPUT_PATH}, and stop without registering an artifact. This prevents Arcade from showing a broken artifact link.
6. Emit register running, then register the report:
rp1 agent-tools emit --harness $CURRENT_HOST \
--workflow analyse-security \
--type artifact_registered \
--run-id {RUN_ID} \
--step register \
--data '{"path":"{OUTPUT_PATH}","feature":"{REPORT_ID}","target":"{TARGET_TOPIC}","storageRoot":"work_dir","format":"markdown"}'
- Emit
registercompleted and report the final path to the user.
Runtime Contract
| Command | Purpose | Exit 0 required |
|---|---|---|
rp1 agent-tools emit |
State and artifact tracking | yes |
test -d {kbRoot} |
KB availability gate | yes |
test -f {OUTPUT_ABSOLUTE_PATH} |
Artifact existence gate before registration | yes |
Установить analyse-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(echo *)Bash(test *)Bash(rp1 *)FAQ
Что делает скилл analyse-security?
Performs tracked, evidence-bounded security posture assessment for a project, sub-directory, module, concept, or feature topic with standards mapping and registered report output.
Как установить скилл analyse-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл analyse-security запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic