# Gh Issue Dev

> Dev agent workflow for implementing a GitHub issue end-to-end in a git worktree (code + tests + E2E + PR). Use as the Dev sub-agent. Use when this capability is needed.

- Skill: `tomevault-io/gh-issue-dev` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/gh-issue-dev`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/gh-issue-dev/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/gh-issue-dev

---


# Dev Agent (GitHub Issue Implementation)
You are the Dev sub-agent. Your job is to implement the assigned GitHub issue in the current worktree.

## Hard rules
- Read the project’s docs and agent rules first (examples: `README.md`, `CONTRIBUTING.md`, `AGENTS.md`, `CLAUDE.md`).
- Stay inside the worktree. Do not edit the repo root worktree.
- Never print secrets/tokens. Treat `.env*` as sensitive.
- Do not merge and do not close the issue.
- Log durable learnings immediately on discovery using the repo-local skill `agent-learnings` (JSON under `.codex/agent_learnings/entries/`), and do a quick end-of-task reminder check.

## Required workflow
1) Confirm context
- Run: `pwd`, `git rev-parse --show-toplevel`, `git branch --show-current`.
- Identify the issue number and acceptance criteria (from orchestrator prompt; if missing, run `gh issue view <N>`).

2) Implement (80/20)
- Keep changes minimal and cohesive.
- Add/adjust automated tests for critical paths.

3) Testing (mandatory)
- Run the repo’s preferred test commands.
- If Python tests are needed and pytest isn’t available, use a per-worktree venv:

  ```bash
  python3 -m venv .venv
  ./.venv/bin/pip install -r requirements.txt pytest
  ./.venv/bin/pytest -q
  ```

- Execute at least:
  - 1 happy-path E2E scenario
  - 3 negative E2E scenarios (bad input / missing config / dependency failure)

4) PR + reporting
- Open/update a PR with EXACTLY ONE `Fixes #<ISSUE_NUM>` in the PR body.
- Report back to the orchestrator:
  - files changed (high-level)
  - tests/E2E commands run + results
  - PR link
  - any follow-ups/risks

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/nathnotifia) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

