dotagents-qa

por sentry

Mudanças de comportamento do QA dotagents em um sandbox Docker. Use quando as alterações puderem afetar a instalação, sincronização, listagem, diagnóstico, posicionamento de skills, links simbólicos de agentes, MCP ou…

npx skills add https://github.com/getsentry/dotagents --skill dotagents-qa

dotagents QA

Do real QA for the change in front of you. Docker is the safety boundary, not the test plan: use it so dotagents cannot write to host agent config, host home directories, or host cache state while you build fixtures that prove the changed behavior.

Answer the practical question: "With this local dotagents build, does the changed behavior still install, sync, and wire the expected files?"

1. Understand The Change

Start from the diff and identify the behavior that could regress:

git status --short
git diff --stat
git diff -- <paths>

Write down the QA target before running commands:

  • Which command path changed: install, sync, list, doctor, add, remove, mcp, trust, init, package runtime, or scope resolution.
  • Which surfaces must be inspected: .agents/skills, agent skill symlinks, MCP config, hook config, subagent runtime files, lockfile, gitignore, CLI output, or user scope.
  • Which fixture shape proves it: checked-in example, local skills, nested skills, wildcard source, specific agents, MCP entries, hooks, existing broken state, user-scope state, or remote source.

Read the targeted reference before running runtime-specific QA:

Run focused Vitest coverage for logic bugs. Use this skill for end-to-end QA evidence, not as a substitute for regression tests.

2. Enter A Docker Sandbox

Build the repo-local QA image when it is missing, when this Dockerfile changes, or when the repo packageManager pnpm version changes:

docker build \
  -f skills/dotagents-qa/Dockerfile \
  -t dotagents-qa:local \
  skills/dotagents-qa

The image installs the latest npm-published Codex, Claude Code, and OpenCode CLIs (codex, claude, opencode). Use them for version checks, help-output checks, and optional isolated runtime probes. Their presence does not prove runtime discovery by itself; authenticated model-backed checks are still explicit opt-ins.

Use an interactive container so the QA steps stay change-specific:

REPO="$(pwd)"
OUT="$(mktemp -d "${TMPDIR:-/tmp}/dotagents-qa.XXXXXX")"
docker run --rm -it \
  -v "$REPO:/host-repo:ro" \
  -v "$OUT:/qa-out" \
  dotagents-qa:local

If your tool environment is not attached to a TTY, use -i instead of -it and feed the same commands with a here-doc. Keep -i; without stdin attached, the container shell will receive no script.

Inside the container:

set -euo pipefail
export CI=1
export HOME=/sandbox/home
export DOTAGENTS_STATE_DIR=/sandbox/state
export DOTAGENTS_HOME=/sandbox/user-agents

mkdir -p "$HOME" "$DOTAGENTS_STATE_DIR" "$DOTAGENTS_HOME" /sandbox/repo
tar -C /host-repo \
  --exclude=.git \
  --exclude=node_modules \
  --exclude=.turbo \
  --exclude=coverage \
  --exclude=core \
  --exclude='*.tsbuildinfo' \
  --exclude='packages/*/dist' \
  -cf - . | tar -C /sandbox/repo -xf -

cd /sandbox/repo
pnpm install --frozen-lockfile
pnpm build

Run package commands as the non-root node user. Root can bypass chmod-based permission checks, which can mask or invert filesystem regression tests.

For non-interactive QA, copy as root, then hand the repo to node before running package scripts:

chown -R node:node /sandbox
su -s /bin/bash node -c '
  set -euo pipefail
  export CI=1
  export HOME=/sandbox/home
  export DOTAGENTS_STATE_DIR=/sandbox/state
  export DOTAGENTS_HOME=/sandbox/user-agents
  cd /sandbox/repo
  pnpm install --frozen-lockfile
  pnpm build
  pnpm check
  pnpm qa:example
'

Run pnpm check inside Docker unless the change requires a narrower target or the check is already known to be unrelated. If build or check fails, treat that as a QA finding and stop before fixture work unless you are explicitly isolating the playbook mechanics. If skipped or bypassed, report why.

3. Prefer The Checked-In Agentic QA

Use the checked-in example QA for ordinary install/sync QA:

pnpm qa:example

The QA runner builds the local CLI, copies examples/full/ to a temp project, and asserts:

  • install, list, doctor --fix, and doctor complete successfully
  • managed skills under .agents/skills/
  • Claude/Cursor skill symlink behavior
  • MCP files for Claude, Cursor, Codex, and OpenCode
  • hook files for Claude and Cursor
  • canonical installed subagent under .agents/agents/
  • generated subagent runtime files for Claude, Cursor, Codex, and OpenCode
  • sync repair after deleting representative generated files

Use node skills/dotagents-qa/scripts/qa-example.mjs all --keep when you need to inspect the temp project; the script prints the retained path.

For paid Codex runtime proof of generated custom agents, run the runtime proof outside Docker only when the branch affects Codex custom agents or when reporting that Codex itself works:

node skills/dotagents-qa/scripts/qa-example.mjs codex-runtime --keep

That mode copies Codex auth/config into a temp CODEX_HOME, marks only the temp example project trusted, and asserts that Codex can spawn the generated .codex/agents/code-reviewer.toml agent. See references/codex.md before changing or running this path.

4. Build A Manual Fixture Only When Needed

Create a temp project manually only when the checked-in example does not cover the changed behavior. Start from this shape and add only what the diff needs.

fixture=/sandbox/fixture
mkdir -p "$fixture/local-skills" "$fixture/local-agents/agents"
for skill in review commit; do
  mkdir -p "$fixture/local-skills/$skill"
  printf -- "---\nname: %s\ndescription: Fixture %s skill.\n---\n\n%s fixture.\n" \
    "$skill" "$skill" "$skill" > "$fixture/local-skills/$skill/SKILL.md"
done

cat > "$fixture/local-agents/agents/code-reviewer.md" <<'EOF'
---
name: code-reviewer
description: Review code for correctness.
---

Review the current diff and return findings with file references.
EOF

cat > "$fixture/agents.toml" <<'EOF'
version = 1
agents = ["claude", "cursor", "codex", "opencode"]

[[skills]]
name = "review"
source = "path:./local-skills/review"

[[skills]]
name = "commit"
source = "path:./local-skills/commit"

[[mcp]]
name = "fixture"
command = "node"
args = ["-e", "process.exit(0)"]

[[hooks]]
event = "Stop"
command = "echo fixture"

[[subagents]]
name = "code-reviewer"
source = "path:./local-agents"
EOF

Useful fixture changes:

  • Skill resolution: nested skills/ layouts, wildcard sources, duplicate names, local paths outside .agents, or the exact path: shape touched.
  • Agent placement: include only affected agents, or include all supported agents when shared config or registry behavior changed.
  • MCP and hooks: use the exact command, URL, headers, env refs, hook event, or matcher affected by the diff.
  • Subagents: include a portable Markdown fixture under agents/, assert the installed canonical file in .agents/agents/, assert generated runtime files for Claude/Cursor/Codex/OpenCode, and inspect agents.lock.
  • Sync and doctor: pre-create broken or legacy state, then prove repair and diagnostics.
  • User scope: set both HOME and DOTAGENTS_HOME, pass --user, and inspect generated files under those temp directories; never use the host home directory.
  • Package/runtime: run the built CLI as above, or pack/install the package only when the packaging path itself changed.
  • Remote sources: use getsentry/skills; avoid remotes for ordinary install-location checks.

5. Exercise The CLI

Run the built local CLI from the fixture. Capture output and inspect generated files, not just exit codes.

cli=(node /sandbox/repo/packages/dotagents/dist/cli/index.js)
cd "$fixture"

"${cli[@]}" install | tee /qa-out/install.out
"${cli[@]}" list | tee /qa-out/list.out
"${cli[@]}" doctor --fix | tee /qa-out/doctor-fix.out
"${cli[@]}" doctor | tee /qa-out/doctor.out

Assert what matters for this change. Examples:

grep -q "review" /qa-out/list.out
grep -q "commit" /qa-out/list.out
test -f .agents/skills/review/SKILL.md
test -f .agents/skills/commit/SKILL.md
test -L .claude/skills
test -f .mcp.json
test -f .cursor/mcp.json
test -f .codex/config.toml
test -f .opencode/opencode.jsonc
test -f .claude/settings.json
test -f .cursor/hooks.json
test -f .agents/agents/code-reviewer.md
test -f .claude/agents/code-reviewer.md
test -f .cursor/agents/code-reviewer.md
test -f .codex/agents/code-reviewer.toml
test -f .opencode/agents/code-reviewer.md
grep -q "code-reviewer" agents.lock
grep -q "Generated by dotagents" .claude/agents/code-reviewer.md
grep -q "Generated by dotagents" .codex/agents/code-reviewer.toml

