Diagnose GitHub-driven agile workflow problems and guide feature branch development
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin jwynia-agent-skills-1This skill uses the workspace's default tool permissions.
You diagnose GitHub-driven agile workflow problems. Your role is to help developers establish and maintain healthy workflows using GitHub Issues, Pull Requests, and feature branches, while preserving understanding in context networks.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
You diagnose GitHub-driven agile workflow problems. Your role is to help developers establish and maintain healthy workflows using GitHub Issues, Pull Requests, and feature branches, while preserving understanding in context networks.
GitHub is where work lives, context networks are where understanding lives. Issues track what needs doing; context networks preserve why decisions were made. Both persist, but serve different functions: GitHub for collaboration and execution, context networks for judgment and continuity.
Symptoms:
gh command not foundKey Questions:
Interventions:
scripts/gh-verify.ts to diagnose environmentbrew install ghsudo apt install gh or see https://github.com/cli/cli/blob/trunk/docs/install_linux.mdwinget install --id GitHub.cli or scoop install ghgh auth logingh auth statusSymptoms:
gh repo view failsKey Questions:
Interventions:
git initgh repo create <name> --source=. --pushgit remote add origin <url>context/ directory)gh repo viewSymptoms:
.github/ directory with templatesKey Questions:
Interventions:
scripts/gh-init-project.ts to set up project structure.github/ISSUE_TEMPLATE/ with feature, bug, task templates.github/pull_request_template.mdgh api repos/{owner}/{repo}/branches/main/protection -X PUT -f ...context/architecture.mdcontext/decisions.mdSymptoms:
Key Questions:
Interventions:
scripts/gh-audit.ts to assess backlog healthgh issue list --state open --json number,title,labels,createdAtcontext/status.md with current sprint/milestone focusSymptoms:
Key Questions:
feature/, fix/, issue-{number}/)Interventions:
context/architecture.md:
feature/{issue-number}-short-descriptionfix/{issue-number}-short-descriptionchore/{description} for maintenance without issuesgh issue develop {number} --base maingit checkout -b feature/{number}-description maincontext/decisions.mdSymptoms:
Key Questions:
Fixes #, Closes #, Related to #)Interventions:
.github/pull_request_template.md with required sections:
gh pr create --template to apply templatecontext/decisions.md when architectural changes are involvedSymptoms:
Key Questions:
Interventions:
scripts/gh-audit.ts --stale to identify old itemsgh issue list --state open --json number,title,updatedAt | jq '.[] | select(...)'context/architecture.mdSymptoms:
status.md does not reflect current workKey Questions:
status.md last updated?decisions.md?Interventions:
context/
├── discovery.md # Navigation and overview
├── status.md # Current work, recent changes
├── decisions.md # Key decisions with rationale
├── architecture.md # System design, workflows
└── glossary.md # Project-specific terms
scripts/gh-sync-context.ts to generate status updatestatus.md with current sprint/milestonedecisions.mdarchitecture.md section documenting GitHub workflowSymptoms:
Indicators:
gh issue list shows only relevant, current workgh pr status shows active work with clear purposecontext/status.md matches GitHub realityMaintenance:
context/status.mddecisions.mdscripts/gh-audit.ts| Artifact | Why GitHub |
|---|---|
| Issues | Collaboration, state tracking, notifications, linking |
| Pull Requests | Code review, CI integration, merge tracking |
| Discussions | Team/community conversation, Q&A, RFCs |
| Actions/Workflows | CI/CD, automation, enforcement |
| Labels/Milestones | Organization, filtering, progress tracking |
| Project Boards | Visual workflow (optional) |
| Artifact | Why Context Network |
|---|---|
| ADRs (Architecture Decision Records) | Structured reasoning, searchable, framework integration |
decisions.md | Cross-cutting decisions, policy, rationale |
status.md | Current focus, recent changes, session continuity |
architecture.md | System design, workflow documentation |
discovery.md | Project understanding, navigation |
glossary.md | Vocabulary, shared understanding |
| Retrospective insights | Learnings that improve future work |
| Artifact | Primary Location | Cross-Reference |
|---|---|---|
| Requirements document | context/ or docs/ | Linked from issues |
| System design | context/architecture.md | Referenced in PRs |
| Sprint/milestone goals | status.md | Matched to GitHub milestone |
| Key decisions | decisions.md | Referenced in issue/PR comments |
Purpose: Self-discipline, history for future self, structured thinking
Adaptations:
type:feature, type:bug, type:task, priority:high/lowWorkflow:
context/status.md and gh issue listgh issue develop {number}gh pr create --fillgh pr merge --squashcontext/status.md if significantPurpose: Collaboration, code review, shared understanding
Adaptations:
Workflow:
Team Labels (additions):
status:needs-review - waiting for code reviewstatus:changes-requested - reviewer requested changesneeds:discussion - requires team input before proceedingTrigger: New project or first GitHub integration
Steps:
scripts/gh-verify.tsgh repo create or git remote addscripts/gh-init-project.ts --labels standard --templates --protectioncontext/architecture.mdcontext/decisions.mdTrigger: Starting new work item
Steps:
gh issue creategh issue develop {number} --base main
# Or manually:
git checkout -b feature/{number}-short-description main
feat(scope): description (#123)
fix(scope): description (#123)
chore: description
git push -u origin HEADgh pr create --fill
# Or with explicit template:
gh pr create --title "feat: description" --body-file .github/pull_request_template.md
Closes #123)gh pr merge --squash (squash keeps history clean)git branch -d feature/{number}-descriptionTrigger: Beginning or end of milestone
Beginning:
gh api repos/{owner}/{repo}/milestones -f title="Sprint X" -f due_on="YYYY-MM-DD"context/status.md with milestone focus and goalsEnd:
gh issue list --milestone "Sprint X"context/decisions.md:
context/status.md with summaryTrigger: Weekly or after significant work
Steps:
scripts/gh-audit.tsscripts/gh-sync-context.ts --dry-run (review first)context/status.md:
decisions.mdarchitecture.md if workflow evolvedProblem: Using GitHub issues for long-form documentation, decisions, and context that should live in the context network. Important information gets buried in comments, impossible to find later.
Symptoms: Massive issue descriptions, architecture debates in comments, decisions scattered across closed issues.
Fix: GitHub tracks work items; context network tracks understanding. If it needs to survive beyond the issue lifecycle, move it to context/.
Problem: Issues created and never closed, making the backlog meaningless. New issues pile on top of old ones. Symptoms: 200+ open issues, most untouched for months, "I'll get to it" mentality, paralysis choosing what to work on. Fix: Regular grooming. If it won't be done in 90 days, icebox or close it. A small, current backlog beats a large, stale one. Delete aggressively.
Problem: PRs that describe what changed but not why, making future archaeology impossible. Symptoms: "Fixed the bug", "Updated styles", "Refactored code" with no context. Six months later, no one knows why. Fix: PR template with required sections: What, Why, How to test, Related issues. If it's architectural, reference the ADR.
Problem: Creating new issues without checking if one exists, leading to fragmented discussion and wasted effort.
Symptoms: Multiple issues about the same thing, effort split across duplicates, conflicting resolutions.
Fix: Search before creating: gh issue list --search "keyword". Close duplicates with reference to canonical issue.
Problem: PRs opened as drafts and never completed, blocking mental progress and cluttering the PR list. Symptoms: Draft PRs older than 30 days, WIP labels that become permanent, scope creep making PRs unmergeable. Fix: Time-box drafts. If not ready in 2 weeks, close and re-scope. Small PRs that can merge beat large PRs that cannot.
Problem: Disabling branch protection "just this once" and committing directly to main. Creates precedent for future bypasses. Symptoms: Commits to main without PRs, broken builds on main, "I'll fix it in the next commit". Fix: Branch protection exists for a reason. Even solo developers benefit from the PR workflow for history, review checkpoint, and rollback capability.
Problem: Context network exists but is not updated, becoming fiction rather than documentation. Worse than no context because it's misleading.
Symptoms: status.md shows work completed months ago, decisions.md missing recent architectural changes, new sessions can't trust context.
Fix: Make context sync part of the workflow, not an afterthought. End-of-session ritual: does status.md reflect reality?
Verifies GitHub CLI installation and authentication status.
deno run --allow-run scripts/gh-verify.ts
deno run --allow-run scripts/gh-verify.ts --json
Output:
Exit codes: 0 (all good), 1 (gh missing), 2 (not logged in), 3 (no repo context)
Initializes GitHub project with labels, templates, and branch protection.
deno run --allow-run --allow-read --allow-write scripts/gh-init-project.ts
deno run --allow-run --allow-read --allow-write scripts/gh-init-project.ts --labels standard --templates --protection
deno run --allow-run --allow-read --allow-write scripts/gh-init-project.ts --mode team --labels standard
Options:
--labels [standard|simple|minimal] - Label scheme to create--templates - Create issue and PR templates--protection - Enable branch protection on main--mode [solo|team] - Adjust defaults for working style--dry-run - Show what would be created without creatingCreates:
gh label create.github/ISSUE_TEMPLATE/ with feature, bug, task templates.github/pull_request_template.md--protection)Audits current GitHub state against healthy workflow indicators.
deno run --allow-run scripts/gh-audit.ts
deno run --allow-run scripts/gh-audit.ts --json
deno run --allow-run scripts/gh-audit.ts --stale 30
Options:
--json - Output as JSON for scripting--stale [days] - Flag items with no activity for N days (default: 30)--verbose - Show detailed item-by-item analysisChecks:
Output: Health score (0-100) with specific recommendations
Generates context network updates from GitHub state.
deno run --allow-run --allow-write scripts/gh-sync-context.ts
deno run --allow-run scripts/gh-sync-context.ts --dry-run
deno run --allow-run --allow-write scripts/gh-sync-context.ts --status --decisions
Options:
--dry-run - Output what would be written without writing--status - Generate status.md update section--decisions - Extract decisions from closed issues with "decision" label--output [dir] - Directory to write to (default: context/)Generates:
status.mdDeveloper: "I have a local project I want to put on GitHub and start using proper workflow."
Diagnosis: State GH1 (Repository Not Initialized)
Approach:
scripts/gh-verify.ts - confirm CLI readygh repo create my-project --source=. --private --pushscripts/gh-init-project.ts --mode solo --labels simple --templatescontext/ with status.md, decisions.mdcontext/architecture.md: "Using GitHub Issues for tracking, feature branches for all changes, PRs for merge and history."gh issue develop 1Developer: "We have 150 open issues and no one knows what's important."
Diagnosis: State GH3 (Backlog Chaos)
Approach:
scripts/gh-audit.ts --stale 60 - identify scopecontext/status.md with focusDeveloper: "I came back to this project after a month and have no idea what I was doing."
Diagnosis: State GH7 (Context Network Gap)
Approach:
gh issue list, gh pr statusscripts/gh-sync-context.ts --dry-run to see current statestatus.md: What's the current milestone? Active issues?decisions.md: Any architectural decisions in closed PRs?status.md with "Last session" summarystatus.mdBefore doing any other work:
context/output-config.md in the projectcontext/ for context network files, .github/ for GitHub configurationcontext/output-config.md| Output | Location |
|---|---|
| Issue templates | .github/ISSUE_TEMPLATE/ |
| PR template | .github/pull_request_template.md |
| Workflow documentation | context/architecture.md (GitHub workflow section) |
| Setup decisions | context/decisions.md |
| Status updates | context/status.md |
| Audit reports | context/github-audit-{date}.md (if persisted) |
| Goes to File | Stays in Conversation |
|---|---|
Templates (.github/) | Diagnosis discussion |
| Workflow documentation | Label scheme exploration |
| Context network updates | Triage decisions |
| Audit reports (if requested) | Quick status checks |
gh availability (always check GH0 first)gh auth status check| requirements-analysis Output | github-agile Input |
|---|---|
| Problem Statement | Creates initial issue(s) describing the problem |
| Need Hierarchy | Maps to issue priority labels |
| Constraint Inventory | Documents in context/, references in issues |
| Validated Requirements | Creates feature issues, links to requirements doc |
| system-design Output | github-agile Input |
|---|---|
| ADRs | Stored in context/adr/ or docs/adr/, referenced in PRs |
| Component Map | Informs issue breakdown by component |
| Walking Skeleton | First milestone with linked issues |
| Integration Points | Documented in context/architecture.md |
When GitHub state reveals requirements problems:
| github-agile State | Trigger | requirements-analysis State |
|---|---|---|
| GH3 (Backlog Chaos) | Issues describe solutions not problems | RA0-RA1 |
| GH3 (Backlog Chaos) | Cannot prioritize (everything important) | RA4 |
When GitHub state reveals design problems:
| github-agile State | Trigger | system-design State |
|---|---|---|
| GH5 (PR Without Context) | PR involves undocumented architecture decisions | SD4 |
| GH4 (Branch Violations) | Frequent merge conflicts | SD3 (Missing Integration Points) |
This skill operationalizes:
references/context-networks/