home / skills / tomkrikorian / visionosagents / ralph-driven-development-linear
This skill automates Linear project task execution by sequentially running Codex agents, advancing issues, and tracking retries for efficient workflow.
npx playbooks add skill tomkrikorian/visionosagents --skill ralph-driven-development-linearReview the files below or copy the command above to add this skill to your agents.
---
name: ralph-driven-development-linear
description: Ralph Driven Development workflow that pulls Linear project issues via the Linear MCP and runs them sequentially with Codex. Use when automating task execution from a Linear project and when you need a runner that advances issues and asks for the next task automatically.
---
# Ralph Driven Development (Linear)
## Description and Goals
This skill provides a Ralph Driven Development workflow that pulls Linear project issues via the Linear MCP and runs them sequentially with Codex. It automates task execution from a Linear project and advances issues automatically.
### Goals
- Automate development workflow using Linear project issues
- Integrate with Linear MCP for issue management
- Run Codex agents sequentially against Linear issues
- Track progress and handle retries automatically
- Support customizable runner configuration
## What This Skill Should Do
When automating task execution from a Linear project, this skill should:
1. **Connect to Linear** - Authenticate with Linear MCP and resolve project
2. **Fetch issues** - Pull issues from the specified Linear project
3. **Execute sequentially** - Run Codex against each issue in order
4. **Track progress** - Monitor completion and handle retries
5. **Advance issues** - Automatically move to the next issue after completion
Use this skill when automating task execution from a Linear project and when you need a runner that advances issues and asks for the next task automatically.
## Information About the Skill
### Prerequisites
- `codex` is on PATH.
- Linear MCP is authenticated: `codex mcp login linear`
- Provide a project via `--project` or `AGENTS.MD`.
### Run
```bash
python scripts/ralph-linear.py --project "Project Name"
```
### Flags
- `--project` Linear project name or ID. If omitted, reads `Linear Project:` under `## PROJECT` in `AGENTS.MD`.
- `--agents-path` Path to `AGENTS.MD`. Default: `AGENTS.MD`.
- `--codex-exe` Codex executable name or path. Default: `codex`.
- `--codex-args` Space-separated Codex args string. Default: `exec --dangerously-bypass-approvals-and-sandbox`.
- `--codex-timeout` Seconds before killing a Codex run; `0` = unlimited. Default: `0`.
- `--max-tasks` Max issues to process; `0` = unlimited. Default: `0`.
- `--max-attempts-per-task` Retries per issue. Default: `5`.
- `--log-path` Log file path (repo-relative or absolute). Default: `docs/logs/linear.log`.
- `--dry-run` Resolve project and exit without running Codex.
### Examples
```bash
python scripts/ralph-linear.py --project "VisionOS Agents" --max-tasks 3
```
```bash
python scripts/ralph-linear.py \
--project "VisionOS Agents" \
--codex-args 'exec --full-auto -m gpt-5.2-codex'
```
This skill automates a Ralph Driven Development workflow that pulls issues from a Linear project and runs them sequentially with Codex. It advances issues automatically, tracks progress, and supports configurable retries and timeouts. Use it to turn a Linear backlog into an automated runner that executes tasks end-to-end.
The runner authenticates with Linear MCP, resolves the target project, and fetches open issues in order. For each issue it launches a Codex process (configurable executable and args), monitors execution, records success or failure, and advances the issue on completion. The workflow supports retries, limits on tasks, and dry-run mode to validate configuration without executing Codex.
What are the mandatory prerequisites?
Codex must be installed and on PATH, and Linear MCP must be authenticated via `codex mcp login linear`. Provide the project via --project or configure it in AGENTS.MD.
How do I stop a long-running Codex task?
Set `--codex-timeout` to a nonzero number of seconds so the runner will kill Codex after that interval. Use `0` for unlimited.
Can I limit how many issues are processed in one run?
Yes. Use `--max-tasks` to cap issues processed in a single invocation; `0` means unlimited.