/rl-protect-edit-profile:rl-protect-edit-profilefrom rl-protect-edit-profile
Creates or modifies rl-protect scanning profiles (JSON) for configuring scan policy, assessment severity levels, governance allow/block rules, and policy overrides.
Ships in rl-protect-edit-profile. 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.
Use this skill when the user wants to create a new profile or change an existing one. Profiles are JSON files that control how rl-protect evaluates packages — what counts as a failure, which packages are always allowed or blocked, and which policy rules are overridden.
The profile is loaded from a file passed to rl-protect scan via --profile={path}. If the user does not specify a path, rl-protect will use its default profile. Read the file before making any changes if it already exists.
rl-profile
.schema — always 1, do not change
.name — human-readable profile name
.info — description string (free text)
.timestamp — ISO-8601, set to current time on every save
.configuration.policy
.min_catalogue — minimum required catalogue level (integer, 1–10)
.rl_scan_level — scan depth level (integer, 1–10)
.rl_auto_approval — auto-approve packages that pass (boolean)
.assessments{} — one entry per check category (see below)
.governance.community — age gates and allow/block pattern lists
.acceptance{} — natural language risk acceptance statements, keyed by assessment category (see below)
.overrides{} — keyed by policy rule ID (SQ- or TH-prefixed; not CVE)
.modeling — threat model: a single free-text prose string giving the AI triager general judgment context (trust boundaries, deployment, priorities). Optional; default absent/empty (see below)
Each assessment can be ignored entirely or configured with per-detection-type severity levels.
Valid severity values: pass | warning | fail
assessments.secrets
.ignored — true suppresses the entire check
assessments.licenses
.ignored — true suppresses the entire check
assessments.vulnerabilities
.ignored
.detections
.mandate — CVEs under active government mandate
.exploit — CVEs with known exploits
.malware — CVEs used in malware campaigns
.critical — CVEs with CVSS ≥ 9.0
assessments.hardening
.ignored
assessments.tampering
.ignored
.ml_hunting — ML-based anomaly detections
assessments.malware
.ignored
.rl_analyst — findings from RL analyst vetting
.rl_scanner — findings from RL scanner
.suspicious — suspicious (unconfirmed) detections
.dependency
.develop — malicious dependency in dev context
.release — malicious dependency in release context
.detections — affects specified malware types
.adware
.riskware
.protestware
.spam
Governance rules control package-level allow and block decisions independently of assessment findings.
governance.community
.min_package_age — minimum days since first package release (integer)
.min_version_age — minimum days since this version was published (integer)
.allow[] — packages always approved regardless of findings
.pattern — PURL pattern (exact or wildcard, e.g. pkg:npm/lodash@*)
.audit.author — who added the rule
.audit.timestamp — when the rule was added
.audit.reason — stated justification
.block[] — packages always rejected regardless of findings
.pattern — PURL pattern
.audit.author — who added the rule
.audit.timestamp — when the rule was added
.audit.reason — stated justification
PURL pattern matching:
pkg:npm/[email protected]pkg:npm/[email protected].*pkg:gem/rack@*pkg:pypi/[email protected]?artifact=flask-3.1.2-py3-none-any.whlAcceptance statements are natural language expressions of risk tolerance that the AI triager uses to automatically accept findings within the stated bounds. They are grouped by assessment category — the same categories as assessments (secrets, licenses, vulnerabilities, hardening, tampering, malware).
acceptance.{category}[]
.enabled — true/false; false suspends the statement without deleting it
.statement — natural language risk tolerance (what the AI reasons against)
.audit.author — who added the statement
.audit.timestamp — ISO-8601, when it was added
.audit.reason — human justification for adding this statement (paper trail)
Example:
"acceptance": {
"vulnerabilities": [
{
"enabled": true,
"statement": "We accept ReDoS vulnerabilities in npm packages. At our request volumes worst case is a ~100ms delay.",
"audit": {
"author": "[email protected]",
"timestamp": "2026-05-22T10:00:00+02:00",
"reason": "Reviewed with security team — no user-controlled input reaches the affected regex paths."
}
}
],
"hardening": [
{
"enabled": true,
"statement": "All hardening findings are acceptable — this is an internal CLI tool, not a public-facing service.",
"audit": {
"author": "[email protected]",
"timestamp": "2026-05-22T10:00:00+02:00",
"reason": "Threat model reviewed — no external attack surface."
}
}
]
}
Valid categories: secrets, licenses, vulnerabilities, hardening, tampering, malware.
Overrides change the effective status of specific policy rule violations by their rule ID.
overrides.{SQxxxxx | THxxxxx}
.enabled — true to activate the override
.blocker — the status to apply instead: pass | fail
.apply_to[] — scope: "organization" | "group" | "any"
.audit.author
.audit.timestamp — must use current timestamp in ISO-8601 format
.audit.reason
Setting blocker to pass means the rule never blocks a scan. Setting it to fail elevates a warning to a failure.
configuration.policy.modeling is a single free-text prose string — the project's threat model. It gives the AI triager general judgment context (the counterpart to acceptance's targeted per-finding rules): which inputs an attacker can control (trust boundaries), the deployment/exposure, and priorities. It is not a rule set — no categories, no audit block, just the string. Default is absent/empty (no threat model).
modeling — a free-text string, e.g.
"Internal CLI tool run by operators. Config files and CLI args are
operator-controlled, not attacker-reachable. No inbound network."
The triager uses it to shape verdicts/severity and, most importantly, trust-boundary reachability (a taint source the model designates operator-controlled makes a finding not-attacker-controllable). It never auto-accepts a finding — that stays acceptance's job.
Trigger: user wants to set, change, or remove the project threat model / "what an attacker can control" context.
configuration.policy.modeling (overwrite any existing value). If the user describes their deployment loosely, compose a concise paragraph covering deployment, trust boundaries (which inputs are attacker-controlled vs operator-controlled), and priorities.modeling key (or set it to "").modeling must be a string).Trigger: user wants to create a profile from scratch, or no profile file exists.
Steps:
schema: 1 and the current timestamp.Default values for new profiles:
| Field | Default |
|---|---|
min_catalogue | 5 |
rl_scan_level | 5 |
rl_auto_approval | false |
All assessment .ignored | false |
vulnerabilities.detections.mandate | fail |
vulnerabilities.detections.exploit | fail |
vulnerabilities.detections.malware | fail |
vulnerabilities.detections.critical | fail |
malware.rl_analyst | fail |
malware.rl_scanner | fail |
malware.suspicious | warning |
malware.dependency.release | fail |
malware.dependency.develop | warning |
min_package_age | 90 |
min_version_age | 3 |
Trigger: user wants to change what counts as a failure or warning for a specific check, or wants to ignore a check entirely.
Steps:
pass, warning, or fail)..timestamp to the current time in ISO-8601 format.Output summary format:
### Profile updated — {profile name}
| Assessment | Detection | Previous | New |
|---|---|---|---|
| {assessment name} | {detection type or "ignored"} | {old value} | {new value} |
Trigger: user wants to always allow or always block a specific package or version range.
Steps:
audit.author from context if known, otherwise ask. Prefer emails. Set audit.timestamp to the current time in ISO-8601 format.allow[] or block[])..timestamp and write the file.Output summary format:
### Governance rule added — {profile name}
| Field | Value |
|---|---|
| Action | {Allow / Block} |
| Pattern | {purl pattern} |
| Reason | {reason} |
| Author | {author} |
Trigger: user wants to remove an existing allow or block rule.
Steps:
.timestamp and write the file.Trigger: user wants to express a risk tolerance that the AI triager should apply automatically.
Steps:
acceptance.{category}[] with enabled: true and audit fields populated. Set audit.timestamp to the current ISO-8601 time..timestamp and write the file.Output summary format:
### Risk acceptance statement added — {profile name}
| Field | Value |
|---|---|
| Category | {category} |
| Statement | {statement} |
| Reason | {reason} |
| Author | {author} |
Trigger: user wants to suspend or permanently remove an acceptance statement.
Steps:
enabled: false and confirm. The statement remains in the file but will be ignored by the triager..timestamp and write the file.Trigger: user wants to suppress or downgrade a specific policy rule violation by its SQ rule ID.
Steps:
pass or warning), the scope (organization, group, or any), and a reason.enabled: true, populate the audit fields, and update .timestamp in ISO-8601 format.Output summary format:
### Policy override saved — {profile name}
| Field | Value |
|---|---|
| Rule | {SQxxxxx | THxxxxx} |
| Overridden to | {pass / warning} |
| Scope | {organization / group / any} |
| Reason | {reason} |
| Author | {author} |
Trigger: user wants to review what is currently configured in the profile.
Read the profile file and present it in this format:
### Profile — {name}
**Scan settings**
| Setting | Value |
|---|---|
| Min catalogue level | {min_catalogue} |
| Scan level | {rl_scan_level} |
| Auto-approval | {Yes / No} |
**Assessment configuration**
| Assessment | Ignored | Detection severities |
|---|---|---|
| Secrets | {Yes/No} | — |
| Licenses | {Yes/No} | — |
| Vulnerabilities | {Yes/No} | mandate: {v} · exploit: {v} · malware: {v} · critical: {v} |
| Hardening | {Yes/No} | — |
| Tampering | {Yes/No} | ml_hunting: {v} |
| Malware | {Yes/No} | analyst: {v} · scanner: {v} · suspicious: {v} · dep/release: {v} · dep/develop: {v} |
**Governance**
- Min package age: {N} days · Min version age: {N} days
- Allow rules: {N} · Block rules: {N}
**Risk acceptance:** {N} statements across {N} categories
**Policy overrides:** {N} active
Follow with a table of governance rules, acceptance statements, and overrides if any exist.
.timestamp to the current ISO-8601 time on every write..schema to any value other than 1.reason. Do not allow empty reason strings.pass, warning, or fail, reject it and list the valid options.reason in audit — the statement captures the tolerance, the reason captures the business justification.secrets, licenses, vulnerabilities, hardening, tampering, malware. Reject any other category name.The report's profile editor gates every save through a single validator. Hold conversational edits to the same bar, so a change made here can never produce a profile the editor — or rl-protect scan — would reject.
After writing the file, validate it:
Run the validator (authoritative). It ships with the rl-appsec-agent plugin. If that plugin is installed, locate its scripts/validator.py and run:
python {path}/rl-appsec-agent/scripts/validator.py {profile_path}
Exit 0 prints profile is valid; exit 1 lists every problem. Fix each and re-run until it passes.
If the validator is not reachable, self-check against the same invariants:
schema is 1; configuration.policy is present.pass/warning/fail. Detection severities may be omitted (the scanner's built-in level applies) but never set to anything else.ignored.min_catalogue/rl_scan_level are integers 1–10; min_package_age/min_version_age are non-negative integers.pkg: PURL pattern (only * is a wildcard) and an audit.author.statement and an audit.author.SQ##### or TH##### code (CVE ids can't be overridden — accept those), blocker is pass or fail, and audit has both a reason and an author.Never leave the user with a profile that fails validation.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub reversinglabs/rl-protect-skills --plugin rl-protect-edit-profileOther plugins' skills for the same job