Skip to content

Latest commit

Β 

History

History
341 lines (231 loc) Β· 6.61 KB

File metadata and controls

341 lines (231 loc) Β· 6.61 KB

πŸ€– Guidelines for AI Assistants

This file contains general guidelines for all AI assistants (Claude, ChatGPT, Copilot, Gemini, etc.) using this Markdown task management system.


πŸ“‹ Strict Task Format

Mandatory Template

### TASK-XXX | Task title

**Priority**: [Value] | **Category**: [Value] | **Assigned**: @user1, @user2
**Created**: YYYY-MM-DD | **Started**: YYYY-MM-DD | **Due**: YYYY-MM-DD | **Finished**: YYYY-MM-DD
**Tags**: #tag1 #tag2 #tag3

Free text description. **NO `##` or `###` headings allowed**.

**Subtasks**:
- [ ] First subtask
- [x] Completed subtask

**Notes**:
Additional notes with subsections `**Title**:`.

**Result**:
What was done.

**Modified files**:
- file.js (lines 42-58)

Fields

REQUIRED: ### TASK-XXX |, **Priority**:, **Category**:, **Created**:

OPTIONAL: **Assigned**:, **Started**:, **Due**:, **Finished**:, **Tags**:, Description, **Subtasks**:, **Notes**:

❌ FORBIDDEN

  • ## Title or ### Title inside a task
  • **Subtasks** or **Notes** without :

Why? The web application's HTML parser does not recognize ## inside tasks.


πŸ”„ Workflow

1. New request

  1. Create task in kanban.md β†’ "πŸ“ To Do"
  2. Unique ID (TASK-XXX) auto-incremented
  3. Break down into subtasks if needed

2. Start work

  1. Move β†’ "πŸš€ In Progress"
  2. Add **Started**: YYYY-MM-DD
  3. Check off subtasks progressively

3. Finish work

  1. Move β†’ "βœ… Done"
  2. Add **Finished**: YYYY-MM-DD
  3. Document in **Notes**::
    • **Result**: - What was done
    • **Modified files**: - List with lines
    • **Technical decisions**: - Choices made
    • **Tests performed**: - Validated tests

4. Archiving

⚠️ Tasks are NOT archived immediately!

  • Completed tasks remain in "βœ… Done"
  • Only on user request β†’ move to archive.md section ## βœ… Archives
  • Never archive directly at the end of work

πŸ“ Examples

Simple Task

### TASK-001 | Fix login bug

**Priority**: Critical | **Category**: Backend | **Assigned**: @bob
**Created**: 2025-01-20 | **Due**: 2025-01-21
**Tags**: #bug #urgent

Users cannot log in. Error 500 in logs.

**Notes**:
Check Redis, related to yesterday's deployment.

Complete Task

### TASK-042 | Notification system

**Priority**: High | **Category**: Backend | **Assigned**: @alice
**Created**: 2025-01-15 | **Started**: 2025-01-18 | **Finished**: 2025-01-22
**Tags**: #feature

Real-time notifications with WebSockets.

**Subtasks**:
- [x] Setup WebSocket server
- [x] REST API
- [x] Email sending
- [x] Notifications UI
- [x] E2E tests

**Notes**:

**Result**:
βœ… Functional system with WebSocket, REST API and emails.

**Modified files**:
- src/websocket/server.js (lines 1-150)
- src/api/notifications.js (lines 20-85)

**Technical decisions**:
- Socket.io for WebSockets
- SendGrid for emails
- 30-day history in MongoDB

**Tests performed**:
- βœ… 100 simultaneous connections
- βœ… Auto-reconnection
- βœ… Emails < 2s

🎯 Golden Rules

βœ… ALWAYS

  1. Create task BEFORE coding
  2. Strict format (no ## in tasks)
  3. Break down if complex
  4. Real-time progress
  5. Document result in **Notes**:
  6. Reference tasks in commits (TASK-XXX)
  7. Leave in "Done" (archive only on user request)

❌ NEVER

  1. ## Title in a task
  2. Code without creating task
  3. Forget to check off subtasks
  4. Archive immediately (stay in "Done")
  5. Forget to document the result

πŸ“¦ File Structure

kanban.md

⚠️ ID comment format: <!-- Config: Last Task ID: XXX --> (auto-incremented by application)

# Kanban Board

<!-- Config: Last Task ID: 42 -->

## βš™οΈ Configuration

**Columns**: πŸ“ To Do | πŸš€ In Progress | πŸ‘€ Review | βœ… Done
**Categories**: Frontend, Backend, DevOps
**Users**: @alice, @bob
**Tags**: #bug, #feature, #docs

---

## πŸ“ To Do

### TASK-001 | Title
[...]

## πŸš€ In Progress

## πŸ‘€ Review

## βœ… Done

### TASK-003 | Completed task
[...]

archive.md

# Task Archive

> Archived tasks

## βœ… Archives

### TASK-001 | Archived task
[... full content ...]

---

### TASK-002 | Another archived task
[... full content ...]

πŸ”§ User Commands

# Planning
"Plan [feature]"
"Create roadmap for 3 months"

# Execution
"Do TASK-XXX"
"Continue TASK-XXX"

# Tracking
"Where are we?"
"Weekly status"

# Modifications
"Break down TASK-XXX"
"Add subtask to TASK-XXX"

# Search
"Search in archives: [keyword]"

# Maintenance
"Archive completed tasks"

πŸ“˜ Git Integration

# Commits with reference
git commit -m "feat: Add feature (TASK-042 - 3/5)"
git commit -m "fix: Bug fix (TASK-001)"

# Branches
git checkout -b feature/TASK-042-notifications

πŸ“ AI-Specific Configuration

Each AI has its own configuration file:

AI Assistant Configuration File Location
Claude CLAUDE.md Project root
GitHub Copilot copilot-instructions.md .github/
OpenAI CLI OPENAI_CLI.md Project root
ChatGPT CHATGPT.md or Custom GPT Root or Web
Gemini GEMINI.md or instructions.md Root or .gemini/
Qwen QWEN.md or .qwenrc Project root
Codeium / Windsurf instructions.md .windsurf/ or .codeium/

These files must:

  1. Reference this file AI_WORKFLOW.md
  2. Be adapted to each AI's specifics
  3. Remain minimalist (only a few lines)

Minimal Template for AI Configuration File

# πŸ€– Instructions for [AI NAME]

## πŸ“‹ Task Management System

**Every action = One documented task in kanban.md**

## πŸ“š Complete Documentation

**⚠️ READ IMMEDIATELY**: `AI_WORKFLOW.md`

This file contains everything: format, workflow, commands, examples.

## βš™οΈ Critical Rule #1

**NO `##` or `###` headings inside a task**
- Use `**Subtasks**:` and `**Notes**:` with colons
- Subsections: `**Result**:`, `**Modified files**:`

**Why?** The HTML parser does not recognize `##` inside tasks.

---

**Read `AI_WORKFLOW.md` now.**

πŸŽ“ First Use

Initialization

On your first interaction with the AI:

"Read AI_WORKFLOW.md and use the task system"

The AI will automatically:

  1. Read AI_WORKFLOW.md
  2. Understand the complete format and workflow
  3. Be ready to manage tasks according to defined rules

Usage Examples

Create a task:

"Plan adding a real-time notification system"

Work on a task:

"Do TASK-007"

Status update:

"Where are we?"

Archive:

"Archive completed tasks"

This guide ensures complete transparency and traceability of AI work.