From 152857b2e6af1892ae41ecef262f279ffcf617f6 Mon Sep 17 00:00:00 2001 From: Arnau Sanchez Date: Wed, 21 Oct 2026 11:09:15 +0200 Subject: [PATCH] chore: adopt the EyeSeeTea AI dev skeleton Adopts ai-dev-skeleton@97c1e8f (est-ai 0.1.0, PR #15 branch), adapted with est-init. This repo is the dhis2-react reference itself, so no reference is cloned (.est_ai/rules/project/self-reference.md). --- .claude/agents/code-reviewer.md | 30 ++ .claude/agents/frontend-developer.md | 60 +++ .claude/agents/project-manager.md | 37 ++ .claude/commands/opsx/apply.md | 202 ++++++++++ .claude/commands/opsx/archive.md | 264 +++++++++++++ .claude/commands/opsx/explore.md | 241 ++++++++++++ .claude/commands/opsx/propose.md | 171 +++++++++ .claude/commands/opsx/sync.md | 286 ++++++++++++++ .claude/commands/opsx/update.md | 105 ++++++ .claude/settings.json | 1 + .claude/settings.local.json.template | 14 + .claude/skills/est-init/SKILL.md | 23 ++ .claude/skills/est-review-after-exec/SKILL.md | 33 ++ .claude/skills/est-review-pr/SKILL.md | 29 ++ .claude/skills/openspec-apply-change/SKILL.md | 206 ++++++++++ .../skills/openspec-archive-change/SKILL.md | 221 +++++++++++ .claude/skills/openspec-explore/SKILL.md | 356 ++++++++++++++++++ .claude/skills/openspec-propose/SKILL.md | 175 +++++++++ .claude/skills/openspec-sync-specs/SKILL.md | 290 ++++++++++++++ .../skills/openspec-update-change/SKILL.md | 109 ++++++ .claude/skills/task-management/SKILL.md | 63 ++++ .est_ai/README.md | 193 ++++++++++ .est_ai/init/prompt-init.md | 75 ++++ .est_ai/project.md | 9 + .est_ai/reference/README.md | 42 +++ .est_ai/review/checklist.md | 58 +++ .est_ai/review/prompt-after-exec.md | 32 ++ .est_ai/review/prompt-pr.md | 45 +++ .est_ai/review/rules-check.md | 64 ++++ .est_ai/rules/README.md | 36 ++ .est_ai/rules/dhis2-react/README.md | 16 + .est_ai/rules/dhis2-react/architecture.md | 40 ++ .est_ai/rules/dhis2-react/react.md | 25 ++ .est_ai/rules/dhis2-react/testing.md | 26 ++ .est_ai/rules/generic/architecture.md | 59 +++ .est_ai/rules/generic/functional.md | 19 + .est_ai/rules/generic/process.md | 33 ++ .est_ai/rules/generic/security.md | 25 ++ .est_ai/rules/generic/testing.md | 32 ++ .est_ai/rules/lang/typescript.md | 25 ++ .est_ai/rules/project/README.md | 17 + .est_ai/rules/project/generated-code.md | 4 + .est_ai/rules/project/self-reference.md | 7 + .est_ai/version | 1 + .gitignore | 13 +- .opencode/commands/opsx-apply.md | 199 ++++++++++ .opencode/commands/opsx-archive.md | 261 +++++++++++++ .opencode/commands/opsx-explore.md | 238 ++++++++++++ .opencode/commands/opsx-propose.md | 168 +++++++++ .opencode/commands/opsx-sync.md | 283 ++++++++++++++ .opencode/commands/opsx-update.md | 102 +++++ .../skills/openspec-apply-change/SKILL.md | 206 ++++++++++ .../skills/openspec-archive-change/SKILL.md | 221 +++++++++++ .opencode/skills/openspec-explore/SKILL.md | 356 ++++++++++++++++++ .opencode/skills/openspec-propose/SKILL.md | 175 +++++++++ .opencode/skills/openspec-sync-specs/SKILL.md | 290 ++++++++++++++ .../skills/openspec-update-change/SKILL.md | 109 ++++++ .prettierignore | 1 + AGENTS.md | 53 +++ CLAUDE.md | 3 + DEVELOPMENT.md | 78 ++++ opencode.json | 40 ++ openspec/changes/.gitkeep | 0 openspec/changes/archive/.gitkeep | 0 openspec/config.yaml | 36 ++ openspec/specs/.gitkeep | 0 vite.config.ts | 2 +- 67 files changed, 6630 insertions(+), 3 deletions(-) create mode 100644 .claude/agents/code-reviewer.md create mode 100644 .claude/agents/frontend-developer.md create mode 100644 .claude/agents/project-manager.md create mode 100644 .claude/commands/opsx/apply.md create mode 100644 .claude/commands/opsx/archive.md create mode 100644 .claude/commands/opsx/explore.md create mode 100644 .claude/commands/opsx/propose.md create mode 100644 .claude/commands/opsx/sync.md create mode 100644 .claude/commands/opsx/update.md create mode 100644 .claude/settings.json create mode 100644 .claude/settings.local.json.template create mode 100644 .claude/skills/est-init/SKILL.md create mode 100644 .claude/skills/est-review-after-exec/SKILL.md create mode 100644 .claude/skills/est-review-pr/SKILL.md create mode 100644 .claude/skills/openspec-apply-change/SKILL.md create mode 100644 .claude/skills/openspec-archive-change/SKILL.md create mode 100644 .claude/skills/openspec-explore/SKILL.md create mode 100644 .claude/skills/openspec-propose/SKILL.md create mode 100644 .claude/skills/openspec-sync-specs/SKILL.md create mode 100644 .claude/skills/openspec-update-change/SKILL.md create mode 100644 .claude/skills/task-management/SKILL.md create mode 100644 .est_ai/README.md create mode 100644 .est_ai/init/prompt-init.md create mode 100644 .est_ai/project.md create mode 100644 .est_ai/reference/README.md create mode 100644 .est_ai/review/checklist.md create mode 100644 .est_ai/review/prompt-after-exec.md create mode 100644 .est_ai/review/prompt-pr.md create mode 100644 .est_ai/review/rules-check.md create mode 100644 .est_ai/rules/README.md create mode 100644 .est_ai/rules/dhis2-react/README.md create mode 100644 .est_ai/rules/dhis2-react/architecture.md create mode 100644 .est_ai/rules/dhis2-react/react.md create mode 100644 .est_ai/rules/dhis2-react/testing.md create mode 100644 .est_ai/rules/generic/architecture.md create mode 100644 .est_ai/rules/generic/functional.md create mode 100644 .est_ai/rules/generic/process.md create mode 100644 .est_ai/rules/generic/security.md create mode 100644 .est_ai/rules/generic/testing.md create mode 100644 .est_ai/rules/lang/typescript.md create mode 100644 .est_ai/rules/project/README.md create mode 100644 .est_ai/rules/project/generated-code.md create mode 100644 .est_ai/rules/project/self-reference.md create mode 100644 .est_ai/version create mode 100644 .opencode/commands/opsx-apply.md create mode 100644 .opencode/commands/opsx-archive.md create mode 100644 .opencode/commands/opsx-explore.md create mode 100644 .opencode/commands/opsx-propose.md create mode 100644 .opencode/commands/opsx-sync.md create mode 100644 .opencode/commands/opsx-update.md create mode 100644 .opencode/skills/openspec-apply-change/SKILL.md create mode 100644 .opencode/skills/openspec-archive-change/SKILL.md create mode 100644 .opencode/skills/openspec-explore/SKILL.md create mode 100644 .opencode/skills/openspec-propose/SKILL.md create mode 100644 .opencode/skills/openspec-sync-specs/SKILL.md create mode 100644 .opencode/skills/openspec-update-change/SKILL.md create mode 100644 AGENTS.md create mode 100644 CLAUDE.md create mode 100644 DEVELOPMENT.md create mode 100644 opencode.json create mode 100644 openspec/changes/.gitkeep create mode 100644 openspec/changes/archive/.gitkeep create mode 100644 openspec/config.yaml create mode 100644 openspec/specs/.gitkeep diff --git a/.claude/agents/code-reviewer.md b/.claude/agents/code-reviewer.md new file mode 100644 index 0000000..5867116 --- /dev/null +++ b/.claude/agents/code-reviewer.md @@ -0,0 +1,30 @@ +--- +name: code-reviewer +description: > + Reviews a published PR against EyeSeeTea standards in a fresh session. + Thin wrapper over the est-review-pr skill. Only use when explicitly invoked + by name — not auto-selected. To review work you just did, use the + est-review-after-exec skill instead. +tools: + - Read + - Bash + - Glob + - Grep +metadata: + author: est-ai + profile: generic + version: "0.1.0" + generatedBy: "0.1.0" +--- + +You are a thin entry point for PR review. **You hold no review logic of your own.** The chain is: this agent → the `est-review-pr` skill → `.est_ai/review/prompt-pr.md` → `.est_ai/rules/`. Every review criterion lives in the rules; you only run the skill. + +This agent is provided as a convenience for reviewing a PR in a **cold session** (e.g. in parallel while you keep working elsewhere). It is not required: the `est-review-pr` skill does the same thing. Use the agent if you want the isolation; otherwise call the skill directly. To review work you just did, use `est-review-after-exec` instead. + +## What to do + +Run the `est-review-pr` skill, passing the PR number you were invoked with. It selects the applicable rule set, follows `.est_ai/review/prompt-pr.md` and produces the report. + +**Do not post the review.** You run in a separate session and cannot get the user's approval, so return the report as your result; the calling session shows it to the user and posts it only if they approve. + +Do not restate rules or checklist items here — they live in `.est_ai/`. If review behavior needs to change, change `.est_ai/`, never this file. diff --git a/.claude/agents/frontend-developer.md b/.claude/agents/frontend-developer.md new file mode 100644 index 0000000..c295b42 --- /dev/null +++ b/.claude/agents/frontend-developer.md @@ -0,0 +1,60 @@ +--- +name: frontend-developer +description: > + Frontend developer for React, TypeScript, and UI implementation. Only use + when explicitly invoked by name — not auto-selected. +tools: + - Read + - Write + - Edit + - Bash + - Glob + - Grep +metadata: + author: est-ai + profile: generic + version: "0.1.0" + generatedBy: "0.1.0" +--- + +You are the Frontend Developer on this team. + +## Your Responsibilities + +1. Implement UI components based on specs, wireframes, or feature descriptions +2. Write clean, accessible, responsive code +3. Follow the project's frontend and general conventions +4. Write unit tests for components and view logic +5. Wire components to the application layer as the project's architecture defines + +## Before You Start + +- Read `AGENTS.md` to load project-wide conventions +- Read the relevant OpenSpec specs in `openspec/specs/` +- Review existing components to maintain consistency +- Read `DEVELOPMENT.md` and the `.est_ai/rules/` files that apply (see `.est_ai/project.md`), and the matching code in `.est_ai/reference/` + +## Stack, architecture & code rules + +Do not restate them here: +- Tech stack, directory layout and commands → `DEVELOPMENT.md`. +- Code rules (architecture, layers, TypeScript, functional style, React, testing) → `.est_ai/rules/` (`generic/`, the project's `lang/` file and its profile). + +## Standards + +### Styling + +- Build UI with `@dhis2/ui` components. Material UI 4 (`@material-ui/core`) is only used in a few existing components; do not add new usages or a new UI library. +- Style with CSS Modules (`*.module.css` next to the component). +- Take colors and spacing from the DHIS2 design tokens (`var(--colors-*)`, `var(--spacers-*)`) instead of hardcoding them. +- Use semantic class names, not utility classes. + +### Accessibility + +- Interactive elements must be focusable and keyboard-operable. +- Use semantic HTML (`