Install
$ agentstack add skill-p2ergmbh-agentic-coding-github-issue-solve ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
GitHub Issue Workflow
This workflow guides you through resolving a GitHub issue locally. It is based on a robust, CLI-agnostic automation framework.
Role & Persona
You are an expert software engineer and autonomous agent.
Trigger
Use this workflow whenever the user asks to "handle," "solve," "resolve," or "work on" a GitHub issue.
Phase 1: Context Setup & Identification
- Identify Issue Number: Check the current conversation and environment.
- If the issue number is found (e.g., "#123"), proceed.
- If NOT found, STOP and ask the user: "Could you please provide the GitHub issue number you'd like me to work on?"
- Fetch Details: Once the issue number (referred to as
$ISSUE_NUMBER) is known, run:
``bash gh issue view $ISSUE_NUMBER ``
- Validate Requirements: Analyze the issue description for a CLEAR GOAL and SUCCESS CRITERIA.
- IF UNCLEAR:
- Comment on the issue:
gh issue comment $ISSUE_NUMBER --body "..."asking for the missing Goal, Success Criteria, or Context. - Inform the user you are waiting for clarification and STOP.
- IF CLEAR: Proceed to Phase 2.
- Assign yourself to the issue:
gh issue edit $ISSUE_NUMBER --add-assignee "@me". - Comment on the issue:
gh issue comment $ISSUE_NUMBER --body "..."stating the start of work and what branch is being used. - Internalize rules: read all docs/rules/*.md files and apply the rules defined there to the following steps
- Figma Designs: If the issue description contains a link to a Figma design, you MUST activate the
figma-implementskill usingactivate_skillto get instructions on how to handle Figma to code conversion.
Phase 2: Initialization & Branching
- Sync with Main First: Ensure you are starting from the latest state:
git checkout maingit pull origin main
- Define Branch: Target branch name is
feat/$ISSUE_NUMBER-by-cli-agent-.
- Replace `
with a brief, kebab-case summary of the issue (e.g.,feat/811-by-cli-agent-improve-x-and-y`).
- Check/Switch Branch:
- Check if it exists:
git branch --list "*$ISSUE_NUMBER*" - If it exists, checkout:
git checkout [matching-branch-name] - If NOT, create it from the updated main:
git checkout -b feat/$ISSUE_NUMBER-by-cli-agent-
Phase 3: Planning & User Communication
- Research: Explore the codebase relevant to the issue.
- Create Task Plan: Generate a markdown plan file at
.tmp/tasks/issue-$ISSUE_NUMBER.md.
- Include a
## Costssection at the end of the file.
- External Update:
- Update the
## Costssection in.tmp/tasks/issue-$ISSUE_NUMBER.mdwith the initialization cost (e.g.,- Initialization: $0.05). - Update/add a
**Total Costs**field that sums up all costs in the section. - Post a comment on the GitHub issue with:
- The branch name.
- The content of your task plan.
- The estimated token cost for the initialization phase and the total costs as recorded in the task file.
- Example:
gh issue comment $ISSUE_NUMBER --body "Plan initialized on branch feat/123-by-cli-agent-fix-login-bug... [Plan]... Estimated cost: $0.05 (Total: $0.05)"
Phase 4: Execution & Local Verification
For each atomic step in your plan:
- Implement: Make the necessary code changes.
- Figma Designs: If the issue involves implementing a Figma design and references downloaded Figma JSON files, use the
figma-implementskill's script to parse the JSON. This script translates Figma styles into Tailwind CSS utility classes using the local Tailwind configuration and variables. Example usage:node .agents/skills/figma-implement/scripts/parse-figma-vars.mjs .tmp/figma-xxxx.json.
- Verify: Run tests and workspace standards to confirm the success of the specific change and ensure no regressions were introduced.
- Run
npm run lint -- --cacheandnpm run compile(if applicable). - Run existing tests before opening a pull request and if possible add vitest tests for new business logic.
- Browser Check: If UI is affected, you MUST always start or restart the dev server by running
npm run dev:up(as a background process) before starting a local test. This ensures the cache is cleared, old builds are removed, and the latest local code is being served correctly. Always usehttp://localhost:6767for local verification. You MUST use thechrome-devtoolsMCP tools (e.g.,mcp_chrome-devtools_navigate_page,mcp_chrome-devtools_take_snapshot) to actually open the affected page(s) and wait for the page to load, then take a snapshot to verify the component rendered correctly. Do NOT usebrowser_evalor any playwright-based tools fromnext-devtools. - Log Check: ALWAYS check the application logs using
npm run log:viewafter the browser test has concluded and before closing the browser tab/window. This is critical to identify implementation problems, server-side rendering errors, missing translations, hydration mismatches, or backend errors that might not be caught by linting or visual browser checks. - Iterative Fixing: If the browser check fails (e.g. 500 error page) or if the
npm run log:viewoutput contains runtime errors, you MUST fix the code, restart the server if necessary, and repeat the Browser Check and Log Check until the page renders cleanly with no errors. Do not proceed to commit until the implementation is fully functional. - Browser Cleanup: Once verification is complete, use
mcp_chrome-devtools_list_pagesandmcp_chrome-devtools_close_pageto close your active session and prevent orphaned browser tabs.
- Cleanup & Audit:
- Review Changes: Read all files that were added or modified in this step.
- Strict Type Checking: Scan the implemented/modified code for the introduction of any
anytypes. You must NOT simply disable linter rules forany. Furthermore, if you encounter any rogueanytypes or genericRecordassignments (e.g.,Record) that were used to avoid passing concrete type interfaces, you must try to replace them with specific interfaces. Start by inspecting the project configuration forpaths.types(e.g.,src/typesortypes/). Search that configured types folder for an applicable existing project type. If no suitable type exists, you MUST create a new, strongly-typed definition in the configured types directory and use it. Strong typing is mandatory. If lookup or paths fail multiple times, dynamically update the configuration with the correct types folder path. - Remove Helpers: Identify and delete any helper files, temporary scripts, or debugging artifacts that were not intended to be part of the final Pull Request.
- JSDoc Verification: For all modified or new files, verify that every function and class has JSDoc documentation that meets the standards defined in
docs/rules/general.md. If JSDoc is missing or incomplete, add it.
- Commit:
git add .git commit -m "#IssueNumber type(scope): subject"as defined in docs/rules/commit.md
- Push:
git push(Verify the push is successful).
Phase 5: Finalization & Review
- Sync before PR: To avoid merge conflicts, fetch and merge the latest
mainbranch:
git fetch origingit merge origin/main
- Test Execution: Run all project tests using
npm run testand fix any failures before starting the internal review. - Internal Code Review (Mandatory): Before creating a PR, you MUST ensure the code meets project rules (like adding JSDoc, correct types, etc.).
- Invoke the
generalistsubagent to perform the code review. - Instruct the subagent to first read the markdown files in the
docs/rulesdirectory to get a firm grasp of the project rules. - Instruct the subagent to act as a senior software architect and run an in-depth review using the
review-codeskill. - If the review identifies any issues or missing project rules, fix them, commit, and push the fixes BEFORE proceeding to open the pull request.
- Build: run
npm run compileto ensure the build is successful after the merge and any review fixes. - Create/Update Pull Request:
- If creating new:
``bash gh pr create --title "feat: Resolve issue #$ISSUE_NUMBER" --body "Resolves #$ISSUE_NUMBER. [Summary of changes]" ``
- If the PR is already open and you are updating it with new commits, you MUST also merge
origin/mainas described in step 1 to ensure integration.
- Final Report:
- Update the
## Costssection in.tmp/tasks/issue-$ISSUE_NUMBER.mdwith the final session costs (e.g.,- Finalization: $0.15). - Update the
**Total Costs**field to reflect the sum of all costs. - Comment on the issue stating the PR has been created with a link to the Pull Request.
- Affected Pages: Comment on the issue all affected pages with examples and how to test/verify if they still work or how to test the new implementation.
- Click Path: Include a click path for a test user to verify the changes. You MUST check the project configuration (
package.jsonunder"agents"key, or fallbackdocs/project.json) forenvironments.prPreview. - If
environments.prPreviewis configured and not empty, use that template as the base URL, replacing the[PR-SLOT]placeholder with the actual pull request number (e.g., ifhttps://[PR-SLOT].your-domain.com/is configured and the PR is#12, usehttps://pr-12.your-domain.com/). - If
environments.prPreviewis NOT configured or is empty, fallback to the configuredenvironments.developmentURL. If that is also not configured, useenvironments.production. - CRITICAL: Never use local URLs (e.g.,
http://localhost:6767or any custom local ports) in the final report on the GitHub issue, as these are not accessible externally. - Report the final session cost and the final total estimated cost as recorded in the task file.
- Local Testing & Confirmation (MANDATORY): Before executing any final cleanup steps (like removing git worktrees or deleting temporary/log files), you MUST ask the user to test the changes locally and confirm that they are satisfied with the task completion.
- Cleanup: Once confirmed, verify all changes are pushed, any temporary worktrees are deleted, and the task file in
.tmp/tasks/is updated to reflect completion. - View PR: Open the pull request in the browser using
gh pr view --web.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: P2ERGmbH
- Source: P2ERGmbH/agentic-coding
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.