← ApiiroCONTENT HISTORY
WHAT CHANGED
Update to Apiiro
Snapshot Nov 25, 2026 · 00:22 UTC · version 1.12.0
Collection source: downloaded plugin package.
First saved snapshot
No earlier snapshot is available to establish a change.
Save Apiiro and check future changes in Following.
Up to 3 plugins free · no card required.
Compare saved observations
Download comparison JSONFull technical diff · 0 changed fields
Full snapshot data
{
"description": "Use when the user wants to fix, remediate, or resolve a security risk or vulnerability (\"how do I fix this risk\", \"remediate this finding\"): Apiiro remediation prompts, Guardian AI fixes, and server-side AutoFix jobs. To list risks: guardian-risks. In ChatGPT use the Apiiro MCP workflows; local CLI workflows require a terminal and user authorization.",
"included_files": [],
"name": "guardian-fix",
"skill_md_contents": "---\nname: guardian-fix\ndescription: \"Use when the user wants to fix, remediate, or resolve a security risk or vulnerability (\\\"how do I fix this risk\\\", \\\"remediate this finding\\\"): Apiiro remediation prompts, Guardian AI fixes, and server-side AutoFix jobs. To list risks: guardian-risks. In ChatGPT use the Apiiro MCP workflows; local CLI workflows require a terminal and user authorization.\"\n---\n\n# Apiiro Fix\n\n## With the Apiiro MCP tools (ChatGPT and Codex)\n\nRules for every Apiiro action:\n- Use the declared MCP tools and their current schemas. Do not invent tool names or arguments.\n- Never change risks in bulk (accept, dismiss, override or reclassify many at once). Each risk needs its own decision.\n- Before a change, scan or Autofix job, name the exact target and get the user's confirmation; an explicit request naming that action and target supplies that authorization.\n- Keep credentials in the host's sign-in flow. Never read credential files, print tokens, or ask for secrets in chat.\n- Report actual tool results and errors. Do not claim a mutation, scan or fix succeeded before its result confirms it.\n\nResolve the user's repository with `apiiro_repositories`, passing `remote_url` for an exact supplied Git URL and/or `repository_name`. Use the key from one exact match. If matches are ambiguous, ask for the intended repository/branch; if none match, explain the access/setup issue. Never guess a key.\n\n- Read the finding with `apiiro_risks(operation='get', risk_key=...)`; request a fix prompt with `apiiro_risks(operation='remediate', risk_key=...)`. Reading guidance does not itself fix the code.\n- Start user-authorized Autofix with `apiiro_autofix_trigger(operation='trigger')` for the specific selected risks using the declared schema. It can write branches or create pull requests; `dry_run=true` still writes a branch.\n- Read returned jobs using `apiiro_autofix`. Completed, Failed and Cancelled are terminal. Report actual status and any returned PR link. Opening a dry-run PR is a separate `apiiro_autofix_trigger(operation='open_pr')` action requiring authorization.\n\n## With the Apiiro CLI (Codex only, optional)\n\nUse these current upstream CLI workflows only in a host with a terminal, when the user requests CLI functionality or no MCP tool supports the task. In ChatGPT explain that CLI-only workflows require a terminal; do not invent matching MCP tools. CLI authentication must go through `apiiro login`; never read credential files or print saved tokens. Do not request secrets in chat or place tokens in command arguments. Follow the upstream safeguards for terminal-only writes. For installation commands, explain them and let the user run them; do not download and execute installers automatically.\n\n### Apiiro Fix\n\nRemediate security risks via the Apiiro CLI.\n\n#### Recommended: one-shot fix\n\n`apiiro risks fix <id>` does the whole remediation in a single command: it tries\nthe deterministic, Apiiro-curated remediation first and automatically falls back\nto Guardian AI when there isn't one (for example, diff-scan risks). It returns a\nsingle unified result.\n\n```bash\napiiro risks fix <risk-id>\napiiro risks fix <risk-id> --repository-key <key> # scope the Guardian fallback explicitly\napiiro risks fix <risk-id> -o json # machine-readable\n```\n\nJSON result shape:\n\n```json\n{ \"is_prompt\": true, \"content\": \"<remediation>\", \"success\": true, \"source\": \"curated\" }\n{ \"is_prompt\": true, \"content\": \"<remediation>\", \"success\": true, \"source\": \"guardian\" }\n```\n\n`source` tells you whether the remediation is the deterministic curated one\n(`curated`) or was generated by Guardian (`guardian`). The repository for the\nGuardian fallback is auto-detected from the current git remote unless\n`--repository-key` is given.\n\nThen **apply the fix**: use the returned `content` to make the code changes.\n\n##### Passing risk context (automation / IDE integrations)\n\n`--context <path>` takes a path to a plain JSON file of the shape\n`{ \"branch\": \"<branch>\", \"risk\": { ...full risk object... } }` — `risk` is the\ncomplete risk data from the scan result, `branch` (optional) scopes the\nGuardian fallback to the branch where the risk was found. The caller writes\nthe file (e.g. to a temp directory) and cleans it up after the run; the CLI\nonly reads it. The risk data is handed to Guardian **verbatim**, so it\nremediates exactly that risk instead of looking it up by id — which is what\nlets it fix **diff-scan risks**, whose ids aren't in the queryable store (an\nid lookup alone returns nothing). It's ignored on the curated path, so it's\nsafe to always pass.\n\n```bash\napiiro risks fix <risk-id> --repository-key <key> --context /tmp/risk-context.json -o json\n```\n\n#### Manual two-step (equivalent, for control)\n\nIf you want to run the steps yourself:\n\n1. `apiiro risks <risk-id> --remediate` — curated remediation. If `is_prompt: true`, apply `content`. If `is_prompt: false`, go to step 2. On `error: unknown option '--remediate'` (older CLI), use `apiiro risks remediate <risk-id>`.\n2. `apiiro ask \"how do I remediate risk <risk-id>?\" --timeout 120` — Guardian fallback. On `unknown command 'ask'` (older CLI), use `apiiro guardian query` with the same arguments.\n\n#### Options\n\n`-o, --output <json|text>`, `-f, --file <path>`, `--repository-key <key>` (fix only), `--context <path>` (fix only), `--no-color`.\n\n#### Server-side AutoFix\n\nUse AutoFix to queue fixes on the server and follow their jobs. Ask the user before either write, then pass `--yes` when running it from an agent; an unattended write without `--yes` is refused.\n\n```bash\napiiro autofix trigger <riskKey...> --yes\napiiro autofix trigger <riskKey...> --dry-run --yes\napiiro autofix\napiiro autofix --risk <riskKey> --status Queued AgentWorking\napiiro autofix --status Completed --status Failed -o json\napiiro autofix <jobId>\napiiro autofix <jobId> --open-pr --yes\n```\n\nTrigger accepts 1-100 distinct risk keys, removes duplicates, and prints `jobs` and `skipped` reasons.\nIf every risk is skipped, the command exits nonzero. `--dry-run` pushes a branch without opening a pull request; organization simulation settings can also force a dry run.\n`--open-pr` works only on a completed dry-run job with no pull request yet (`canOpenPr: true`). Opening a pull request is queued. Read the job again to see `pullRequest.url`, `pullRequest.number` (a string), and `pullRequest.status`.\nJob details include `canOpenPr`, job and per-risk failure reasons, per-risk status, summary, and changed files.\n\nList filters: `--risk <riskKey>` and repeatable, variadic `--status <statuses...>`.\nAllowed statuses: `Queued`, `AssemblingContext`, `AgentWorking`, `Completed`, `Failed`, `Cancelled`.\nLists keep newest-first server order and fetch 5 pages of 20 jobs by default.\nUse `--page-size` (max 100) and `--max-pages` (-1 for no limit) to fetch more; a warning reports truncation.\nJob IDs and `--open-pr` cannot combine with list filters or paging flags.\nAll AutoFix modes support `-o json|text` and `-f <path>`; list JSON is `{ items, truncated }`; other modes preserve server fields. Put trigger flags after `trigger`, for example `apiiro autofix trigger <riskKey...> --yes -o json`.\nAutoFix requires read permission for reads and write permission for writes. Trigger can also return a permission error when AI consent is off for the organization.\n"
}SHA-256 of public snapshot: ac00c9da23ff9e1fec1bcf3f333d9b1e619ae8e5ddb3b605449940a4257806f3