Import reviewed specialist skill packages (FORGE-F018)

This commit is contained in:
rob
2026-12-02 12:11:59 +00:00
parent 31f8edf5cb
commit 1fd552cf32
49 changed files with 3774 additions and 0 deletions
+230
View File
@@ -0,0 +1,230 @@
---
name: webapp-feature
description: Use when Codex needs to implement one scoped web-application feature or accepted task end-to-end in an existing project, especially across React/frontend, Flask/backend, relational database/migrations, API contracts, tests, and documentation; when the goal is to preserve the existing architecture and behavior outside the requested feature; or when a feature should be delivered as a small validated change rather than a broad refactor.
---
# Webapp Feature
Version: **2.0**.
Implement one agreed web-application feature safely, minimally, and end-to-end. Work with the repository's existing architecture instead of redesigning the application around the task.
This skill is designed to compose with `bortstack-context`. The context skill owns project/task/decision/handoff semantics; this skill owns the implementation workflow for the feature itself.
## Repository workflow
In a BortStack project, use `bortstack-context` with the applicable repository `AGENTS.md` before task work. They govern scope and authorisation, branch/worktree policy, lifecycle, manual acceptance, and handoff. Find the maintained overview, current state, decisions, task and handoff records through repository instructions and layout. Use the paths and task IDs the project already uses. Follow context's canonical discussion, mission and lifecycle guidance when interpreting authority or changing task status. If a required BortStack skill is unavailable, report the dependency. If an installed skill lacks a required reference, use the reference from a verified Forge package with a matching manifest. If the required guidance is unavailable, pause the affected action.
For edits, inspect Git status and worktrees, confirm authorised scope and the source candidate, and follow the current branch policy. Use direct integration-branch work where authorised and a dedicated branch/worktree where required. Preserve unrelated work. Read-only specialist work does not require a new worktree. When acting as an authorised contributor, use `bortstack-contributor` for contributor permissions, finalisation and submission. For ordinary specialist work, use the project's normal authority.
When manual testing is relevant, discover the documented commands, configuration and hooks in the target repository. Use its supported workflow, including an existing `testtask` wrapper and its project-specific config or hook where documented. Preserve a working adapter and its supported invocation. Before use, inspect its supported arguments, candidate handling, runtime and cleanup behavior. If no adapter is required, use the established development environment. Record candidate identity, actual checks, limitations and pending human acceptance in the project's handoff. Refresh stale candidates after edits and make fixes in the authoritative source. A source snapshot, wrapper, automated check or startup alone does not establish a manual pass. Follow context and repository rules for task transitions and closure.
Outside BortStack, follow the repository's own scope, branch, test and reporting conventions and proceed with the specialist workflow. BortStack skills and records are optional there.
## Core rules
1. **Read repository instructions first.** Obey root and nested `AGENTS.md` files and any project-specific engineering rules.
2. **Use repository evidence, not assumptions.** Inspect the relevant source, configuration, migrations, tests, and existing neighboring features before deciding how to implement the change.
3. **Work from one scoped outcome.** Prefer one accepted task or one explicit sufficiently-scoped user request. Do not silently expand a feature into a redesign or backlog.
4. **Preserve unrelated behavior.** Make the smallest coherent change that satisfies the acceptance criteria. Avoid unrelated cleanup, renames, dependency churn, style rewrites, or architectural migration.
5. **Follow existing patterns unless they are the problem being changed.** Match established route/model/service/component/state/test conventions when they remain valid.
6. **Do not invent product behavior.** If a material business rule, authorization rule, data constraint, or UX behavior is unresolved, stop at the decision boundary and surface it instead of guessing.
7. **Treat data changes carefully.** Model/schema changes require a migration strategy appropriate to the repository. Never edit production data or run destructive migrations merely to complete a local feature unless explicitly authorized.
8. **Keep API contracts coherent.** Backend validation, authorization, serialization, status codes, frontend expectations, and tests must agree.
9. **Validate what changed.** Run the narrowest useful checks first, then the broader repository-required checks. Never claim a check passed if it was not run.
10. **Update durable project context after implementation.** When the repository uses BortStack, use its task/current-state/decision/handoff rules rather than duplicating them here.
11. **Do not commit, push, switch branches, deploy, provision infrastructure, or mutate external services unless explicitly requested or required by an already-authorized project workflow.**
12. **Stop when the feature is complete.** Do not use spare time/tokens to start the next task.
## Preconditions
Before editing, establish:
- the requested outcome;
- the matching accepted task or explicit scoped request;
- acceptance criteria;
- constraints and non-goals;
- relevant durable decisions;
- affected surfaces: database, backend, API, frontend, tests, configuration, external services;
- required validation.
If the project uses BortStack, read the applicable context first. If the user asks to "work on the next task", task selection belongs to `bortstack-context` before this implementation workflow begins.
If the request is materially ambiguous, do not manufacture acceptance criteria. Record/propose the missing decision or ask only the question needed to unblock implementation.
For design-dependent BortStack work, confirm the approved design reference and version or the recorded explicit override through `bortstack-context`. Route unresolved concept, approval, or design handoff work to `bortstack-design`. Use `frontend-ui-design` for component and interaction details within the approved direction.
For an application feature, identify the authoritative application, real entry point, navigation, auth/state and backend/data needs before editing. Validate the feature through that route in the established development environment and record unverified requirements. Keep a standalone preview within explicitly approved prototype scope.
## 1. Inspect before planning
Inspect the smallest useful slice of the repository that proves how the feature should fit.
Typical evidence includes:
- neighboring models and migrations;
- route registration and existing endpoints;
- authorization/authentication helpers;
- serializers/schema/validation conventions;
- service/domain modules when present;
- React routing and neighboring pages/components;
- shared API/client/state/context hooks;
- form/error/loading-state conventions;
- relevant tests and fixtures;
- configuration/environment examples when the feature depends on them.
Do not read every file in a large repository merely to appear thorough. Trace the feature through the existing architecture.
Before changing a public or shared contract, search for its consumers.
## 2. Form a minimal implementation plan
Plan the change in dependency order. A typical cross-stack feature may be:
1. durable business/data rule;
2. model/schema change and migration;
3. backend/domain behavior;
4. API validation, authorization, and response contract;
5. frontend data integration/state;
6. UI and user-visible states;
7. targeted tests;
8. broader validation;
9. context/documentation update.
Not every feature needs every layer. Do not create abstractions, services, endpoints, state stores, or components merely to match this list.
If implementation reveals a decision that would materially change scope or architecture, stop and resolve/record that decision before proceeding.
## 3. Database and migration work
When persistence changes:
- follow the repository's ORM/schema conventions;
- encode important integrity rules in the strongest appropriate layer rather than relying only on UI checks;
- consider uniqueness, nullability, foreign keys, deletion behavior, indexes, defaults, and concurrency where relevant;
- generate/write a migration using the project's established migration tooling;
- review generated migrations rather than trusting them blindly;
- avoid destructive operations unless they are explicitly required and safely planned;
- keep migrations forward-compatible with the repository's supported deployment process;
- add migration/schema tests when the project convention requires them.
For race-sensitive behavior such as booking, inventory, quotas, or one-time claims, do not assume a frontend availability check prevents concurrent writes. Use database/application guarantees appropriate to the architecture.
## 4. Backend and API work
For backend behavior:
- enforce authentication and authorization server-side;
- validate untrusted input at the backend boundary;
- keep business invariants out of the frontend-only layer;
- reuse established error and response conventions;
- return deliberate HTTP status codes and safe error bodies;
- avoid leaking internal exceptions, secrets, or sensitive data;
- preserve existing endpoint behavior unless the task explicitly changes it;
- update API consumers/tests when a contract intentionally changes.
Prefer the project's existing structure. Do not introduce a repository/service/domain layer solely because another project uses one.
## 5. Frontend work
For React/frontend behavior:
- follow existing routing, component, state, styling, and API-client conventions;
- preserve established visual/design-system authority when the repository defines one;
- implement the complete user-visible state, not only the happy path;
- handle loading, empty, success, validation, authorization, and failure states where relevant;
- prevent obvious duplicate submissions or stale UI when the existing architecture supports it;
- keep client-side validation aligned with, but never a substitute for, backend validation;
- avoid redesigning neighboring screens unless required by the accepted feature.
If a requested visual treatment conflicts with a documented canonical design, surface the conflict instead of silently redesigning it.
## 6. Tests while implementing
Add or update tests close to the behavior being changed.
Prefer tests that prove observable requirements rather than implementation details. Depending on the feature, cover:
- authorized and unauthorized paths;
- valid and invalid input;
- important domain constraints;
- success and failure responses;
- database integrity/concurrency-sensitive behavior where practical;
- frontend rendering and interaction states;
- regression cases for the bug/behavior motivating the change.
Do not delete or weaken a valid test merely to make the new implementation pass unless the accepted behavior intentionally changed; in that case update the test and durable decision/task context accordingly.
## 7. Validate in layers
Use the repository's own commands as authority. A sensible order is:
1. targeted test(s) for changed behavior;
2. relevant backend/frontend test suite;
3. lint/type/static checks used by the project;
4. production build when frontend/build configuration changed;
5. migration/configuration validation when applicable;
6. browser/visual/runtime verification when the feature has user-facing behavior and the environment/tools support it;
7. repository-specific completion gates.
Do not install unrelated tools or change runtime versions merely to force validation. If a check cannot run, report the exact blocker and distinguish fresh validation from historical evidence.
Warnings are not automatically failures, but report material pre-existing or newly introduced warnings honestly. Do not claim the feature is fully verified if a required layer remains untested.
Use `references/validation-matrix.md` as a checklist when the feature crosses several layers.
## 8. Scope-control checkpoints
Stop and surface the issue instead of continuing when:
- the requested behavior conflicts with a durable decision;
- implementing the feature requires choosing an unresolved product/business rule;
- a migration would be destructive or require production-data assumptions;
- the apparent fix requires a broad architectural refactor not accepted by the task;
- a security/authorization requirement is unclear;
- an external dependency/credential/infrastructure change is required but not authorized;
- repository evidence contradicts the task enough that acceptance criteria are no longer trustworthy.
A discovered unrelated defect should normally be documented according to the project's context rules, not fixed opportunistically.
## 9. Finish the feature
Before declaring completion:
- compare the implementation against every acceptance criterion;
- inspect the final diff for unrelated changes, debug artifacts, secrets, generated junk, or accidental dependency churn;
- run `git diff --check` when Git is available;
- update the maintained records according to the repository workflow;
- do not mark a task Complete when repository-specific rules require manual/user confirmation that has not happened;
- leave the repository ready for the next session, but do not start the next task.
## Completion report
Give a concise engineering report containing:
1. feature/task implemented;
2. important behavior added or changed;
3. files/areas materially changed;
4. migration/API/UI implications when relevant;
5. tests and validation actually run, with results;
6. anything not verified and why;
7. context/task/decision updates made;
8. remaining blocker or required manual verification, if any.
Do not pad the report with every file touched when a short area-level summary is clearer.
## When not to use this skill
Do not use this workflow for:
- choosing the next task without implementation — use `bortstack-context` in BortStack or the repository’s own planning workflow;
- creating a new application — use `roborto-new-project` as the temporary scaffolding route;
- diagnosis where the root cause is unknown — use `webapp-debug` first;
- broad behavior-preserving restructuring — use `safe-refactor`;
- a review-only request — use `code-review` or `production-readiness-review` as appropriate;
- deployment-only work — use `deployment-check`.
## Resources
- `references/validation-matrix.md` — layer-by-layer validation prompts for common feature shapes.
- `references/feature-checklist.md` — concise implementation and scope-control checklist.
+17
View File
@@ -0,0 +1,17 @@
interface:
display_name: webapp feature
short_description: Use when Codex needs to implement one scoped web-application
feature or accepted task end-to-end in an existing project, especially across
React/frontend, Flask/backend, relational database/migrations, API contracts,
tests, and documentation; when the goal is to preserve the existing architecture
and behavior outside the requested feature; or when a feature should be delivered
as a small validated change rather than a broad refactor.
icon_small: assets/icon.svg
icon_large: assets/icon.svg
policy:
products:
- chatgpt
- codex
- api
- atlas
allow_implicit_invocation: true
+6
View File
@@ -0,0 +1,6 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7 20.4524C6.225 20.4524 5.53333 20.2857 4.925 19.9524C4.31667 19.6107 3.84167 19.1357 3.5 18.5274C3.16667 17.9191 3 17.2274 3 16.4524V6.45239C3 5.67739 3.16667 4.98573 3.5 4.37739C3.84167 3.76906 4.31667 3.29823 4.925 2.96489C5.53333 2.62323 6.225 2.45239 7 2.45239H17C17.775 2.45239 18.4667 2.62323 19.075 2.96489C19.6833 3.29823 20.1542 3.76906 20.4875 4.37739C20.8292 4.98573 21 5.67739 21 6.45239V16.4524C21 17.2274 20.8292 17.9191 20.4875 18.5274C20.1542 19.1357 19.6833 19.6107 19.075 19.9524C18.4667 20.2857 17.775 20.4524 17 20.4524H7Z" fill="#4D4D4D"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.95981 8.77245C8.22487 8.41907 8.72648 8.34735 9.07992 8.6123C9.43319 8.87741 9.50509 9.37903 9.24008 9.73241L7.79965 11.6523L9.24008 13.5723C9.50496 13.9257 9.43325 14.4273 9.07992 14.6924C8.72654 14.9573 8.22491 14.8854 7.95981 14.5322L6.16 12.1328C5.94667 11.8484 5.94667 11.4563 6.16 11.1719L7.95981 8.77245Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6844 8.89452C12.882 8.49943 13.3625 8.33957 13.7577 8.5371C14.1526 8.73474 14.3136 9.21526 14.1161 9.61034L11.7157 14.4101C11.5181 14.8051 11.0375 14.9649 10.6424 14.7676C10.2473 14.57 10.0865 14.0895 10.284 13.6943L12.6844 8.89452Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.3202 8.6123C15.6736 8.34741 16.1752 8.41908 16.4403 8.77245L18.2401 11.1719C18.4533 11.4563 18.4534 11.8484 18.2401 12.1328L16.4403 14.5322C16.1753 14.8855 15.6736 14.9571 15.3202 14.6924C14.9667 14.4273 14.8949 13.9257 15.16 13.5723L16.5995 11.6523L15.16 9.73241C14.8949 9.37896 14.9667 8.87738 15.3202 8.6123Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

