audit-report
Skill2 starsChanged 7 months agoApache-2.0Archived repositoryView on GitHub
Generate audit reports and compliance trails using Harness audit trail data via MCP v2 tools. Track user actions, resource changes, authentication events, and access patterns across accounts, organizations, and projects. Use when asked to audit activity, generate compliance reports, investigate security incidents, review user actions, check change logs, or produce SOC2/GDPR/HIPAA audit evidence. Trigger phrases: audit report, audit trail, compliance audit, user activity log, change log, access audit, security investigation, who changed what, audit events.
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 150
Start with a broader time range and no filters
- Distinctive: line 151
Verify the org_id and project_id scope -- account-level events require no org/project filter
- Distinctive: line 152
Remove search_term to confirm events exist, then re-add filters
- Distinctive: line 156
Check both email and username formats for the user
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Audit Report Skill
Generate audit reports and compliance trails using Harness MCP v2 tools.
MCP v2 Tools Used
harness_listwithresource_type: "audit_event"-- list audit events with filtersharness_describewithresource_type: "audit_event"-- discover available filters and fields
Audit events are read-only. You can list and filter them but cannot create, update, or delete them.
Instructions
Step 1: Discover Available Filters
harness_describe(resource_type="audit_event")Understand the available filter parameters before querying.
Step 2: List Audit Events
harness_list(
resource_type="audit_event",
org_id="<org>", # optional - scope to organization
project_id="<project>", # optional - scope to project
search_term="<user or resource>", # optional
page=0,
size=100
)Step 3: Filter by Action Type
Filter results by these standard action types:
| Action | Description |
CREATE | Resource creation |
UPDATE | Resource modification |
DELETE | Resource deletion |
LOGIN | User authentication |
LOGOUT | Session termination |
ACCESS | Resource access |
EXECUTE | Pipeline execution |
Step 4: Filter by Resource Type
Common resource types in audit events:
| Resource Type | Examples |
PIPELINE | Pipeline create, update, delete |
SECRET | Secret access, rotation, deletion |
CONNECTOR | Connector modifications |
SERVICE | Service definition changes |
ENVIRONMENT | Environment configuration changes |
USER | User management actions |
ROLE | Role assignment changes |
USER_GROUP | Group membership changes |
Step 5: Analyze and Correlate
- Group events by user to identify activity patterns
- Group events by resource to track change history
- Correlate timestamps to reconstruct incident timelines
- Flag anomalies (off-hours activity, unusual access patterns, privilege escalation)
Step 6: Generate Report
Format findings using the templates in references/report-templates.md.
For report templates (General, User Activity, Security) and compliance framework mappings (SOC 2, GDPR, HIPAA), consult references/report-templates.md.
Examples
Generate a 30-day audit report
/audit-report
Generate an audit report for the last 30 daysInvestigate a specific user
/audit-report
What has john.doe@company.com been doing in the last 7 days?Track production changes
/audit-report
Show all pipeline and environment changes in the production project this monthSecurity investigation
/audit-report
Show all secret access events and privilege changes from last weekCompliance evidence
/audit-report
Generate SOC2 audit evidence for Q4 covering access control and change managementError Handling
| Error | Cause | Solution |
| No audit events returned | Time range too narrow or wrong scope | Broaden time range; verify org_id/project_id |
| Access denied | User lacks audit view permissions | Request core_audit_view permission |
| Pagination incomplete | More events than page size | Increment page parameter until all pages fetched |
| Search term returns nothing | User ID format mismatch | Try email, username, and display name variants |
Performance Notes
- Paginate through all results before generating the report. Incomplete data leads to inaccurate audit trails.
- Cross-reference events across scopes (account, org, project) for a complete picture. Do not skip scope levels.
- For compliance reports, verify every claim against actual audit data. Do not infer or assume activity that is not in the logs.
Troubleshooting
No Events Found
- Start with a broader time range and no filters
- Verify the org_id and project_id scope -- account-level events require no org/project filter
- Remove search_term to confirm events exist, then re-add filters
Missing User Activity
- Check both email and username formats for the user
- Service account activity may appear under a different principal name
- API key usage may not show as the human user
Incomplete Audit Trail
- Paginate through all results -- check if
sizereturned equals thesizerequested (more pages likely) - Account-level events are separate from org/project events -- query at the right scope
- Some event types may require specific permissions to view
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- harness/harness-skills★ 12798% same
Wrote their own version · 3
- ChariereFiedler/ronce-racine★ 8same name
- bbeliso/belisodw-★ 0same name
- mqmalagris/agent-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/harness.mdcCursor rule
- analyze-costsSkill
- chaos-experimentSkill
- create-agentSkill
- create-agent-templateSkill
- create-connectorSkill
- create-environmentSkill
- create-infrastructureSkill
- create-pipelineSkill
- create-pipeline-v1Skill
- create-policySkill
- create-secretSkill
- create-serviceSkill
- create-templateSkill
- create-triggerSkill
- debug-pipelineSkill
- dora-metricsSkill
- gitops-statusSkill
- manage-delegatesSkill
- manage-feature-flagsSkill
- manage-rolesSkill
- manage-usersSkill
- migrate-pipelineSkill
- run-pipelineSkill
- scorecard-reviewSkill
- security-reportSkill
- template-usageSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

