Prepare an ISO/IEC 27001:2022 internal audit (clause 9.2) from the ISMS an organization runs in devguard. Drafts the audit programme and plan, runs a pre-audit gap check and a consistency check, writes checklists with interview questions and a sample, drafts graded findings, and drafts the report and the management review input. The agent prepares and proposes; a named internal auditor audits and decides. Use when someone asks to plan, prepare, run or write up an internal audit in devguard, o...
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 Internal Audit?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/devguardch-internal-audit)
---
name: internal-audit
description: Prepare an ISO/IEC 27001:2022 internal audit (clause 9.2) from the ISMS an organization runs in devguard. Drafts the audit programme and plan, runs a pre-audit gap check and a consistency check, writes checklists with interview questions and a sample, drafts graded findings, and drafts the report and the management review input. The agent prepares and proposes; a named internal auditor audits and decides. Use when someone asks to plan, prepare, run or write up an internal audit in devguard, or asks what an auditor would find.
license: MIT
---
# Internal audit
An internal audit under ISO/IEC 27001 clause 9.2 is done by a person. That person interviews, looks at evidence, takes samples, grades findings and signs the report. This skill does the preparation around them with the data the organization already keeps in devguard, and puts everything it drafts in front of them before it reaches the record. It follows ISO 19011:2018 for planning, conducting and reporting an audit.
## Rules
These hold for the whole session, whatever the user asks.
1. **Propose, never decide.** Findings and management review inputs go to devguard as proposals. A person accepts or rejects each one on the Proposals page, and devguard records who decided and when. Never approve, accept, verify, close, conclude or mark anything as reviewed, even where devguard would let the call through.
2. **Read anything, write only the audit.** The only writes this skill makes are:
- creating or updating an audit of type `INTERNAL`: name, dates, auditor, objectives, scope, criteria, framework and scope controls;
- `proposal.create` with kind `FINDING` or `MANAGEMENT_REVIEW_INPUT`.
Never write to evidence, policies, risks, controls, the SoA, tasks or any other register, even when a gap is obvious and the fix is one call. Report it instead.
3. **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.
4. **Impartiality.** Nobody audits their own work (ISO/IEC 27001 9.2.2). Check it before planning (step 2), and again whenever the scope or the auditor changes.
5. **Every statement has a source.** A gap, a conflict or a finding names the devguard records it rests on, by the ID the app displays. What devguard cannot show, such as whether people follow a policy, becomes an interview question, never a finding.
6. **Do not soften.** Grade by what the evidence shows. An internal audit report without a single finding is the first thing a certification auditor distrusts.
7. **Mark what an agent drafted.** devguard logs every write with the client that made it. In addition, open the `rationale` of each proposal with "Drafted by an AI agent from" and the IDs it used.
8. **Do not copy the standards.** ISO text is copyrighted. Describe a requirement in your own words and cite its clause or control number.
9. **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, steps 4 to 6 and the drafts still work, but the audit and 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 two of them: `listPeople` (each person with the business roles they hold) and `listDeadlines` (what is overdue or due soon). `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 9.2.2 or A.5.15.
## Steps
### 1. Set up
Find out, from devguard first and then from the user:
- the ISO/IEC 27001:2022 framework adoption and the latest approved SoA version;
- the internal audits that already exist, archived ones included, and the findings they left;
- who audits: name, devguard member and business roles;
- the audit dates, and the date of the next certification or surveillance audit, which the internal audit has to come before.
### 2. Check impartiality
For each auditor, find the business roles they hold with `listPeople`. For each clause and control in the planned scope, collect the owner and approver roles on the linked policies, evidence, risks and treatment actions. List every control where the auditor holds one of those roles, and propose who audits it instead. In a small team that is usually a cross-audit, where each person audits the other's areas. If nobody is independent of an area, say so, and suggest an impartiality statement in the audit's objectives that names the limitation and how it is handled.
### 3. Programme and plan
Propose the scope from the SoA and the risk register:
- clauses 4 to 10, every year;
- Annex A: each applicable control at least once in the three-year certification cycle;
- each year in addition: controls linked to risks above the organization's acceptance threshold, controls with open findings or failing integration checks, and controls whose policies were rewritten since the last audit.
Show it as a table: control, why it is in this year, and the year for the rest. Then draft the objectives, the scope, the criteria (the standard, the organization's policies, the SoA version) and a plan: date, area, auditee role and auditor for each area.
On a yes, create or update one audit per year, of type `INTERNAL`, with its scope controls. An audit covers one framework, so ISO/IEC 27701 or any other standard gets its own audit.
### 4. Pre-audit gap check
Read only. Start with `listDeadlines` for what is overdue. For the clauses and controls in scope, list:
- controls with no linked evidence, or with evidence that is not done, not approved or past its review date;
- policies that are not published, past their review date, or mapped to no control;
- controls marked partial, none or unknown without a gap note, and SoA exclusions without a justification;
- integration checks that are not active, and active ones that fail;
- overdue tasks, treatment actions, risk reviews, access reviews, asset reviews, supplier reviews and trainings;
- findings from earlier audits past their deadline, and closed ones with no effectiveness check.
Give one table per clause or Annex A theme: the item, what is wrong, the IDs and the owner role. This is the auditor's preparation list, not a list of findings. A gap becomes a finding only once the auditor confirms it in the audit.
### 5. Consistency check
For each control in scope, read the policy sections mapped to it, the linked risks with their treatment, the treatment actions, the evidence descriptions and the SoA justification. Look for:
- a policy that promises what the records do not show, such as a quarterly review whose last record is 14 months old;
- two policies that set different values for the same thing, such as a retention period, a review interval or a password length;
- a risk treated by a control that the SoA marks not applicable;
- a treatment action marked done while the risk keeps its rating from before treatment;
- a control marked fully covered with nothing linked to it.
For each one, give both sources with IDs, what conflicts, and a question for the interview. The auditor decides which ones become findings.
### 6. Checklists, interview questions and sample
For each area and auditee role, write a working paper the auditor fills in during the audit:
| Clause or control | Requirement, in your own words | What devguard shows (IDs) | Questions for the role | Ask to see | Sample | Result |
| --- | --- | --- | --- | --- | --- | --- |
Ask open questions ("How do you decide…", "Show me the last…"), not yes-or-no ones. For each sample, give the population (for example, 23 access changes in the audit period), the sample size, how the items were picked (by risk, or at random, with the method named) and the IDs picked. Leave the Result column empty for the auditor.
Write the working papers as a document the auditor keeps (Markdown, or Word where the client can produce it), not into devguard. Once completed, the auditor attaches them to the audit as evidence.
### 7. Findings
Draft findings from the auditor's notes and the gaps they confirmed, never from your own checks alone. For each finding, give a short name, the requirement (clause or control), what was found, the evidence with IDs, and a proposed grade with the reason:
- **Major nonconformity:** a requirement not met at all, or a failure that puts in doubt whether the ISMS achieves its intended results. Several minor nonconformities against the same requirement can add up to one.
- **Minor nonconformity:** a single, contained failure to meet a requirement.
- **Observation:** not a nonconformity yet, but it could become one.
- **Opportunity for improvement:** the requirement is met and could be met better.
Leave cause, correction and measures empty: the owner of the area analyses the cause, not the auditor. Propose that owner as `assigneeBusinessRoleId`, with a deadline. Show the list. On a yes, call `proposal.create` once per finding, with kind `FINDING`, the `auditId` and the `controlId`, and give the user each proposal's `decideAt` link. A finding becomes a record, and can carry a task, only when a person accepts it.
### 8. Report and management review input
Draft the report text:
- objectives, scope, criteria, the audit period and the auditors;
- the method and the sample;
- the findings by grade, and what was sampled without a finding;
- a conclusion on whether the ISMS conforms to the organization's own requirements and to the standard, and whether it is effectively implemented and maintained (9.2.1).
devguard does not let an agent write an audit's conclusion, so give it to the auditor as text to edit and enter. Once the conclusion is in, the audit is signed off and devguard refuses an agent's changes to it, so finish every write to the audit before then. Then propose a `MANAGEMENT_REVIEW_INPUT` (title, summary, period) with the results for the management review (9.3). Once the findings are accepted and the conclusion is entered, the auditor exports the report as a PDF from the audit reports in devguard.
## Done when
- impartiality is checked, and each conflict is resolved or recorded;
- the audit exists with its scope, objectives, criteria and plan;
- the auditor has the gap list, the consistency list and a working paper for each area;
- every finding is proposed, each with its decide link;
- the report draft is with the auditor and the management review input is proposed.