diff --git a/.claude/agents/api-spec-reviewer.md b/.claude/agents/api-spec-reviewer.md new file mode 100644 index 00000000..15c34972 --- /dev/null +++ b/.claude/agents/api-spec-reviewer.md @@ -0,0 +1,13 @@ +--- +name: api-spec-reviewer +description: Runs Redocly lint on OpenAPI JSON under static/, applies api-fix (lint and structure), then suggests api-eval for style and copy. Use proactively after editing static/**/*.json OpenAPI specs. +tools: Bash, Read, Edit, Grep, Glob +--- + +You are an OpenAPI lint specialist for Firefly Services API documentation repos. + +Read @.cursor/agents/api-spec-reviewer.md and follow it exactly. In short: resolve +the spec (no `petstore.json` default), run `npm run lint:openapi -- `, fix +only lint + structure findings via @.cursor/skills/api-fix/SKILL.md, re-run until +clean, and suggest `/api-eval` or `/api-review` for any style/copy issues you +noticed but did not fix. Never invent a placeholder spec; prefer minimal edits. diff --git a/.claude/agents/doc-lint-fixer.md b/.claude/agents/doc-lint-fixer.md new file mode 100644 index 00000000..5333b4ce --- /dev/null +++ b/.claude/agents/doc-lint-fixer.md @@ -0,0 +1,15 @@ +--- +name: doc-lint-fixer +description: Runs npm run lint on Adobe Docs-style repos (adp-devsite-utils), fixes markdown/style/syntax issues from output, and lists dead-link findings for the user. Use proactively after editing src/pages/** or when CI lint fails. +tools: Bash, Read, Edit, Grep, Glob +--- + +You are a documentation lint specialist for repos that use Adobe's devsite lint +pipeline. + +Read @.cursor/agents/doc-lint-fixer.md and follow it exactly. In short: run +`npm run lint` from the repo root, fix non-link issues (markdown syntax, +structure, style, frontmatter) with minimal edits matching project conventions, +re-run until non-link problems are resolved, and collect link/URL failures into a +clearly labeled "Link errors (for you to fix)" list without inventing replacement +URLs. diff --git a/.claude/commands/api-eval.md b/.claude/commands/api-eval.md new file mode 100644 index 00000000..4d4f4ef9 --- /dev/null +++ b/.claude/commands/api-eval.md @@ -0,0 +1,10 @@ +--- +description: Audit an OpenAPI JSON spec (Redocly lint, version, FFS style guide, copy rules). Read-only — no edits. +argument-hint: "[path to spec under static/]" +--- + +Read @.cursor/skills/api-eval/SKILL.md and follow it to audit the OpenAPI spec. +Resolve the spec path with @.cursor/skills/_shared/resolve-api-spec.md (no +`petstore.json` default); use `$ARGUMENTS` as the spec path when provided. + +Read-only: report findings only, do not edit the spec. diff --git a/.claude/commands/api-fix.md b/.claude/commands/api-fix.md new file mode 100644 index 00000000..517c15d5 --- /dev/null +++ b/.claude/commands/api-fix.md @@ -0,0 +1,12 @@ +--- +description: Fix Redocly lint errors and api-ref-structure issues on an OpenAPI JSON spec (edits the file). +argument-hint: "[path to spec under static/]" +--- + +Read @.cursor/skills/api-fix/SKILL.md and follow it to fix Redocly lint errors +and `api-ref-structure.mdc` inconsistencies. Resolve the spec path with +@.cursor/skills/_shared/resolve-api-spec.md (no `petstore.json` default); use +`$ARGUMENTS` as the spec path when provided. + +Scope: lint + structure only. Do not apply FFS style-guide or copy edits — those +belong to `/api-eval` and `/api-review`. diff --git a/.claude/commands/api-review.md b/.claude/commands/api-review.md new file mode 100644 index 00000000..1d74b51d --- /dev/null +++ b/.claude/commands/api-review.md @@ -0,0 +1,12 @@ +--- +description: Catalog user-readable OpenAPI text in ref-numbered tables with issues and proposed content. Read-only. +argument-hint: "[path to spec under static/]" +--- + +Read @.cursor/skills/api-review/SKILL.md and follow it to catalog the spec's +user-readable descriptions in ref-numbered tables with possible issues and +proposed content. Resolve the spec path with +@.cursor/skills/_shared/resolve-api-spec.md (no `petstore.json` default); use +`$ARGUMENTS` as the spec path when provided. + +Read-only unless the user explicitly asks to update specific refs. diff --git a/.claude/commands/gc.md b/.claude/commands/gc.md new file mode 100644 index 00000000..b91cdacf --- /dev/null +++ b/.claude/commands/gc.md @@ -0,0 +1,11 @@ +--- +description: Stage all changes and commit using the repo commit-message rules (📖/✏️/🆕/🗑️). +--- + +Read @.cursor/skills/gc/SKILL.md and follow it exactly: stage all working-tree +changes with `git add -A`, then commit with a message that follows +@.cursor/rules/commit-rules.mdc (imperative subject ≤50 chars, blank line, body +bullets prefixed with 📖 / ✏️ / 🆕 / 🗑️). + +Do not run if the user only wanted a message draft, or wanted to stage specific +paths — confirm scope first. diff --git a/.claude/commands/gcam.md b/.claude/commands/gcam.md new file mode 100644 index 00000000..c612c8a9 --- /dev/null +++ b/.claude/commands/gcam.md @@ -0,0 +1,8 @@ +--- +description: Stage all changes, draft a commit message for review, then commit or reject on the user's choice. +--- + +Read @.cursor/skills/gcam/SKILL.md and follow it exactly: stage all changes with +`git add -A`, draft a commit message that follows @.cursor/rules/commit-rules.mdc, +print it for review, and wait for the user to edit and choose (1) commit or +(2) reject. This is the review-before-commit variant of `/gc`.