Skip to content

OpenSIN-Code/SIN-Code-Goal-Mode-Skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SIN-Code-Goal-Mode-Skill

MCP skill for goal tracking with checkpoints, rollback, and progress reports.

Quick Start

git clone https://github.com/OpenSIN-Code/SIN-Code-Goal-Mode-Skill.git
cd SIN-Code-Goal-Mode-Skill
python3 -m pytest tests/ -v

MCP Tools

Tool Description
goal_start Start a new goal (title, description, subtasks)
goal_status Show current status (progress, blockers, next steps)
goal_list List all active/completed goals
goal_complete Mark a goal as complete
goal_checkpoint Create a checkpoint snapshot
goal_rollback Rollback to last checkpoint
goal_subtask Add/update/remove subtasks
goal_report Generate a progress report (Markdown/JSON)

CLI Scripts

./scripts/goal-start.sh -t "My Goal" -d "description" -s '[{"title":"Sub1"}]'
./scripts/goal-status.sh -g <goal_id>
./scripts/goal-list.sh -f active
./scripts/goal-complete.sh -g <goal_id>
./scripts/goal-checkpoint.sh -g <goal_id>
./scripts/goal-rollback.sh -g <goal_id>
./scripts/goal-report.sh -g <goal_id> -f markdown

Architecture

MCP Clients (OpenCode / Claude / Cursor)
    ↓ stdio
FastMCP Server (sin_goal_mode.server)
    ↓ SQLite
Persistence (sin_goal_mode.db)
    ↓ in-memory
GoalTracker + Checkpointer + Reporter + Executor

Project Structure

β”œβ”€β”€ src/sin_goal_mode/
β”‚   β”œβ”€β”€ goals.py          # Goal/Subtask dataclasses
β”‚   β”œβ”€β”€ tracker.py        # Progress tracking
β”‚   β”œβ”€β”€ checkpointer.py   # Snapshots & rollback
β”‚   β”œβ”€β”€ reporter.py       # Markdown reports
β”‚   β”œβ”€β”€ persistence.py    # SQLite storage
β”‚   β”œβ”€β”€ executor.py       # sin-* tool execution
β”‚   └── server.py         # FastMCP server (8 tools)
β”œβ”€β”€ tests/
β”‚   β”œβ”€β”€ test_goals.py
β”‚   β”œβ”€β”€ test_tracker.py
β”‚   β”œβ”€β”€ test_checkpointer.py
β”‚   β”œβ”€β”€ test_reporter.py
β”‚   β”œβ”€β”€ test_persistence.py
β”‚   β”œβ”€β”€ test_executor.py
β”‚   └── test_server.py
β”œβ”€β”€ scripts/
β”‚   └── goal-*.sh         # Bash CLI wrappers
└── .github/workflows/
    └── ceo-audit.yml     # SOTA 47-gate audit

Tests

118 tests covering:

  • Goal lifecycle (start β†’ checkpoint β†’ complete)
  • Subtask management (add/remove/complete/block)
  • Checkpoint/rollback
  • Progress calculation
  • SQLite persistence
  • Error handling
  • MCP tool integration
python3 -m pytest tests/ -v

CoDocs

Every code file has a .doc.md companion. See src/sin_goal_mode/*.doc.md and tests/*.doc.md.

License

MIT β€” OpenSIN-Code

About

MCP skill for goal tracking with checkpoints, rollback, and progress reports

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors