project_tasks

Category: General Risk: Low risk scikrikci/skills
filesystem_access

name: project_tasks
description: Create and manage persistent project tasks visible to the user.

Project Tasks

Manage persistent, user-visible project tasks that can be handed to the
main agent or to a task agent. Only task agents run in isolated
environments. Use these to track high-level deliverables and milestones
that the user cares about.

Project Tasks vs Internal Task List

Aspect Project Tasks Internal Task List
Purpose User-visible deliverables Agent's own work breakdown
Persistence Persistent across sessions (PID2) Current session only
Visibility Shown to the user Internal to the agent
Granularity High-level milestones Detailed implementation steps

When to Use

  • Tracking user-requested features or deliverables
  • Breaking a project into visible milestones
  • Communicating progress to the user
  • Managing tasks that persist across sessions

When NOT to Use

  • Internal agent work breakdown (use the internal task list)
  • Temporary implementation steps
  • Sub-tasks that only matter to the agent

Task Identifiers

Tasks are identified by taskRef — a short string like "#1", "#2", "#3". Use it in all API calls and when referring to tasks in conversation: "Task #1 (Add authentication)".

Available Functions

getProjectTask(taskRef)

Get a project task by task ref.

Parameters:

Parameter Type Required Description
taskRef str Yes Task ref to retrieve

Returns: Dict with taskRef, title, description, state, createdAt, updatedAt

Example:

const task = await getProjectTask({ taskRef: "#1" });
// "Task #1 (Add authentication)"

updateProjectTask(taskRef, title=None, description=None, dependsOn=None)

Update an existing project task's content. All fields are optional - only provided fields are updated.

Parameters:

Parameter Type Required Description
taskRef str Yes Task ref to update
title str No New title
description str No New description
dependsOn array of str No Full list of dependency task refs (replaces existing)

Returns: Dict with taskRef, title, description, state, createdAt, updatedAt

Example:

await updateProjectTask({ taskRef: "#1", title: "Updated title" });

markTaskInProgress(taskRef)

Resume work on an IMPLEMENTED task. Call this before making further changes to a task that was already marked complete.

Parameters:

Parameter Type Required Description
taskRef str Yes Task ref to resume

Returns: Dict with taskRef, title, description, state, createdAt, updatedAt

Example:

await markTaskInProgress({ taskRef: "#1" });

searchProjectTasks(query, locale=None, limit=None)

Search project tasks by text query, ordered by relevance.

Parameters:

Parameter Type Required Description
query str Yes Search query. Supports boolean syntax: "exact phrase", foo bar (both words), foo OR bar, -foo (exclude)
locale str No BCP 47 locale of the query (e.g. "en", "es", "fr"). Pass when the query is in a non-English language for better stemming. Omit for English.
limit int No Maximum number of results (default: 20)

Returns: List of dicts, each with taskRef, title, description, state, score, matchType, createdAt, updatedAt

Example:

// Simple keyword search
const results = await searchProjectTasks({ query: "authentication" });

// Boolean syntax: find auth tasks that aren't about login
const results = await searchProjectTasks({ query: "authentication -login", limit: 5 });

// Exact phrase
const results = await searchProjectTasks({ query: '"payment integration"' });

// Non-English query — pass locale for better stemming
const results = await searchProjectTasks({ query: "autenticación", locale: "es" });

for (const r of results) {
    console.log(`${r.taskRef} (${r.title}) — score: ${r.score}`);
}

listProjectTasks(state=None, taskRefs=None, includeDescription=False)

List project tasks, optionally filtered by state or specific task refs.

Parameters:

Parameter Type Required Description
state str No Filter by state (e.g., "IN_PROGRESS")
taskRefs array of str No List of specific task refs to retrieve
includeDescription bool No Whether to include the task description (default: false)

Returns: List of dicts, each with taskRef, title, state, dependsOn, createdAt, updatedAt (plus description if includeDescription is true). dependsOn lists the task refs of dependency tasks that are also in the result set. When filtering by taskRefs, dependencies pointing outside the filter are omitted.

Example:

const allTasks = await listProjectTasks();
for (const task of allTasks) {
    console.log(`  - Task ${task.taskRef} (${task.title})`);
}

bulkCreateProjectTasks(tasks)

Create multiple tasks at once with dependency relationships. Each task is created in PROPOSED state. The plan file content becomes the task description.

By default, create one task per user request. Combine related work into a single plan rather than splitting into many tasks. Only create multiple tasks if the user explicitly asks for them or the request contains clearly independent, unrelated goals.

Parameters:

Parameter Type Required Description
tasks array Yes List of task objects (see below)

Each task object:

Field Type Required Description
id str No Alias for this task within the batch. Used by other tasks' dependsOn to declare dependencies. Auto-generated if omitted.
title str Yes Short title for the task
filePath str Yes Path to the plan file (e.g. .local/tasks/payment-integration.md). The file content becomes the task description.
dependsOn array No List of id values from other tasks in this batch, or task refs ("#1", "#2") of already-existing accepted tasks. Never depend on existing PROPOSED tasks — only on tasks that are PENDING or later. Tasks within the same batch may depend on each other freely.

Returns: List of created task dicts with taskRef, title, description, state, dependsOn, createdAt, updatedAt

Examples:

// Single task (no dependencies)
const created = await bulkCreateProjectTasks({
    tasks: [
        {
            title: "Payment integration",
            filePath: ".local/tasks/payment-integration.md",
        },
    ]
});

