Run or refresh an ISO/IEC 27001:2022 information security risk assessment and treatment (6.1.2, 6.1.3, 8.2, 8.3) in devguard, including the Statement of Applicability. Finds risks in assets, suppliers, incidents and findings, proposes ratings on the organization's own criteria, drafts the treatment plan and its actions, links controls, proposes applicability with justifications, and prepares a risk review. The agent drafts and proposes; risk owners rate, accept and approve. Use when someone a...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Risk Assessment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/devguardch-risk-assessment)
---
name: risk-assessment
description: Run or refresh an ISO/IEC 27001:2022 information security risk assessment and treatment (6.1.2, 6.1.3, 8.2, 8.3) in devguard, including the Statement of Applicability. Finds risks in assets, suppliers, incidents and findings, proposes ratings on the organization's own criteria, drafts the treatment plan and its actions, links controls, proposes applicability with justifications, and prepares a risk review. The agent drafts and proposes; risk owners rate, accept and approve. Use when someone asks to assess or re-assess risks, update the treatment plan, prepare a risk review, or prepare the SoA.
license: MIT
---
# Risk assessment
ISO/IEC 27001 asks for a risk assessment that gives consistent, valid and comparable results (6.1.2), a treatment plan and a Statement of Applicability (6.1.3), the assessment repeated at planned intervals and when significant changes are proposed or occur (8.2), and the plan carried out with its results kept (8.3). Each risk owner approves the plan for their risks and accepts what is left. This skill does the groundwork with the data the organization already keeps in devguard and hands every rating and every decision to a person.
## Rules
These hold for the whole session, whatever the user asks.
1. **Propose, never decide.** Ratings, the treatment choice and the treatment plan go to devguard as `RISK_ASSESSMENT` proposals, and applicability as `SOA_APPLICABILITY` proposals. A person accepts or rejects each one on the Proposals page. Never accept a residual risk, approve the SoA, decide a review item or finish a review. devguard refuses these from an agent; do not look for another way in.
2. **Use the organization's criteria.** Read them first and rate only on their scales. Never invent a scale, and never change the criteria: that is a person's decision.
3. **Write only what this skill needs.** Besides proposals, the only writes are: new risks, treatment actions, links between risks, controls, assets and actions, threat and vulnerability classes, and a new risk review. Nothing else, even when a fix elsewhere is one call. Report it instead.
4. **Ask before every write.** Show what you are about to write, as a table or the full text, and wait for an explicit yes in this conversation. A yes covers that batch only.
5. **Every rating has a reason.** Name the source of each rating, such as an incident, a finding, an asset's CIA rating or a failing check, by the ID the app displays. Open the `rationale` of each proposal with "Drafted by an AI agent from" and those IDs.
6. **Do not rate risk away.** Rate what the evidence shows, not what gets under the threshold. Rate the residual risk on the controls implemented today. In the treatment plan, state the level the planned actions are meant to reach, and each action with its due date ("by 31 March, RTA-019"), never in the present tense. Where the residual risk is above the acceptance threshold, the plan says why the owner accepts it and until when. When the actions are done, re-rate the residual risk and ask the owner to accept it again.
7. **Do not copy the standards.** ISO text is copyrighted. Describe a control in your own words and cite its number.
8. **Language.** Talk in the user's language. Write anything that goes into devguard in the language of the organization's records.
## Access
Connect the devguard MCP server at `https://app.devguard.ch/api/mcp/` and sign in with "Allow read and write". Writes over MCP need a paid devguard plan. With read-only access, the analysis and the drafts still work, but the proposals have to be entered by hand. If the devguard tools are missing, ask the user to connect devguard as described in https://docs.devguard.ch/settings/integrations/mcp (with the devguard plugin in Claude Code, `/mcp` signs in).
- The server lists ready-made read tools for common questions. This skill uses `getRiskCriteria` (the scales, the levels and which are acceptable), `listPeople` (who holds which role), `listSoaVersions` and `getSoaVersion` (the approved SoA). `searchApi` does not find these, because they are not API operations.
- For everything else, `searchApi` finds operations by keyword and returns each one's name and input schema. Search before each new kind of call. Never guess an operation name or a field.
- `readApi` runs a read and `writeApi` a write. The connection fills in the organization.
- Lists come in pages. Ask for `limit: 100` and read every page before you count or conclude anything.
- The API returns bare numbers. Write an ID the way the app shows it, so a search in the app finds it: the prefix, then the number padded to three digits.
| Entity | ID | Entity | ID |
| --- | --- | --- | --- |
| Task | TSK-087 | Risk | R-017 |
| Treatment action | RTA-019 | Risk review | RAR-002 |
| Evidence | EV-008 | Access review | EAR-004 |
| Record | RE-003 | Asset | A-022 |
| Incident | INC-001 | Asset review | AAR-001 |
| Supplier | V-014 | Supplier assessment | VA-001 |
| Supplier review | VAR-001 | Integration check | CHK-001 |
Clauses and controls keep the identifier of the standard, such as 6.1.2 or A.5.15.
## Steps
### 1. Set up
Read, from devguard first and then from the user:
- the risk criteria with `getRiskCriteria`: likelihood and impact scales, the levels, which levels are acceptable (that is the acceptance threshold), the matrix that turns likelihood and impact into a level, and the review interval;
- the whole risk register, the treatment actions, and the last risk review and its date;
- the latest approved SoA with `getSoaVersion`, and each control's current applicability from `control.list`;
- what changed since the last review: new assets and suppliers, incidents, audit findings, failing integration checks.
Then ask the user what devguard cannot show: new products, locations, people or customers, new laws or contracts, and changes in what interested parties expect (4.1, 4.2).
### 2. Identify risks
Look for risks in:
- assets, starting with those rated critical for confidentiality, integrity or availability;
- suppliers, starting with those that hold or process the organization's data;
- incidents and findings since the last review, and failing integration checks;
- the changes from step 1;
- the risk templates (`risk.listTemplates`), as a checklist of common risks.
Compare each candidate with the register and drop duplicates. For each new risk, give a name, a description that names the threat, the weakness and the consequence, an owner role, a threat class and a vulnerability class, the affected parties and the linked assets. Opportunities (6.1.1) go in as risks of the opportunity kind.
Show the list. On a yes, create the risks with `risk.create`, or `risk.createFromTemplates` for template risks. devguard creates a risk from an agent unrated, with no treatment: the ratings come in step 3.
### 3. Analyse and evaluate
For each new or changed risk, propose:
- the likelihood and the impact before treatment, on the organization's scales, each with its reason;
- the resulting level from the matrix, and whether it is acceptable;
- a treatment: mitigate, accept, avoid or transfer, with a plan in plain words;
- the likelihood and the impact after treatment, counting only controls implemented today. They cannot be higher than before treatment.
Show a table: risk, ratings before and after, level, acceptable or not, treatment, and the reason. On a yes, call `proposal.create` once per risk, with kind `RISK_ASSESSMENT` and the risk as `targetId`. Send each proposal's `decideAt` link to the owner role of its risk, and once it is accepted, ask that owner to accept the residual risk in devguard (6.1.3 f): only a member of the owner role can. Tell the owner of an already accepted risk that accepting a changed rating or treatment withdraws that acceptance, so they accept the residual risk again.
### 4. Treatment plan
For each risk to mitigate, draft the treatment actions: a name, what is done, an owner role, a due date and a status (planned, in progress or implemented). Link each action to its risk and to the Annex A controls it puts in place (`treatmentActionControl.link`), and link those controls to the risk (`riskControl.mapControlToRisk`). Update the status or due date of an existing action only when its owner confirms it.
`risk.patch` needs the stored values of its required fields sent back, ratings and plan included. Read the risk first and send them back unchanged: devguard refuses a changed rating or plan from an agent, but takes the same value back.
### 5. Statement of Applicability
For each Annex A control, check the applicability against the register and the requirements:
- a control that a risk, a law, a contract or a business need calls for is applicable, and its justification names them;
- a control left out needs a justification that holds, and no risk may depend on it;
- a control marked applicable with nothing implemented and no treatment action is a gap to report.
Show the changes as a table: control, applicable or not, justification, implemented or not. Report any control whose implementation status does not match its treatment actions and evidence, so a person corrects it before approving the new SoA version (6.1.3 d). Necessary controls from outside Annex A (6.1.3 b) go in the treatment plan and the report. On a yes, call `proposal.create` once per change, with kind `SOA_APPLICABILITY`, the control as `targetId` and the `reason`. Marking a control group not applicable marks every control in it, so say so when you propose one. Once the proposals are accepted, a person approves a new SoA version in devguard.
### 6. Risk review
Once the step 3 proposals are decided, create the risk review that records this assessment with `riskReview.create` (8.2 asks to keep the results of each one). A review takes a snapshot of the register when it is created and cannot be refreshed, and a review by risk level skips unrated risks. Each risk's owner decides its item, and the coordinator finishes the review in devguard.
### 7. Report
Summarize for the user:
- the risks added, and the proposals with their decide links;
- every risk whose owner has not yet accepted its treatment and residual risk (6.1.3 f), with the owner role, those above the acceptance threshold first;
- the treatment actions and their due dates;
- the SoA changes proposed, and that a new SoA version needs approval;
- the date of the next review, from the criteria's review interval.
## Done when
- every new or changed risk is in the register with a proposal for its ratings and treatment;
- every risk to mitigate has treatment actions with owners and due dates, linked to its controls;
- every SoA change is proposed with its justification;
- the risk review records the assessment;
- the user has the summary and every decide link.