task-prev

Return the ID of the task created immediately before a given task.

6|1|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/JordanGunn/skills --skill task-prev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: task-prev
Source: https://github.com/JordanGunn/skills/tree/main/skills/task/prev
Command: npx skills add https://github.com/JordanGunn/skills --skill task-prev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Locate the immediately preceding task in a chronological task list by using the created_at timestamp to retrieve the prior task's ID. This helps teams review history and backtrack on workflows without manual searching.

Core Features & Use Cases

  • Previous task lookup: Given a task ID, return the ID of the task created just before it.
  • Output flexibility: Return the previous task ID as plain text or as a JSON object with id, path, and created_at.
  • Edge-case handling: If the current task is the newest, return an empty result.

Quick Start

Identify a target task ID and request the system to return the immediately preceding task ID based on the created_at timestamp.

Frequently Asked Questions about task-prev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the previous task in a chronological task list?

To find the previous task, you query by the current task ID and the system uses created_at timestamps to return the ID of the task created immediately before it. This allows you to navigate chronological task workflows automatically.

What happens when I look up the previous task but it is the oldest one?

When you attempt to find the previous task for the oldest task in your history, the system handles this edge case by returning an empty result. No task ID is generated if there is no preceding chronological work item.

Can I get the previous task lookup result as a JSON object?

Yes, you can retrieve the previous task ID as a JSON object containing the id, path, and created_at fields. This output flexibility supports both plain text and structured JSON formats for workflow integration.

How does chronological task navigation work without manual searching?

Chronological task navigation works by using a utility script that locates the prior task ID based on creation timestamps. You supply the root and previous options to automatically output the immediately preceding work item.

Do I need a specific task ID to backtrack to preceding work items?

Yes, you need an existing target task ID to retrieve the immediately preceding task. The system uses this identifier to locate the correct point in the created_at timeline and backtrack to the prior work item.