Imported from romiaujla/downriver-gdw-modernization (
AGENTS.md). Install upstream withnpx skills add romiaujla/downriver-gdw-modernization. Copyright stays with the author.
AGENTS.md
Mandatory Policy
All AI agents working in this repository must follow:
docs/process/engineering-constitution.mddocs/process/ui-guidlines.mddocs/process/development-workflow.mddocs/process/component-development.md
This is mandatory for code changes, branch naming, commits, Jira issue updates, pull requests, and release-related work.
Required Workflow
- Use Jira-linked branches and commits per constitution.
- Keep issue descriptions aligned with the Lean Jira template.
- Use tagged workflow commands to select delivery mode:
--helpfor prompt discovery and supported command lookup--speckit GRA-<id>for full Spec Kit delivery--implement GRA-<id>for implementation-only delivery
- Use documented workflow-helper prompts from
docs/process/ai-agent-prompt-help.mdfor audit, Jira sync, PR comment resolution, PR refresh, status, handoff, reconcile, test-fix, review, and scope-drift loops. - Use
--clean-code-apiand--clean-code-webfor workspace-scoped clean-code audits only; these prompts do not authorize implementation changes unless the user explicitly asks for them. - Keep the prompt help registry in
docs/process/ai-agent-prompt-help.mdaligned with any documented prompt behavior changes.
Prompt-Driven Start Workflow
When a user prompt is in the form --speckit GRA-<id> or --implement GRA-<id>:
- Resolve the Jira issue first and use that issue as the only delivery scope unless the user explicitly broadens it.
- Use
docs/process/engineering-constitution.mdas the governing policy for branch naming, commits, pull requests, and release-safe metadata. - Before creating a new Jira-linked branch, run
git checkout main && git pull, then create the Jira-linked branch that matches the issue type; if the Jira-linked branch already exists, validate and use that existing branch before editing files. - When a Jira-linked branch is created for the issue, transition that issue to
In Progress. - If the prompt is
--implement GRA-<id>, skip/specify,/plan, and/tasksand proceed directly to implementation. - If the prompt is
--speckit GRA-<id>, begin with/specify, then continue in this order only:/plan,/tasks, implementation, and pull request creation. - For UI-related features under
--speckit, enforce the full development workflow fromdocs/process/development-workflow.md. - After completing
/specify,/plan,/tasks, and implementation, commit and push that phase before moving to the next phase when no unresolved clarification remains. - Pause for user clarification instead of auto-advancing when scope, requirements, repository state, validation evidence, or Jira-to-branch alignment are ambiguous or blocked.
- Create the final pull request only after implementation is complete, committed, and pushed, and include Jira linkage, links to
spec.md,plan.md,tasks.md, andwireframe.mdwhen the Spec Kit phases were used for UI work, a scope statement, and validation notes in the PR description. - When a Jira-linked pull request is created for the issue, transition that issue to
In Review.
When a user prompt is --help:
- Use
docs/process/ai-agent-prompt-help.mdas the source-of-truth registry for supported repository AI-agent prompt patterns. - Return the documented prompt patterns with concise behavior descriptions.
- Keep the response limited to prompts that are actually documented in the repository.
When a user prompt matches a documented workflow-helper command such as --audit, --sync-to-jira, --sync-from-jira, --resolve-pr-comments, --review, --refresh-pr, --status, --handoff, --reconcile, --test-fix, or --scope-drift:
- Treat the current Jira-linked branch or specified PR/Jira issue as the working scope unless the documented command explicitly requires a follow-up Jira issue.
- Preserve branch, commit, Jira, and PR metadata required by
docs/process/engineering-constitution.md. - Use
--auditto report Jira coverage, gaps, validation debt, and out-of-scope changes without silently rewriting scope. - Use
--sync-to-jiraonly to append structured implementation notes, validation evidence, and accepted scope increases back into Jira. - Use
--sync-from-jiraonly to pull Jira changes into an in-flight branch; if the prior Jira-linked branch already merged tomain, create a follow-up Jira issue instead of reopening merged work. - Use
--resolve-pr-commentsto inspect the current branch PR or a specified PR, make safe straightforward fixes, reply when automation should not change behavior, and resolve completed conversations when supported. - Use
--review,--refresh-pr,--status,--handoff,--reconcile,--test-fix, and--scope-driftonly for delivery-maintenance work that stays aligned with the Jira-linked branch and PR. - Pause for clarification or create a follow-up issue when a helper command reveals scope drift that should not be merged under the current Jira issue.
When a user prompt is --clean-code-api or --clean-code-web:
- Treat the request as a review-only coding-standards audit, not an implementation task, unless the user explicitly asks for code changes.
- Scope
--clean-code-apito files underapps/apionly. - Scope
--clean-code-webto files underapps/uionly. - Evaluate findings against
docs/process/engineering-constitution.mdand any relevant engineering/process guidance referenced by the repository workflow documents. - Report findings first, before summaries, with concrete file references and clear coding-standard violations or maintainability risks.
- Do not widen the audit into unrelated repository areas, feature design changes, or speculative implementation work.
UI/UX Development Workflow (Mandatory for UI Features)
All UI-related features must follow the ordered development flow defined in docs/process/development-workflow.md:
- API contract (if applicable)
- UI wireframe spec generation -> saved to
specs/GRA-<id>/wireframe.md - Reusable component identification and creation per
docs/process/component-development.md - Page assembly using reusable components
- Implementation (API integration, state management, business logic)
- PR creation with pre-PR UI validation
Operational Rules
- Do not bypass repository hooks, CI checks, or branch protection requirements.
- Do not widen PR scope beyond the Jira issue(s) named in the branch/PR.
- Prefer additive, reviewable commits and explicit rationale for policy exceptions.