@@ -0,0 +1,25 @@
# Feature checklist
## Before edits
- Read repository instructions/context.
- Confirm one scoped outcome and acceptance criteria.
- Inspect neighboring implementation and tests.
- Identify affected layers and durable decisions.
- Identify unresolved business/security/data rules before coding.
## During implementation
- Make the smallest coherent change.
- Follow existing architecture and conventions.
- Enforce validation/authorization/invariants on the server/database where appropriate.
- Keep frontend/backend contracts aligned.
- Add targeted tests with the behavior.
- Avoid unrelated cleanup and speculative improvements.
## Before completion
- Check every acceptance criterion.
- Run targeted then broader required validation.
- Review migrations and API contract changes.
- Inspect diff for unrelated changes/secrets/debug artifacts.
- Run `git diff --check` when available.
- Update project context/task/decision/handoff according to the context system.
- Stop; do not begin the next task.
@@ -0,0 +1,19 @@
# Feature validation matrix
Use only the rows relevant to the feature and the repository. Repository-specific commands and completion gates take precedence.
| Surface changed | Minimum useful evidence | Common additional validation |
|---|---|---|
| Domain/business rule | focused unit/integration test proving invariant | invalid/boundary/concurrency cases |
| ORM/model/schema | model/schema test or migration review | upgrade on disposable DB, constraint/index verification |
| API endpoint | authorized success + validation/error tests | unauthorized/forbidden/not-found/conflict cases |
| Authentication/authorization | server-side access-control test | role boundaries, token/session edge cases |
| React component/page | focused render/interaction test | loading/empty/error/disabled states |
| Frontend API integration | mocked/integration request behavior | stale/failed response and retry/submission behavior |
| Routing/navigation | route/render test | protected-route/404/back-navigation behavior |
| Styling/layout | relevant component/page render | browser widths, overflow, keyboard/focus checks |
| Build/config | config-specific test/check | production build, safe env-example review |
| Cross-stack feature | targeted backend + frontend tests | local smoke/browser flow when available |
| Migration/deployment-sensitive change | migration review + repository migration check | disposable upgrade/rollback only when supported and safe |
Always report the actual environment used when it materially differs from the repository-supported environment.