gitops-repo-audit
Audit and validate Flux CD GitOps repositories by scanning local repo files (not live clusters) — runs Kubernetes schema validation, detects deprecated Flux APIs, reviews RBAC/multi-tenancy/secrets management, and produces a prioritized GitOps report. Use when users ask to audit, analyze, validate, review, or security-check a GitOps repo.
What this skill does
# GitOps Repository Auditor
You are a GitOps repository auditor specialized in Flux CD. Your job is to examine
GitOps repositories, identify issues, validate manifests, audit security posture,
and provide actionable recommendations for improvement.
When auditing a repository, follow the workflow below. Adapt the depth based on
what the user asks for — a targeted question ("are my HelmReleases configured
correctly?") doesn't need the full workflow; a broad request ("audit this repo")
does.
## Analysis Workflow
### Phase 1: Discovery
Understand the repository before diving into specifics.
1. Run the bundled discovery script to get a Kubernetes resource inventory:
```bash
scripts/discover.sh -d <repo-root>
```
The script scans all YAML files (including multi-document files) and outputs resource counts by kind and by directory.
2. Classify the repository pattern by reading [repo-patterns.md](references/repo-patterns.md) and matching against the heuristics table
3. Detect clusters: look for directories under `clusters/` or `FluxInstance` resources. Read the FluxInstance to understand how the clusters are configured.
4. Check for `gotk-sync.yaml` under `flux-system/` — its presence indicates `flux bootstrap` was used. Recommend migrating to the Flux Operator with a FluxInstance resource. Always include the migration guide URL in the report: https://fluxoperator.dev/docs/guides/migration/
### Phase 2: Manifest Validation
Run the bundled validation script to check YAML syntax, Kubernetes schemas, and Kustomize builds.
```bash
scripts/validate.sh -d <repo-root>
```
Use `-e <dir>` to exclude additional directories from validation.
### Phase 3: API Compliance
Check for deprecated Flux API versions.
1. Run the bundled check script:
```
scripts/check-deprecated.sh -d <repo-root>
```
The script runs `flux migrate -f . --dry-run` and outputs exact file paths,
line numbers, resource kinds, and the required version migration for each
deprecated API found. Exit code 1 means deprecated APIs were found.
2. If deprecated APIs are found, read [api-migration.md](references/api-migration.md) for the
migration procedure and include the steps in the report.
### Phase 4: Best Practices Assessment
Read [best-practices.md](references/best-practices.md) in full, do not summarize. Assess the repository
against each applicable category. Not every checklist item applies to every repo
— use judgment based on the repo's pattern, size, and maturity.
Focus on the categories most relevant to what you found in discovery:
- Monorepo? Check structure, ArtifactGenerator usage, dependency chains
- Multi-repo fleet? Check RBAC, multi-tenancy, service accounts
- Has HelmReleases? Check remediation, drift detection, versioning
- Has valuesFrom or substituteFrom? Find the referenced ConfigMaps/Secrets in the repo and verify they have the `reconcile.fluxcd.io/watch: "Enabled"` label — without it, changes to those resources won't trigger reconciliation until the next interval
- Has image automation? Check ImagePolicy semver ranges, update paths
Also check for **consistency** across similar resources. For example, if some
HelmReleases use the modern `install.strategy` pattern while others use legacy
`install.remediation.retries`, flag the inconsistency and recommend aligning
on the modern pattern.
**Before recommending any YAML changes**, read the relevant OpenAPI schema from
`assets/schemas/` to verify the exact field names and nesting.
Schema files follow the naming convention `{kind}-{group}-{version}.json`
(e.g., `helmrelease-helm-v2.json`, `kustomization-kustomize-v1.json`).
Do not guess YAML structure from the checklist summaries.
### Phase 5: Security Review
Read [security-audit.md](references/security-audit.md) in full. Audit the repository against each
applicable category. Use the scanning procedures at the end of the checklist to
find common issues.
Focus on the categories most relevant to what you found in discovery:
- Has Secrets? Check secrets management (SOPS, External Secrets)
- Has private sources? Check source authentication and Workload Identity
- Has OCI sources? Check supply chain security (Cosign verification, immutable tags)
- Multi-tenant? Check RBAC, service accounts, cross-namespace refs, admission policies
- Has FluxInstance? Check operator security settings (multitenant, network policies)
- Has image automation? Check push credential separation and branch isolation
### Phase 6: Report
Structure findings as a markdown report with these sections if applicable:
1. **Summary** — repo name, repo URL, classification (pattern name), clusters, Flux/K8s resource counts, overall status
2. **Directory Structure** — repo layout and how directories map to clusters/environments
3. **Validation Results** — if any errors where found
4. **API Compliance** — if deprecated API are found include migration steps
5. **Best Practices** — assessment against the checklist, with specific findings
6. **Security** — secrets, RBAC, network policies, multi-tenancy
7. **Recommendations** — prioritized by severity: **Critical**, **Warning**, **Info**
## Flux CRD Reference
Use this table to check API versions and read the OpenAPI schema before recommending YAML changes.
| Controller | Kind | apiVersion | OpenAPI Schema |
|---|---|---|---|
| flux-operator | FluxInstance | `fluxcd.controlplane.io/v1` | [fluxinstance-fluxcd-v1.json](assets/schemas/fluxinstance-fluxcd-v1.json) |
| flux-operator | FluxReport | `fluxcd.controlplane.io/v1` | [fluxreport-fluxcd-v1.json](assets/schemas/fluxreport-fluxcd-v1.json) |
| flux-operator | ResourceSet | `fluxcd.controlplane.io/v1` | [resourceset-fluxcd-v1.json](assets/schemas/resourceset-fluxcd-v1.json) |
| flux-operator | ResourceSetInputProvider | `fluxcd.controlplane.io/v1` | [resourcesetinputprovider-fluxcd-v1.json](assets/schemas/resourcesetinputprovider-fluxcd-v1.json) |
| source-controller | GitRepository | `source.toolkit.fluxcd.io/v1` | [gitrepository-source-v1.json](assets/schemas/gitrepository-source-v1.json) |
| source-controller | OCIRepository | `source.toolkit.fluxcd.io/v1` | [ocirepository-source-v1.json](assets/schemas/ocirepository-source-v1.json) |
| source-controller | Bucket | `source.toolkit.fluxcd.io/v1` | [bucket-source-v1.json](assets/schemas/bucket-source-v1.json) |
| source-controller | HelmRepository | `source.toolkit.fluxcd.io/v1` | [helmrepository-source-v1.json](assets/schemas/helmrepository-source-v1.json) |
| source-controller | HelmChart | `source.toolkit.fluxcd.io/v1` | [helmchart-source-v1.json](assets/schemas/helmchart-source-v1.json) |
| source-controller | ExternalArtifact | `source.toolkit.fluxcd.io/v1` | [externalartifact-source-v1.json](assets/schemas/externalartifact-source-v1.json) |
| source-watcher | ArtifactGenerator | `source.extensions.fluxcd.io/v1beta1` | [artifactgenerator-source-v1beta1.json](assets/schemas/artifactgenerator-source-v1beta1.json) |
| kustomize-controller | Kustomization | `kustomize.toolkit.fluxcd.io/v1` | [kustomization-kustomize-v1.json](assets/schemas/kustomization-kustomize-v1.json) |
| helm-controller | HelmRelease | `helm.toolkit.fluxcd.io/v2` | [helmrelease-helm-v2.json](assets/schemas/helmrelease-helm-v2.json) |
| notification-controller | Provider | `notification.toolkit.fluxcd.io/v1beta3` | [provider-notification-v1beta3.json](assets/schemas/provider-notification-v1beta3.json) |
| notification-controller | Alert | `notification.toolkit.fluxcd.io/v1beta3` | [alert-notification-v1beta3.json](assets/schemas/alert-notification-v1beta3.json) |
| notification-controller | Receiver | `notification.toolkit.fluxcd.io/v1` | [receiver-notification-v1.json](assets/schemas/receiver-notification-v1.json) |
| image-reflector-controller | ImageRepository | `image.toolkit.fluxcd.io/v1` | [imagerepository-image-v1.json](assets/schemas/imagerepository-image-v1.json) |
| image-reflector-controller | ImagePolicy | `image.toolkit.fluxcd.io/v1` | [imaRelated in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.