chore: moving towards agentic development
This commit is contained in:
30
docs/PROMPTS/backend-task.md
Normal file
30
docs/PROMPTS/backend-task.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Backend Task Prompt
|
||||
|
||||
You are implementing a backend task in this repository.
|
||||
|
||||
## Read First
|
||||
|
||||
- `AGENTS.md`
|
||||
- `docs/ARCHITECTURE.md`
|
||||
- `docs/DEVELOPMENT_WORKFLOW.md`
|
||||
- `docs/AGENTIC_WORKFLOW.md`
|
||||
- Relevant feature spec in `docs/FEATURES/`
|
||||
- Relevant task file in `docs/TASKS/`
|
||||
|
||||
## Instructions
|
||||
|
||||
- Implement only the requested backend task.
|
||||
- Keep code under `backend/src/Socialize.Api`.
|
||||
- Follow the existing FastEndpoints module structure.
|
||||
- Add or update tests under `backend/tests/Socialize.Tests` when the behavior is testable.
|
||||
- Do not introduce repository/service layers unless the task explicitly requires it.
|
||||
|
||||
## After Coding
|
||||
|
||||
Run or recommend:
|
||||
|
||||
```bash
|
||||
dotnet build backend/Socialize.slnx
|
||||
dotnet test backend/Socialize.slnx
|
||||
./scripts/update-openapi.sh
|
||||
```
|
||||
24
docs/PROMPTS/debug.md
Normal file
24
docs/PROMPTS/debug.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# Debug Prompt
|
||||
|
||||
You are debugging a specific failure in this repository.
|
||||
|
||||
## Read First
|
||||
|
||||
- `AGENTS.md`
|
||||
- `docs/ARCHITECTURE.md`
|
||||
- `docs/DEVELOPMENT_WORKFLOW.md`
|
||||
|
||||
## Error
|
||||
|
||||
Paste the full error here.
|
||||
|
||||
## Instructions
|
||||
|
||||
- Identify the most likely root cause.
|
||||
- Make the smallest safe fix.
|
||||
- Do not refactor unrelated code.
|
||||
- Explain how to verify the fix.
|
||||
|
||||
## Validation
|
||||
|
||||
List the exact command or commands to run after the fix.
|
||||
30
docs/PROMPTS/frontend-task.md
Normal file
30
docs/PROMPTS/frontend-task.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Frontend Task Prompt
|
||||
|
||||
You are implementing a frontend task in this repository.
|
||||
|
||||
## Read First
|
||||
|
||||
- `AGENTS.md`
|
||||
- `docs/ARCHITECTURE.md`
|
||||
- `docs/DEVELOPMENT_WORKFLOW.md`
|
||||
- `docs/AGENTIC_WORKFLOW.md`
|
||||
- Relevant feature spec in `docs/FEATURES/`
|
||||
- Relevant task file in `docs/TASKS/`
|
||||
|
||||
## Instructions
|
||||
|
||||
- Implement only the requested frontend task.
|
||||
- Existing route-level app screens live under `frontend/src/views/app`.
|
||||
- New isolated feature slices should prefer `frontend/src/features/<feature>`.
|
||||
- Use `frontend/src/config.js` for runtime configuration.
|
||||
- Preserve token refresh behavior in `authStore` and `frontend/src/plugins/api.js`.
|
||||
- Use generated API types from `frontend/src/api/schema.d.ts` when the endpoint has been generated.
|
||||
|
||||
## After Coding
|
||||
|
||||
Run or recommend:
|
||||
|
||||
```bash
|
||||
cd frontend
|
||||
npm run build
|
||||
```
|
||||
29
docs/PROMPTS/refactor.md
Normal file
29
docs/PROMPTS/refactor.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Refactor Prompt
|
||||
|
||||
You are refactoring part of this repository.
|
||||
|
||||
## Read First
|
||||
|
||||
- `AGENTS.md`
|
||||
- `docs/ARCHITECTURE.md`
|
||||
- `docs/AGENTIC_WORKFLOW.md`
|
||||
- Relevant feature spec
|
||||
|
||||
## Scope
|
||||
|
||||
Describe the exact refactor boundary.
|
||||
|
||||
## Rules
|
||||
|
||||
- Preserve behavior.
|
||||
- Do not add features.
|
||||
- Keep the diff focused.
|
||||
- Update docs if structure or workflow changes.
|
||||
- Run tests/builds after.
|
||||
|
||||
## Validation
|
||||
|
||||
```bash
|
||||
dotnet test backend/Socialize.slnx
|
||||
cd frontend && npm run build
|
||||
```
|
||||
Reference in New Issue
Block a user