// Multiple tasks with dependencies using id aliases
const created = await bulkCreateProjectTasks({
    tasks: [
        {
            id: "auth",
            title: "Add authentication",
            filePath: ".local/tasks/auth.md",
        },
        {
            id: "payments",
            title: "Payment integration",
            filePath: ".local/tasks/payments.md",
            dependsOn: ["auth"],
        },
    ]
});

Plan File Format

Write each project-task plan file as a plain markdown document in
.local/tasks/. The file content becomes the task description.

By default, create one project task per user request. Combine related work
into a single plan rather than splitting into many tasks. Only create
multiple tasks if the user explicitly asks for them or the request contains
clearly independent, unrelated goals.

Dependencies are not declared in the plan file. Pass them via dependsOn
when creating or updating tasks.

Plan body

The first line should be a short, descriptive title (3-6 words) prefixed
with #. Then include these sections:

  • What & Why — Brief description of the feature/change and its purpose.
  • Done looks like — Observable outcomes when complete (what the user
    sees, not code-level details).
  • Out of scope — What is explicitly NOT included.
  • Tasks — Numbered list of implementation steps within this plan. These
    are internal steps for the executor agent, not separate project tasks.
  • Relevant files — Existing files discovered during investigation that
    the executor should start from. Use backtick-wrapped paths only, with no
    descriptions after them. Only list files you verified exist.
    • Whole file: src/api/billing.ts
    • Specific lines: src/api/billing.ts:12-85
    • Multiple ranges: src/api/billing.ts:12-85,200-250
    • WRONG: src/api/billing.ts — Billing API handlers (lines 12-85)

Assume features build on each other. If a new task depends on another task,
declare that dependency via dependsOn rather than in the plan body. You
may depend on existing tasks that are PENDING or later — never on existing
PROPOSED tasks. Tasks within the same batch may depend on each other freely.

Rules for the ## Tasks section:

  • Each task should be describable in 1-2 sentences.
  • Focus on what to build, not how to build it.
  • Do not include file paths, code snippets, CSS classes, or line-level edits
    in task bullets. Put file references in ## Relevant files instead.
  • Draw clean boundaries so parallel executors will not create conflicting
    changes. If two tasks would touch the same area, combine them into one
    project task.
  • If there is a critical architectural constraint the executor must follow,
    add a short note.

Example

# Payment Integration

## What & Why
Add Stripe payment processing so users can upgrade to paid plans.

## Done looks like
- Users can enter payment info and subscribe to a plan
- Successful payments activate the paid tier immediately
- Failed payments show a clear error message

## Out of scope
- Invoicing and receipts (future work)
- Multiple payment methods (Stripe only for now)

## Tasks
1. **Stripe backend integration** — Set up Stripe SDK, create endpoints for creating checkout sessions and handling webhooks.

2. **Payment UI** — Build the checkout page with plan selection and Stripe Elements for card input.

3. **Tier activation** — On successful payment, upgrade the user's account to the paid tier and reflect it in the UI.

## Relevant files
- `src/api/billing.ts:12-85`
- `src/config/stripe.ts`

proposeProjectTasks(taskRefs)

Propose existing tasks for user review and approval. This pauses the agent to wait for user approval.

Parameters:

Parameter Type Required Description
taskRefs array of str Yes Task refs to propose

Returns: Dict with proposed list of { taskRef, title } summaries

Example:

await proposeProjectTasks({ taskRefs: created.map(t => t.taskRef) });

Task States

State Description
PROPOSED Suggested but not yet accepted by the user. No implementation exists.
PENDING Accepted, waiting to start. No implementation exists.
IN_PROGRESS Being worked on by a task agent in a separate Repl. Changes are not visible in this Repl.
IMPLEMENTED Work is done in a separate Repl, ready for merge. Changes are not visible in this Repl — do not search the codebase for them.
MERGING Currently being merged. Do not duplicate.
MERGED Finished and merged. Changes are now visible in this Repl.
BLOCKED_BY_DRIFT Blocked because an upstream task diverged from its plan; needs replanning.
CANCELLED Abandoned.

User Communication Rules

Task management is how you coordinate work with the user. Follow these rules strictly:

  1. Always describe tasks by ref and title: When referring to tasks, always use their task ref and title, e.g. "Task #1 (Add authentication button)".
  2. Never use internal state names: When talking to the user, use these display names instead:
    • PROPOSED → "Drafts"
    • PENDING → "Active"
    • IN_PROGRESS → "Active"
    • IMPLEMENTED → "Ready"
    • MERGING → "Merging"
    • MERGED → "Merged"
    • CANCELLED → "Archived"
    • BLOCKED_BY_DRIFT → "Affected by another task that changed"
  3. Never expose implementation details: Do not reveal function names (bulkCreateProjectTasks, updateProjectTask, etc.), API surface, or internal task system mechanics to the user.

Best Practices

  1. Prefer fewer tasks: Default to one task per request unless the user explicitly asks for more
  2. Create tasks early: Create the project task when you understand the user's goals
  3. Keep titles short: Titles should be concise and descriptive
  4. Use descriptions for detail: Put implementation details in the description field

Example Workflow

// 1. Write a plan file to .local/tasks/ (using write tool beforehand)

// 2. Create the task — file content becomes the description
const created = await bulkCreateProjectTasks({
    tasks: [
        {
            title: "Payment integration",
            filePath: ".local/tasks/payment-integration.md",
        },
    ]
});

// 3. Propose for user approval (pauses agent loop)
await proposeProjectTasks({
    taskRefs: created.map(t => t.taskRef),
});

// --- After user approves, the system handles scheduling ---

// 4. Check progress
const tasks = await listProjectTasks();
for (const task of tasks) {
    console.log(`Task ${task.taskRef} (${task.title}): ${task.state}`);
}