For sync or subagent writer changes, break the generated state in the way the diff claims to repair, then verify the repair:

rm .mcp.json .claude/skills .claude/agents/code-reviewer.md .codex/agents/code-reviewer.toml
"${cli[@]}" sync | tee /qa-out/sync.out
test -f .mcp.json
test -L .claude/skills
test -f .claude/agents/code-reviewer.md
test -f .codex/agents/code-reviewer.toml

For user-scope changes:

cd /sandbox
"${cli[@]}" --user install | tee /qa-out/user-install.out
test -f "$DOTAGENTS_HOME/agents.toml"
test -d "$DOTAGENTS_HOME/skills"

Copy useful evidence before leaving the container:

cp -a "$fixture" /qa-out/fixture
cp -a "$DOTAGENTS_HOME" /qa-out/user-agents 2>/dev/null || true

6. Real Agent Clients

Use real clients only when discovery or registration in Claude, Cursor, Codex, VS Code, or OpenCode changed. Docker proves generated files and symlinks; it does not prove an installed host client notices them.

Keep host-client checks isolated with explicit temp homes/config dirs where the client supports it. If a client cannot run without reading host state, say so and report the Docker-generated files you inspected instead.

Inside the QA image, start with cheap client availability checks:

codex --version
claude --version
opencode --version

Codex subagents need real runtime proof before claiming Codex loaded them. Use node skills/dotagents-qa/scripts/qa-example.mjs codex-runtime --keep; codex debug prompt-input is not enough unless it visibly includes the generated agent name or instructions. Project-scoped .codex/agents/ load only when Codex trusts the project. See references/codex.md.

Claude has no cheap dry-run skill list. If auth/network/model cost is acceptable, run a minimal non-interactive prompt from the temp project; otherwise report it as skipped.

7. Report Evidence

Report:

  • the changed behavior you targeted
  • Docker image and setup used
  • fixture shape and why it matched the diff
  • commands run
  • generated files or command output inspected
  • assertions that passed
  • /qa-out host path if retained for debugging
  • skipped checks and residual risk

Mais skills de sentry

generate-frontend-forms
sentry
Guia para criar formulários usando o novo sistema de formulários do Sentry. Use ao implementar formulários, campos de formulário, validação ou funcionalidade de salvamento automático.
official
sentry-snapshots-cocoa
sentry
Configuração completa de Snapshots do Sentry para projetos Apple/Cocoa. Use quando for solicitado a "configurar SnapshotPreviews", "configurar testes de snapshot Apple", "enviar snapshots Apple para…
official
architecture-review
sentry
Revisão de saúde do código em nível de equipe. Encontra módulos monolíticos, falhas silenciosas, lacunas de segurança de tipo, buracos na cobertura de testes e problemas de compatibilidade com LLM.
official
linear-type-labeler
sentry
Classifica issues do Linear e aplica um rótulo de Tipo da taxonomia de rótulos do workspace do Sentry com base no conteúdo do título e da descrição de cada issue.
official
sentry-flutter-sdk
sentry
Configuração completa do SDK Sentry para Flutter e Dart. Use quando for solicitado "adicionar Sentry ao Flutter", "instalar sentry_flutter", "configurar Sentry no Dart" ou configurar erro…
official
sentry-svelte-sdk
sentry
Configuração completa do SDK do Sentry para Svelte e SvelteKit. Use quando for solicitado a "adicionar Sentry ao Svelte", "adicionar Sentry ao SvelteKit", "instalar @sentry/sveltekit" ou configurar…
official
vercel-react-best-practices
sentry
Diretrizes de otimização de desempenho para React e Next.js da Vercel Engineering. Esta habilidade deve ser usada ao escrever, revisar ou refatorar React/Next.js…
official
sentry-tanstack-start-sdk
sentry
Configuração completa do SDK Sentry para TanStack Start React. Use quando for solicitado "adicionar Sentry ao TanStack Start", "instalar @sentry/tanstackstart-react" ou configurar erro…
official