From a9a5eff518a5fa72290fc1dbc88f7acb401b246c Mon Sep 17 00:00:00 2001 From: busya Date: Thu, 14 May 2026 11:19:22 +0300 Subject: [PATCH] fix(lint): apply QA-found gaps in agent instruction files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - python-coder.md: ruff check src/ tests/ → ruff check . - speckit.test.md: add frontend npm run lint - speckit.plan.md: ruff check . + frontend lint - speckit.tasks.md: ruff check . + frontend lint - fullstack-coder.md: move npm run lint to frontend block --- .opencode/agents/fullstack-coder.md | 2 +- .opencode/agents/python-coder.md | 2 +- .opencode/command/speckit.plan.md | 3 ++- .opencode/command/speckit.tasks.md | 3 ++- .opencode/command/speckit.test.md | 1 + 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.opencode/agents/fullstack-coder.md b/.opencode/agents/fullstack-coder.md index 84721160..966a8bc0 100644 --- a/.opencode/agents/fullstack-coder.md +++ b/.opencode/agents/fullstack-coder.md @@ -63,10 +63,10 @@ You own: cd backend && source .venv/bin/activate python -m pytest -v python -m ruff check . -npm run lint # from frontend/ # Frontend cd frontend +npm run lint npm run test npm run build diff --git a/.opencode/agents/python-coder.md b/.opencode/agents/python-coder.md index 565626aa..ead27ea8 100644 --- a/.opencode/agents/python-coder.md +++ b/.opencode/agents/python-coder.md @@ -154,7 +154,7 @@ request: ## Execution Rules - Run verification when needed using guarded bash commands. - Python verification path: `cd backend && source .venv/bin/activate && python -m pytest -v` -- Python linting path: `cd backend && source .venv/bin/activate && python -m ruff check src/ tests/` +- Python linting path: `cd backend && source .venv/bin/activate && python -m ruff check .` - Never bypass semantic debt to make code appear working. - Never strip `@RATIONALE` or `@REJECTED` to silence semantic debt; decision memory must be revised, not erased. - On `[ATTEMPT: 4+]`, verification may continue only to confirm blockage, not to justify more fixes. diff --git a/.opencode/command/speckit.plan.md b/.opencode/command/speckit.plan.md index 99943b37..213272c2 100644 --- a/.opencode/command/speckit.plan.md +++ b/.opencode/command/speckit.plan.md @@ -123,7 +123,8 @@ If a planned contract depends on unknown schema, relation target, or ADR identit Generate `quickstart.md` using real repository verification paths: - Backend: `cd backend && source .venv/bin/activate && python -m pytest -v` - Frontend: `cd frontend && npm run test` -- Lint: `python -m ruff check backend/src/ backend/tests/` +- Lint: `cd backend && python -m ruff check .` +- Frontend lint: `cd frontend && npm run lint` - Docker: `docker compose up --build` ## Key Rules diff --git a/.opencode/command/speckit.tasks.md b/.opencode/command/speckit.tasks.md index 775471ec..188eec31 100644 --- a/.opencode/command/speckit.tasks.md +++ b/.opencode/command/speckit.tasks.md @@ -100,7 +100,8 @@ Each story phase must end with: Typical verification tasks may include: - `cd backend && source .venv/bin/activate && python -m pytest backend/tests/test_*.py -v` -- `python -m ruff check backend/src/ backend/tests/` +- `cd backend && python -m ruff check .` +- `cd frontend && npm run lint` - `cd frontend && npm run test` - `cd frontend && npm run build` diff --git a/.opencode/command/speckit.test.md b/.opencode/command/speckit.test.md index 43637ed6..95eb999f 100644 --- a/.opencode/command/speckit.test.md +++ b/.opencode/command/speckit.test.md @@ -83,6 +83,7 @@ Run the smallest truthful verifier set for the touched scope: # Backend cd backend && source .venv/bin/activate && python -m pytest -v python -m ruff check backend/src/ backend/tests/ +cd frontend && npm run lint # Frontend cd frontend && npm run test