| name | coding-implementation |
| description | Implement development tasks from task files in the Scrum Master Assistant project (PRJ-01). Reads the task file for acceptance criteria and subtasks, reads technical-architecture.md for design decisions, creates all required source files, and updates the task status to Completed. Use when a user says "implement task T###" or "build task T###". |
Coding Implementation
Intent
Implement a development task end-to-end: read the task spec, create all required files following the technical architecture, and update task tracking.
Inputs
- Task ID (e.g.,
T001) โ resolves to a file in OrgDocument/projects/01 - Scrum master assistant/tasks/
- Task file must declare a Target Solution (e.g.,
ScrumMasterTool) โ maps to OrgDocument/Solutions/<SolutionName>/
- Solution architecture:
OrgDocument/Solutions/<SolutionName>/technical-architecture.md
- Org architecture:
OrgDocument/orgModel/technical-architecture.md
- Task tracking:
OrgDocument/projects/01 - Scrum master assistant/tasks/task-tracking.md
Outputs
- Source files created under
OrgDocument/Solutions/<SolutionName>/ per the task spec
- Task file updated: checklist items checked, status set to
Completed, progress update added
task-tracking.md table row updated: status โ Completed, completed date added to the Completed table
Workflow
Step 1 โ Read task spec
Read the task file. Extract:
- Acceptance criteria checklist
- Subtasks list
- Dependencies
- Tech notes / source requirements
Step 2 โ Read architecture (if needed)
For backed tasks, read the solution-level technical-architecture.md at OrgDocument/Solutions/<SolutionName>/technical-architecture.md to confirm naming, method signatures, and endpoint paths. Read the org-level OrgDocument/orgModel/technical-architecture.md for cross-cutting security and deployment standards.
Step 3 โ Create files
Create all files under OrgDocument/Solutions/<SolutionName>/ per the task's subtask list. Follow these project conventions:
PHP Backend (OrgDocument/Solutions/<SolutionName>/):
- PSR-4 namespace:
App\ mapped to src/
- Controllers extend no base class โ inject dependencies via constructor
- Services and Repositories are plain PHP classes with typed properties
- Always use
declare(strict_types=1);
- Passwords:
password_hash($pw, PASSWORD_BCRYPT, ['cost' => 12]) / password_verify()
- Sessions:
$_SESSION guarded by AuthMiddleware
- PDO: prepared statements only โ never string interpolation in queries
.env loaded via vlucas/phpdotenv
Directory layout (ScrumMasterTool โ from ADR-1):
OrgDocument/Solutions/ScrumMasterTool/
โโโ composer.json
โโโ .env.example
โโโ .gitignore
โโโ technical-architecture.md
โโโ public/
โ โโโ index.php โ Slim app entry point
โโโ config/
โ โโโ app.php โ DI container / middleware registration
โโโ src/
โ โโโ Controllers/
โ โโโ Services/
โ โโโ Repositories/
โ โโโ Models/
โ โโโ GraphQL/
โ โโโ Middleware/
โโโ database/
โ โโโ migrations/
โ โโโ seeds/
โโโ data/
โโโ snapshots/
Step 4 โ Update task file
- Check all completed checklist items with
[x]
- Set
**Status**: Completed
- Set
**Last Updated** to today's date
- Add a progress update entry under
### Progress Updates
Step 5 โ Update task-tracking.md
- Move the task row from the Active Tasks table to the Completed Tasks table
- Add today's date in the Completed Date column
Security Rules
- No SQL string interpolation โ PDO prepared statements only
- Passwords always bcrypt (cost โฅ 12)
- Session cookies:
httpOnly + secure flags
.env never committed โ covered by .gitignore
- GitHub PAT stored only in
.env, never hardcoded