Start or Resume Objective
Start work on a new objective or resume an existing one. Updates focus.md frontmatter for session context.
Current Focus Frontmatter
!bun run ${CLAUDE_PLUGIN_ROOT}/scripts/read-focus-frontmatter.ts
Arguments
$ARGUMENTS
Instructions
1. Check if Argument is Existing Slug
- •Call
mcp__memory-bank__get_objectivewith the argument as slug - •If success: Go to Resume Mode
- •If not_found error: Go to Create Mode
2. Resume Mode
- •Call
mcp__memory-bank__build_contextwith the objective_slug - •Run:
bun run ${CLAUDE_PLUGIN_ROOT}/scripts/write-focus-frontmatter.ts set-objective <slug> - •Present context to user
- •List pending tasks with their status
3. Create Mode
- •
Derive identifiers from description:
- •Slug: lowercase, hyphens, e.g., "implement-oauth"
- •Name: Readable title
- •
Confirm with user:
- •Use AskUserQuestion to confirm name and slug
- •Options: "Use suggested", "Modify slug", "Modify name", "Other"
- •
Search for related files:
- •Use Glob/Grep to search codebase for files related to the objective
- •Present findings to user
- •
Link features:
- •Call
mcp__memory-bank__list_featuresto show available features - •Ask user which features to link (or if they want to create new ones)
- •If features selected, call
mcp__memory-bank__link_objective_to_features
- •Call
- •
Create objective:
- •Call
mcp__memory-bank__create_objectivewith:json{ "slug": "<slug>", "name": "<name>", "description": "<description>", "status": "in_progress" }
- •Call
- •
Create initial tasks:
- •Ask user for initial tasks to track
- •If provided, call
mcp__memory-bank__create_tasks
- •
Update focus.md:
- •Run:
bun run ${CLAUDE_PLUGIN_ROOT}/scripts/write-focus-frontmatter.ts set-objective <slug>
- •Run:
- •
Build and present context:
- •Call
mcp__memory-bank__build_context - •Present context summary to user
- •Call
Example Usage
code
# Resume existing objective /start-objective implement-oauth # Create new objective /start-objective "Add user authentication with OAuth support"