home / skills / abdullahbeam / nexus-design-abdullah / execute-project

This skill loads and manages execution of existing projects, tracking progress and validating tasks to ensure steady completion.

npx playbooks add skill abdullahbeam/nexus-design-abdullah --skill execute-project

Review the files below or copy the command above to add this skill to your agents.

Files (4)
SKILL.md
20.3 KB
---
name: execute-project
description: "The ONLY way to interact with existing projects. Load when user references ANY project by name, ID, or number. Includes: continue, resume, status, progress, check, review, work on [existing project]. NEVER read project files directly."
---

## šŸŽÆ Onboarding Awareness (CONTEXTUAL SUGGESTIONS)

**During project execution, AI should watch for teachable moments:**

### Onboarding Suggestions During Execution

Check `learning_tracker.completed` in user-config.yaml for contextual suggestions:

**If user encounters repeating patterns:**
```yaml
learn_skills: false  → Suggest when user does something that could be a skill
```
Pattern detection: If user asks to do something similar to what they've done before,
or creates similar outputs repeatedly → gently suggest 'learn skills':
```
šŸ’” I notice this task is similar to [previous task]. If you do this regularly,
it might be worth learning about Skills (reusable workflows). Run 'learn skills'
(10 min) when you have time.
```

**If user asks about integrations during execution:**
```yaml
learn_integrations: false  → Suggest when user mentions external tools
```
```
šŸ’” You mentioned [tool]. If you work with external tools often, 'learn integrations'
(10 min) teaches how Nexus connects to services like Notion, GitHub, etc.
```

**On project completion (100%):**
If multiple onboarding skills incomplete, suggest the next logical one:
```
šŸŽ‰ Project complete! You're getting the hang of Nexus.

šŸ’” Next learning opportunity: 'learn skills' - turn repeating work into
reusable workflows (10 min). Or 'learn nexus' for system mastery (15 min).
```

### DO NOT Suggest If:
- User is mid-task and focused (wait for natural breaks)
- User has explicitly dismissed learning suggestions
- All onboarding already complete

---

# Skill: Execute Project

**Purpose**: Systematically execute project work with continuous progress tracking and task completion validation.

**Load When**:
- User says: "execute project [ID/name]"
- User says: "continue [project-name]"
- User says: "work on [project-name]"
- Orchestrator detects: Project continuation (IN_PROGRESS status)

**Core Value**: Ensures work stays aligned with planned tasks and provides continuous visibility into progress.

---

## Quick Reference

**What This Skill Does**:
1. āœ… Loads project context (planning files, current progress)
2. āœ… Identifies current phase/section and next uncompleted task
3. āœ… Executes work systematically (section-by-section or task-by-task)
4. āœ… Continuously updates task completion using bulk-complete-tasks.py
5. āœ… Validates progress after each section/checkpoint
6. āœ… Handles pause-and-resume gracefully
7. āœ… Auto-triggers close-session when done

**Key Scripts Used**:
- `nexus-loader.py --project [ID]` - Load project context
- `bulk-complete-tasks.py --project [ID] --section [N]` - Complete section
- `bulk-complete-tasks.py --project [ID] --tasks [range]` - Complete specific tasks
- `bulk-complete-tasks.py --project [ID] --all` - Complete all (when project done)

---

## Prerequisites

**Before using this skill, ensure**:
- āœ… Project exists in `02-projects/` with valid metadata
- āœ… Planning files exist: `overview.md`, `plan.md` (or `design.md`), `steps.md` (or `tasks.md`)
- āœ… Tasks file has checkbox format: `- [ ] Task description`
- āœ… Project status is `IN_PROGRESS` or `PLANNING` (ready to execute)

**If prerequisites not met**:
- Missing project → Use `create-project` skill first
- Missing planning → Complete planning phase before execution
- Invalid task format → Validate with `validate-system` skill

---

## Workflow: 7-Step Execution Process

### Step 1: Initialize Progress Tracking

**Action**: Create comprehensive TodoWrite with ALL workflow steps

**Template**:
```markdown
1. Load project context
2. Identify current phase/section
3. Execute Section 1
4. Bulk-complete Section 1
5. Execute Section 2
6. Bulk-complete Section 2
... (repeat for all sections)
N. Project completion validation
N+1. Trigger close-session
```

**Purpose**: Provides user visibility into entire execution workflow

**Mark complete when**: TodoWrite created with all steps

---

### Step 2: Load Project Context

**Action**: Load complete project context using nexus-loader.py

**Commands**:
```bash
# Load project with full content (overview, plan, steps, etc.)
python 00-system/core/nexus-loader.py --project [project-id]
```

**The loader returns**:
- File paths for all planning files (overview.md, plan.md, steps.md, etc.)
- YAML metadata extracted from each file
- Output file listings
- `_usage.recommended_reads` - list of paths to read

**Then use Read tool in parallel** to load the file contents:
```
Read: {path from recommended_reads[0]}
Read: {path from recommended_reads[1]}
Read: {path from recommended_reads[2]}
```

**Display Project Summary**:
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PROJECT: [Project Name]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Status: IN_PROGRESS
Progress: [X]/[Y] tasks complete ([Z]%)

Current Section: Section [N] - [Name]
Next Task: [Task description]

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```

**Mark complete when**: All planning files loaded, summary displayed

---

### Step 3: Identify Current Phase

**Action**: Parse tasks file to determine current state

**Detection Logic**:
```python
# Parse tasks.md or steps.md
tasks = extract_all_tasks(content)
sections = extract_sections(content)

# Find first uncompleted section
current_section = find_first_uncompleted_section(sections, tasks)

# Find next uncompleted task
next_task = find_next_uncompleted_task(tasks)

# Calculate progress
total_tasks = len(tasks)
completed_tasks = count_completed(tasks)
progress_pct = (completed_tasks / total_tasks) * 100
```

**Display Current State**:
```
šŸ“ CURRENT STATE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Progress: [15/40 tasks] (37.5%)

āœ… Section 1: Planning (Tasks 1-8) - COMPLETE
āœ… Section 2: Setup (Tasks 9-12) - COMPLETE
šŸ”„ Section 3: Implementation (Tasks 13-28) - IN PROGRESS
   ā”œā”€ Next: Task 15 - "Implement scoring logic"
   └─ Remaining: 14 tasks in this section
⬜ Section 4: Testing (Tasks 29-35) - NOT STARTED
⬜ Section 5: Deployment (Tasks 36-40) - NOT STARTED

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```

**Ask User**:
```
Ready to continue Section 3: Implementation?

Options:
1. Continue from Task 15 (recommended)
2. Review completed work first
3. Jump to different section
4. Exit and save progress
```

**Mark complete when**: Current state identified and displayed

---

### Step 4: Execute Work with Continuous Tracking

**CRITICAL PATTERN**: Section-based execution with automatic bulk-complete

**For each section**:

#### 4A. Show Section Overview
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SECTION 3: IMPLEMENTATION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Goal: [Section goal from tasks.md]
Tasks: 13-28 (16 tasks total)
Estimate: [Time estimate if available]

Uncompleted tasks in this section:
  [ ] Task 15: Implement scoring logic
  [ ] Task 16: Create validation rules
  [ ] Task 17: Build API endpoints
  ... (show all uncompleted)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
```

#### 4B. Execute Tasks in Section
```
Starting Task 15: Implement scoring logic...

[Execute work]
[Show outputs, code, decisions]

āœ… Task 15 complete!

Starting Task 16: Create validation rules...
```

**Adaptive Granularity** (see `references/adaptive-granularity.md`):
- **Small sections** (≤5 tasks): Execute all, then bulk-complete
- **Large sections** (>15 tasks): Checkpoint every 5-7 tasks
- **Unstructured** (no sections): Checkpoint every 10 tasks

#### 4C. Section Completion Checkpoint
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SECTION 3: IMPLEMENTATION - COMPLETE! šŸŽ‰
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Tasks completed in this section: 16/16
All work validated and ready to mark complete.

Ready to bulk-complete Section 3?
  āœ… Marks tasks 13-28 as [x] in steps.md
  āœ… Updates progress automatically
  āœ… Validates by re-reading file

Type 'yes' to proceed, or 'review' to check work first.
```

#### 4D. Bulk-Complete Section
```bash
# User confirms → Execute bulk-complete
python 00-system/skills/bulk-complete/scripts/bulk-complete.py \
  --project [project-id] \
  --section 3 \
  --no-confirm
