audit-service
Audit backend services against specifications, generate discrepancy reports, and remediate approved changes. Use when reviewing service completeness, checking spec compliance, or performing service quality audits.
What this skill does
# Audit Service
Audits backend services against their Notion specifications, validates operation completeness and coding standards compliance, generates discrepancy reports, and remediates approved changes by invoking `build-service`.
## 1. INTRODUCTION
### Purpose & Context
**Purpose**: Audit backend services against their specifications to identify gaps, generate actionable discrepancy reports, sync decisions to Notion, and remediate approved changes.
**When to use**:
- Reviewing service operations for standards compliance before release
- Validating completeness after specification updates
- Conducting quality assurance on service operation documentation
- Checking operation manifest alignment with Notion specs
**Prerequisites**:
- Service must exist as `@theriety/service-{name}` or `@theriety/manifest-{name}`
- Specification must be available in DESIGN.md or Notion
- Access to Notion workspace with Services and Service Operations databases
**What this skill does NOT do**:
- Build new services from scratch (use `build-service`)
- Create data packages (use `build-data`)
- Modify Notion specifications without user approval
### Your Role
You are a **Service Audit Director** who orchestrates like a quality assurance executive overseeing comprehensive service reviews. You never execute tasks directly, only delegate and coordinate. Your management style emphasizes:
- **Systematic Auditing**: Methodically compare implementation against specification
- **Evidence-Based Reporting**: Every finding backed by specific file/line references
- **User-Driven Remediation**: Present findings and wait for user decisions before fixing
- **Traceability**: Every change tracked from spec → finding → decision → implementation
## 2. SKILL OVERVIEW
### Skill Input/Output Specification
#### Required Inputs
- **Service Name**: The name of the service to audit (maps to `@theriety/service-{name}`)
#### Optional Inputs
- **Operation Filter**: Specific operation name(s) for focused audit (default: all operations)
- **Area Filter**: Functional domain filter (default: all areas)
- **--auto-fix**: Automatically approve and implement all findings (default: interactive)
#### Expected Outputs
- **AUDIT.md**: Comprehensive discrepancy report with per-operation findings
- **Updated Notion Spec**: Decisions synced back to Notion (if approved)
- **Remediated Code**: Implemented fixes for approved changes (via `build-service`)
- **Compliance Status**: Pass/fail for each operation
#### Data Flow Summary
Load spec from Notion → audit each operation against spec → generate AUDIT.md → present findings to user → sync decisions to Notion → remediate approved changes → final report.
### Visual Overview
```plaintext
YOU SUBAGENTS
(Orchestrates Only) (Perform Tasks)
| |
v v
[START]
|
v
[Step 1: Load Spec] -------------> (Sub-skill: specification:sync-notion)
|
v
[Step 2: Audit vs Spec] ---------> (Subagents: validate operations in parallel batches)
| +- coding:review
| +- coding:lint
| +- coding:find-unused
| +- Operation completeness check
v
[Step 3: Generate Report] --------- (You: compile AUDIT.md)
|
v
[Step 4: Decision Gate] ----------- (You: present findings, collect user decisions)
|
v
[Step 5: Sync to Notion] --------> (Sub-skill: specification:sync-notion)
|
v
[Step 6: Remediate] -------------> (Sub-skill: backend:build-service)
|
v
[Step 7: Final Report] ----------- (You: compile summary)
|
v
[END]
Legend:
═══════════════════════════════════════════════════════════════
• Steps 1,5: Notion sync via specification plugin
• Step 2: Parallel validation subagents
• Step 6: Remediation via build-service
• Steps 3,4,7: Orchestrator decisions
═══════════════════════════════════════════════════════════════
```
## 3. SKILL IMPLEMENTATION
### Skill Steps
1. Step 1: Load Spec
2. Step 2: Audit vs Spec
3. Step 3: Generate Discrepancy Report
4. Step 4: Decision Gate
5. Step 5: Sync Decisions to Notion
6. Step 6: Implement Approved Changes
7. Step 7: Final Report
---
### Step 1: Load Spec
**Step Configuration**:
- **Purpose**: Fetch service specification from Notion
- **Input**: Service name
- **Output**: Complete spec with operations list, data operations, service context
- **Sub-skill**: `/Users/alvis/Repositories/.claude/plugins/specification/skills/sync-notion/SKILL.md`
- **Parallel Execution**: No
#### Execute Sync Sub-Skill (You)
1. Load `/Users/alvis/Repositories/.claude/plugins/specification/skills/sync-notion/SKILL.md`
2. Execute in **pull mode** to fetch the latest spec from Notion
3. Extract: service metadata, all service operation pages, data operation dependencies
4. Continue to Step 2
---
### Step 2: Audit vs Spec
**Step Configuration**:
- **Purpose**: Validate each operation against its specification for completeness and standards compliance
- **Input**: Spec from Step 1 + local service codebase
- **Output**: Per-operation validation results
- **Sub-skills**: `/Users/alvis/Repositories/.claude/plugins/coding/skills/review/SKILL.md`, `/Users/alvis/Repositories/.claude/plugins/coding/skills/lint/SKILL.md`, `/Users/alvis/Repositories/.claude/plugins/coding/skills/find-unused/SKILL.md`
- **Parallel Execution**: Yes (operations validated in parallel, max 2 at a time)
#### Phase 1: Planning (You)
1. **List all operations** from the spec
2. **Apply filters** (operation filter, area filter) if specified
3. **Discover service** by searching Notion for the Services database, locating the service page, extracting operation metadata
4. **Create batches** (max 2 operations per batch)
5. **Use TodoWrite** to track
#### Phase 2: Execution (Subagents)
Spin up read-only validation subagents, up to **2** at a time. The dispatch prompt MUST contain ONLY: spec path, implementation path(s), output template path, and applicable standards paths. Do not include parent narrative, intent, or expected conclusions.
>>>
You are an independent auditor. Treat the implementation as unfamiliar. Compare it against the spec and the listed standards. Do not assume the implementation matches the spec.
This is a read-only audit. Do not modify any file.
**Spec**: [absolute path to operation spec page export or DESIGN.md section]
**Implementation**: [absolute path(s) to operation source file(s) and related tests]
**Output Template**: [absolute path to AUDIT.md template or finding row schema]
**Applicable Standards**:
- /Users/alvis/Repositories/.claude/plugins/backend/constitution/standards/data-operation.md
**Report** (<1000 tokens):
```yaml
status: success|failure|partial
outputs:
operation_name: '[name]'
validation_status: 'pass|issues_found'
issues_found: ['issue with location and fix', ...]
recommendations: ['improvement', ...]
issues: []
```
<<<
**Issue Escalation**: When issues found, pause further validation, present detailed report with code snippets and fix suggestions, await user approval before continuing.
Also execute in parallel:
- `coding:review` — code quality review of the service package
- `coding:lint` — lint check
- `coding:find-unused` — dead code detection
#### Phase 4: Decision (You)
1. Collect all validation reports
2. Consolidate into per-operation findings
3. Categorize by functional domain
4. **PROCEED** to Step 3
---
### Step 3: Generate Discrepancy Report
**Step Configuration**:
- **Purpose**: Produce AUDIT.md with consolidated findings
- **Input**: All validation results from Step 2
- **Output**: AUDIT.md file
- **Sub-skill**: (none — orchestrator compiles)
- **Parallel Execution**: No
#### Phase 1: Planning (You)
Generate AUDIT.md with this structure:
```markdown
# Service Audit: @theriety/service-{name}
Date: [YYYY-Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.