/rp1-base:analyse-securityfrom rp1-base
Performs tracked, evidence-bounded security posture assessment for a project, sub-directory, module, concept, or feature topic with standards mapping and registered report output.
Ships in rp1-base. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
Before emitting the first status:
TARGET_TOPIC to TOPIC when non-empty; otherwise set it to whole project.REPORT_ID from FEATURE_ID when non-empty; otherwise derive it from TOPIC. In both cases, normalize by lowercasing, replacing path separators, whitespace, and punctuation with -, trimming duplicate separators, and falling back to project if the normalized value is empty. If TOPIC is empty and FEATURE_ID is empty, set REPORT_ID to project.TARGET_TOPIC as the assessment scope selector. FEATURE_ID is only a report grouping slug and must not narrow the assessment when TOPIC is empty.OUTPUT_PATH to security/{REPORT_ID}/report.md and OUTPUT_ABSOLUTE_PATH to {workRoot}/{OUTPUT_PATH}.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}"}'.
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".
prepare_context running. Verify {kbRoot} exists. If missing, emit failed status and tell the user to run /knowledge-build.analyse running 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 %}
{OUTPUT_ABSOLUTE_PATH} and return exactly OUTPUT_PATH: {OUTPUT_PATH}. Do not infer, rewrite, or register any other path.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"}'
register completed and report the final path to the user.| 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 |
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (rp1-run/rp1) — no native marketplace selected
npx claudepluginhub p/rp1-run-rp1-base-plugins-base-221 skills in this plugin
/artifact-templatesAgent-only canonical output templates for rp1 artifacts. Load when producing structured markdown to ensure format consistency and routing metadata./code-commentsExtract comment locations from code files for analysis. Use when cleaning comments, auditing documentation, or analyzing comment patterns across languages./deep-researchAutonomous deep research on codebases and technical topics with structured report output via map-reduce explorer architecture./fix-mermaidValidates and repairs mermaid diagrams in markdown files. Scans for mermaid blocks, validates syntax, and auto-repairs common errors./generate-user-docsSynchronizes user-facing documentation with the current knowledge base through validate -> stale gate -> scan -> approval -> process orchestration./guideAsk about rp1 capabilities, discover skills, and get workflow guidance.Other plugins' skills for the same job