```

**Validation Output**:
```
[INFO] Using task file: steps.md
Project: 05-lead-qualification
Tasks: 12 uncompleted, 28 completed (Total: 40)

[MODE] Complete 12 uncompleted tasks in Section/Phase 3

[AUTO-CONFIRM] Proceeding without confirmation (--no-confirm flag)

[SUCCESS] Successfully completed 12 tasks!
Updated: 40/40 tasks now complete (100%)
āœ… VALIDATED: Re-read file shows 0 uncompleted, 40 completed
File: 02-projects/05-lead-qualification/01-planning/steps.md
```

#### 4E. Show Updated Progress
```
āœ… Section 3 complete!

Updated Progress: 28/40 tasks (70%)

Remaining sections:
  ⬜ Section 4: Testing (Tasks 29-35) - 7 tasks
  ⬜ Section 5: Deployment (Tasks 36-40) - 5 tasks

Continue to Section 4, or pause for today?
```

**Mark complete when**: Section executed and bulk-completed with validation

---

### Step 5: Incremental Progress Updates

**After each section/checkpoint**:

**Display Progress Bar**:
```
Progress: [ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘ā–‘] 80% (32/40 tasks)

Completed:
  āœ… Section 1: Planning (8 tasks)
  āœ… Section 2: Setup (4 tasks)
  āœ… Section 3: Implementation (16 tasks)
  āœ… Section 4: Testing (4 tasks)

Remaining:
  ⬜ Section 5: Deployment (8 tasks)
```

**Ask User**:
```
Options:
1. Continue to Section 5: Deployment
2. Pause and save progress (will resume here next session)
3. Review completed work
4. Jump to different section
```

**Mark complete when**: Progress updated and user decides next step

---

### Step 6: Handle Partial Completion

**When user says "pause" or "done for today"**:

**Offer Partial Task Completion**:
```
Current progress: 25/40 tasks (62.5%)

Do you want to mark any completed tasks before pausing?

Options:
1. Bulk-complete specific tasks (e.g., "1-10,15-20")
2. Bulk-complete current section (Section 3)
3. No, save current state as-is
```

**If user wants bulk-complete**:
```bash
# Example: User completed tasks 20-25 but not full section
python 00-system/skills/bulk-complete/scripts/bulk-complete.py \
  --project [project-id] \
  --tasks 20-25 \
  --no-confirm
```

**Then trigger close-session**:
```
Saving progress...

[Trigger close-session skill]

āœ… Session saved!
āœ… Progress: 25/40 tasks complete (62.5%)
āœ… Next session will resume at: Section 3, Task 26

See you next time! šŸ‘‹
```

**Mark complete when**: Partial completion handled, close-session triggered

---

### Step 7: Project Completion

**When all sections done**:

**Final Validation**:
```
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PROJECT COMPLETE! šŸŽ‰
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

All sections executed:
  āœ… Section 1: Planning (8 tasks)
  āœ… Section 2: Setup (4 tasks)
  āœ… Section 3: Implementation (16 tasks)
  āœ… Section 4: Testing (7 tasks)
  āœ… Section 5: Deployment (5 tasks)

Total: 40/40 tasks (100%)

Ready to finalize project completion?
  āœ… Mark all tasks complete
  āœ… Update project status to COMPLETE
  āœ… Archive project
  āœ… Trigger close-session

Type 'yes' to proceed.
```

**Execute Final Bulk-Complete**:
```bash
# Complete any remaining tasks
python 00-system/skills/bulk-complete/scripts/bulk-complete.py \
  --project [project-id] \
  --all \
  --no-confirm
