analyse-security
FreeNo executable scriptsNot checkedPerforms tracked, evidence-bounded security posture assessment for a project, sub-directory, module, concept, or feature topic with standards mapping and…
by rp1-run★ 38 GitHub starsAbout this skill
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 |
Install analyse-security in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
Bash(echo *)Bash(test *)Bash(rp1 *)FAQ
What does the analyse-security skill do?
Performs tracked, evidence-bounded security posture assessment for a project, sub-directory, module, concept, or feature topic with standards mapping and registered report output.
How do I install the analyse-security skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the analyse-security skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
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…
by 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…
by 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…
by 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…
by Anthropic