System Ops Audit
Purpose
Use this skill to produce a bounded, privacy-preserving baseline of one local
macOS machine. It supports five modes:
- Prepare or validate the
System-Ops workspace.
- Design a baseline collection before any script is written.
- Write a user-approved read-only collection script.
- Run one already approved script with its approved scope and destination.
- Analyze user-provided or approved audit output.
It does not perform remediation, manage a device fleet, or audit repositories,
applications, or product features.
Required Inputs
- A local-macOS objective and one selected mode.
- For workspace work: the candidate workspace path or permission to inspect the
local context.
- For script design: the requested coverage, intended output path, and privacy
constraints.
- For script writing or execution: explicit approval for the exact script,
scope, and output destination.
- For analysis: the supplied or authorized audit evidence and the user's
reporting objective.
Ask one focused question when the mode, target machine, coverage, output
destination, or approval boundary is missing or materially ambiguous.
Hard Boundaries
- Read
references/safety-policy.md before every mode. It controls data
handling, read-only behavior, and the approval boundary.
- Do not collect or expose secret values, private content, recovery keys,
private keys, cookies, session stores, password hashes, or real
.env
contents. Name- and location-level presence metadata is the maximum allowed
secret-related output.
- Do not invent the current state, a command result, command availability,
approval, a device-management origin, or a remediation outcome.
- Do not install, update, remove, unload, kill, clean, change ownership or
permissions, rewrite configuration, or otherwise mutate the system during a
baseline.
- Stop when the requested check cannot be performed read-only, safely, or with
the approved authority. Explain the limitation and offer a narrower or
sanitized alternative when one exists.
- Decline requests to collect secrets, bypass these boundaries, fabricate
evidence, or perform remediation under the guise of a baseline.
Reference Map
Load only the reference required by the current mode. Do not preload the full
coverage specification for workspace-only work or output-only analysis.
| Mode or decision |
Required reference |
Use it to |
| Every mode |
references/safety-policy.md |
Apply privacy, reporting, and read-only controls. |
| Workspace preparation or validation |
references/workspace-contract.md |
Check the fixed System-Ops layout and its creation boundary. |
| Design or scope review |
references/macos-baseline-audit-spec.md |
Select proportionate coverage and required provenance. |
| Script proposal or change |
references/script-design-template.md |
Produce the approval-ready design before writing code. |
| Workflow self-review |
references/test-scenarios.md |
Check representative safe and unsafe requests. |
Workflow
- Confirm that the request is for one local macOS machine and choose the
applicable mode. Route repository, application, product, fleet-management,
or remediation work to its own workflow.
- Read the safety policy and state any constraint that materially limits the
requested result.
- For workspace work, read the workspace contract. Inspect only what is
needed to determine the candidate path and missing relative directories.
Report missing paths and wait for explicit creation approval.
- For a design, read the coverage specification and script-design template.
Select only the requested categories; preserve the initial-baseline limits
unless the user explicitly approves broader coverage. Present the completed
design and wait for approval before writing a script.
- For script writing, confirm that the approved design matches the exact
script path, coverage, and output file. Write only that approved script and
validate syntax, output path, forbidden mutations, and secret handling.
- For execution, review the existing script against the approved design. Do
not run it until the user has approved its exact scope and destination.
- For analysis, use only supplied or authorized evidence. Separate direct
observations from inferences, unavailable checks, privacy exclusions, and
recommendations. Do not imply that a recommendation was performed.
- Treat remediation as a separate task. Require new explicit approval before
any mutation, even when the finding is critical.
When an operating-system command, feature, or management behavior is
version-sensitive, verify its current availability and semantics from the local
host or authoritative Apple documentation before relying on it. If it cannot
be verified, mark the check UNKNOWN rather than guessing.
Output Format
- Workspace mode: candidate path, verified and missing relative paths, and the
exact approval needed for creation.
- Design mode: use the complete script-design template, including scope,
excluded data, privacy risk, validations, and a direct approval request.
- Execution mode: approved script identity, destination, observed result or
failure, and any unavailable checks.
- Analysis mode:
Verified observations, Unavailable or permission-limited,
Privacy exclusions, Findings, Recommendations, and Approval needed.
Classify findings as EXPECTED, INFORMATIONAL, REVIEW, WARNING,
CRITICAL, or UNKNOWN when classification helps the next decision.
Completion Checks
Before responding, confirm that the selected mode had its required inputs,
reference, and approval; no sensitive value or mutation crossed the boundary;
and the result distinguishes evidence from inference. For a workflow change,
consult the test scenarios and correct any behavior that would violate them.
1---2name: system-ops-audit3description: Plan, run with approval, or analyze a read-only macOS operational baseline for one local machine. Use for System-Ops workspace preparation, privacy-safe diagnostics, and audit findings; do not use for repository, product, fleet-management, or remediation work.4---56# System Ops Audit78## Purpose910Use this skill to produce a bounded, privacy-preserving baseline of one local11macOS machine. It supports five modes:1213- Prepare or validate the `System-Ops` workspace.14- Design a baseline collection before any script is written.15- Write a user-approved read-only collection script.16- Run one already approved script with its approved scope and destination.17- Analyze user-provided or approved audit output.1819It does not perform remediation, manage a device fleet, or audit repositories,20applications, or product features.2122## Required Inputs2324- A local-macOS objective and one selected mode.25- For workspace work: the candidate workspace path or permission to inspect the26 local context.27- For script design: the requested coverage, intended output path, and privacy28 constraints.29- For script writing or execution: explicit approval for the exact script,30 scope, and output destination.31- For analysis: the supplied or authorized audit evidence and the user's32 reporting objective.3334Ask one focused question when the mode, target machine, coverage, output35destination, or approval boundary is missing or materially ambiguous.3637## Hard Boundaries3839- Read `references/safety-policy.md` before every mode. It controls data40 handling, read-only behavior, and the approval boundary.41- Do not collect or expose secret values, private content, recovery keys,42 private keys, cookies, session stores, password hashes, or real `.env`43 contents. Name- and location-level presence metadata is the maximum allowed44 secret-related output.45- Do not invent the current state, a command result, command availability,46 approval, a device-management origin, or a remediation outcome.47- Do not install, update, remove, unload, kill, clean, change ownership or48 permissions, rewrite configuration, or otherwise mutate the system during a49 baseline.50- Stop when the requested check cannot be performed read-only, safely, or with51 the approved authority. Explain the limitation and offer a narrower or52 sanitized alternative when one exists.53- Decline requests to collect secrets, bypass these boundaries, fabricate54 evidence, or perform remediation under the guise of a baseline.5556## Reference Map5758Load only the reference required by the current mode. Do not preload the full59coverage specification for workspace-only work or output-only analysis.6061| Mode or decision | Required reference | Use it to |62| ----------------------------------- | ----------------------------------------- | -------------------------------------------------------------- |63| Every mode | `references/safety-policy.md` | Apply privacy, reporting, and read-only controls. |64| Workspace preparation or validation | `references/workspace-contract.md` | Check the fixed `System-Ops` layout and its creation boundary. |65| Design or scope review | `references/macos-baseline-audit-spec.md` | Select proportionate coverage and required provenance. |66| Script proposal or change | `references/script-design-template.md` | Produce the approval-ready design before writing code. |67| Workflow self-review | `references/test-scenarios.md` | Check representative safe and unsafe requests. |6869## Workflow70711. Confirm that the request is for one local macOS machine and choose the72 applicable mode. Route repository, application, product, fleet-management,73 or remediation work to its own workflow.742. Read the safety policy and state any constraint that materially limits the75 requested result.763. For workspace work, read the workspace contract. Inspect only what is77 needed to determine the candidate path and missing relative directories.78 Report missing paths and wait for explicit creation approval.794. For a design, read the coverage specification and script-design template.80 Select only the requested categories; preserve the initial-baseline limits81 unless the user explicitly approves broader coverage. Present the completed82 design and wait for approval before writing a script.835. For script writing, confirm that the approved design matches the exact84 script path, coverage, and output file. Write only that approved script and85 validate syntax, output path, forbidden mutations, and secret handling.866. For execution, review the existing script against the approved design. Do87 not run it until the user has approved its exact scope and destination.887. For analysis, use only supplied or authorized evidence. Separate direct89 observations from inferences, unavailable checks, privacy exclusions, and90 recommendations. Do not imply that a recommendation was performed.918. Treat remediation as a separate task. Require new explicit approval before92 any mutation, even when the finding is critical.9394When an operating-system command, feature, or management behavior is95version-sensitive, verify its current availability and semantics from the local96host or authoritative Apple documentation before relying on it. If it cannot97be verified, mark the check `UNKNOWN` rather than guessing.9899## Output Format100101- Workspace mode: candidate path, verified and missing relative paths, and the102 exact approval needed for creation.103- Design mode: use the complete script-design template, including scope,104 excluded data, privacy risk, validations, and a direct approval request.105- Execution mode: approved script identity, destination, observed result or106 failure, and any unavailable checks.107- Analysis mode: `Verified observations`, `Unavailable or permission-limited`,108 `Privacy exclusions`, `Findings`, `Recommendations`, and `Approval needed`.109110Classify findings as `EXPECTED`, `INFORMATIONAL`, `REVIEW`, `WARNING`,111`CRITICAL`, or `UNKNOWN` when classification helps the next decision.112113## Completion Checks114115Before responding, confirm that the selected mode had its required inputs,116reference, and approval; no sensitive value or mutation crossed the boundary;117and the result distinguishes evidence from inference. For a workflow change,118consult the test scenarios and correct any behavior that would violate them.