```

**Update Project Status**:
```bash
# Update overview.md metadata
status: COMPLETE
last_worked: [today's date]
```

**Trigger close-session**:
```
āœ… Project marked COMPLETE!
āœ… All 40/40 tasks checked off
āœ… Ready to archive (use 'archive-project' skill)

[Trigger close-session skill]

Congratulations on completing this project! šŸŽ‰
```

**Mark complete when**: Project finalized, status updated, close-session triggered

---

## Advanced Features

### Adaptive Granularity

**Auto-detects project size and adjusts tracking granularity**:

```python
# Small projects (≤15 tasks)
→ Task-by-task execution with real-time updates

# Medium projects (16-30 tasks, with sections)
→ Section-based execution with bulk-complete per section

# Large projects (>30 tasks, with sections)
→ Section-based with periodic checkpoints (every 5-7 tasks)

# Unstructured projects (no sections)
→ Checkpoint every 10 tasks
```

**See**: `references/adaptive-granularity.md` for complete logic

---

### Mental Models Integration (Proactive Offering)

**When to Offer**: At key decision points during execution (section completion, risk assessment, design choices)

**Pattern**: AI runs select_mental_models.py, reviews output, and offers 2-3 relevant models to user

**Mental Models Skill Integration**:

The execute-project skill automatically references mental-models at decision points for:
- **Risk analysis** at section checkpoints
- **Decision-making** when multiple approaches exist
- **Problem decomposition** when stuck on complex tasks
- **Systems thinking** for dependency validation

**Required Workflow**:
1. Run script to get available models:
   ```bash
   python 00-system/mental-models/scripts/select_mental_models.py --format brief
   ```
2. Select 2-3 relevant models based on context
3. Offer to user with brief descriptions
4. Load individual model file only after user selects

**Offering Pattern**:

```markdown
# At Section Completion Checkpoint
Section 3 complete! Before bulk-completing, I've reviewed the mental models catalog and recommend:

1. **Pre-Mortem** – Imagine failure modes before implementation
   Best for: High-stakes sections, risk mitigation

2. **Systems Thinking** – Analyze interdependencies and feedback loops
   Best for: Complex integrations, dependency validation

3. **Force Field Analysis** – Identify driving vs restraining forces
   Best for: Understanding obstacles and enablers

Which approach sounds most useful? Or continue without structured analysis?

[User picks option]

If user picks a model:
→ Read: 00-system/mental-models/models/diagnostic/pre-mortem.md
→ Apply model questions before bulk-completing section
```

**Benefits**:
- āœ… **Proactive** - AI runs script to identify relevant options
- āœ… **User Choice** - User picks which model (or none) to apply
- āœ… **Contextual** - Offered at decision points only
- āœ… **Individual files** - Each model has its own file with full details
- āœ… **Efficient** - Descriptions are brief (3-7 words) but descriptive

**When to Skip Offering**:
- āŒ Routine, straightforward sections (offer only at complex/risky points)
- āŒ User explicitly requests speed over depth
- āŒ Simple task execution (no major decisions)

**See**: [`mental-models framework`](../../mental-models/mental-models.md) for full catalog and offering guidance

---

### Error Handling

**Common Issues**:

**Issue**: Tasks file not found
**Solution**: Validate project structure with `validate-system` skill

**Issue**: No uncompleted tasks
**Solution**: Display "All tasks complete!" and offer to mark project COMPLETE

**Issue**: Invalid task format (no checkboxes)
**Solution**: Show error with example format: `- [ ] Task description`

**Issue**: Bulk-complete script fails
**Solution**: Fallback to manual Edit tool, log error for debugging

**See**: `references/error-handling.md` for complete troubleshooting guide

---

## Integration with Other Skills

### create-project → execute-project
```
Session 1: create-project
  → Creates planning files (overview, plan, steps)
  → Status: PLANNING
  → close-session saves state

Session 2: execute-project
  → Loads planning files
  → Executes work systematically
  → Status: IN_PROGRESS
  → Continuously updates tasks
  → close-session saves progress
```

### execute-project → close-session
```
execute-project (in progress)
  → User says "done for today"
  → execute-project offers partial bulk-complete
  → Triggers close-session
  → close-session:
      - Reads current task state
      - Creates session report
      - Saves progress
      - Prepares for next session
```

### execute-project → archive-project
```
execute-project (100% complete)
  → Marks project status: COMPLETE
  → Suggests: "Use 'archive-project' skill to move to archive"
  → User invokes archive-project
  → Project moved to 05-archived/
```

---

## Success Criteria

**This skill succeeds when**:

- āœ… Project context loaded with all planning files
- āœ… Current phase/section identified correctly
- āœ… Work executed systematically (not ad-hoc)
- āœ… Tasks bulk-completed after each section
- āœ… Progress validated after every bulk-complete
- āœ… User sees continuous progress updates
- āœ… Partial completion handled gracefully (pause/resume)
- āœ… Project completion triggers final validation
- āœ… close-session auto-triggered at appropriate times

---

## Example Interaction

**User**: "Continue project 05-lead-qualification"

**AI**:
```
Loading project 05-lead-qualification...

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PROJECT: Lead Qualification Workflow
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Status: IN_PROGRESS
Progress: 12/40 tasks complete (30%)

Current Section: Section 2 - Implementation
Next Task: Task 13 - "Implement scoring logic"

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Ready to continue Section 2?
```

**User**: "Yes"

**AI**:
```
Starting Section 2: Implementation...

Task 13: Implement scoring logic
[Executes work, shows code]
āœ… Task 13 complete!

Task 14: Create validation rules
[Executes work]
āœ… Task 14 complete!

... (continues through Section 2)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SECTION 2: IMPLEMENTATION - COMPLETE! šŸŽ‰
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Tasks completed: 16/16
Ready to bulk-complete Section 2?
```

**User**: "Yes"

**AI**:
```
Running bulk-complete for Section 2...
[SUCCESS] Successfully completed 16 tasks!
āœ… VALIDATED: 28/40 tasks now complete (70%)

Updated Progress: [ā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–ˆā–‘ā–‘ā–‘] 70%

Continue to Section 3: Testing, or pause?
```

**User**: "Pause"

**AI**:
```
Saving progress...
[Triggers close-session]

āœ… Session saved!
āœ… Progress: 28/40 tasks (70%)
āœ… Next session: Section 3, Task 29

See you next time! šŸ‘‹
```

---

## Reference Documents

**For detailed implementation guidance**:

- **[workflow.md](references/workflow.md)** - Complete 7-step workflow with examples
- **[task-tracking.md](references/task-tracking.md)** - Task parsing and bulk-complete logic
- **[adaptive-granularity.md](references/adaptive-granularity.md)** - Smart detection for project size
- **[error-handling.md](references/error-handling.md)** - Troubleshooting common issues

---

**Version**: 1.0
**Created**: 2025-01-22
**Status**: Production Ready
**Author**: Nexus-v3 System

Overview

This skill is the only approved way to interact with existing projects. It guides project execution step-by-step, tracks progress, and validates task completion while preserving project integrity. It never reads project files directly and instead uses loader and bulk-complete scripts to inspect and update project state.

How this skill works

The skill loads project context via a loader script that returns metadata and recommended read paths, then identifies the current section and next uncompleted task by parsing task metadata rather than opening files directly. It executes work section-by-section (or task-by-task for small projects), uses bulk-complete scripts to mark tasks complete, and re-reads validated outputs through the loader to confirm progress. It supports pause/resume, incremental checkpoints, and auto-triggers a close-session when work is finished.

When to use it

  • When you say continue, resume, work on, or execute project [name/ID/number].
  • When a project status is IN_PROGRESS or PLANNING and you want to advance execution.
  • When you need systematic, validated bulk updates to task checkboxes.
  • When you want adaptive granularity for small, medium, or large projects.
  • When you need to pause and reliably resume at the next uncompleted task.

Best practices

  • Ensure planning files (overview.md, plan.md/design.md, steps.md/tasks.md) exist and tasks use checkbox format before executing.
  • Run the loader first to get recommended read paths and a project summary; avoid direct file editing during execution.
  • Follow section-based checkpoints and confirm bulk-complete actions to keep progress auditable.
  • Use adaptive granularity: task-by-task for ≤15 tasks, section checkpoints for medium projects, periodic checkpoints for large projects.
  • When pausing, optionally bulk-complete recently finished tasks so resume starts at a clean boundary.

Example use cases

  • Resume an in-progress software project to continue Implementation Section from the next uncompleted task.
  • Execute a testing phase and bulk-complete all test-case tasks after validation.
  • Pause at midday, bulk-mark recently finished tasks, trigger close-session, and resume later with preserved context.
  • Run a final bulk-complete to validate and mark a project COMPLETE, then trigger archiving workflows.
  • Use adaptive checkpoints on a large project to keep work manageable and minimize rollback risk.

FAQ

Can this skill read project files directly?

No. It uses a loader script to extract metadata and recommended reads, and uses bulk-complete scripts to update tasks without directly opening raw project files.

How does it validate progress after bulk-completing tasks?

After running bulk-complete, the skill re-queries the loader output and recommended read paths to confirm the task file shows the expected completed counts and percentages.