You have access to gh CLI and git in the sandbox. Use this skill when
you encounter bugs, errors, or limitations in your own capabilities during
your work.
When to Activate This Skill
Recognize these situations during your normal work:
A tool call fails with an unexpected error
A skill's instructions (SKILL.md) have wrong examples or outdated API usage
An MCP tool returns malformed or unexpected data
A prompt instruction is unclear, contradictory, or missing
A sandbox script or package is broken or misconfigured
You notice a code pattern that would make your work more effective if fixed
Always ask the user for consent before filing an issue or creating a PR.
Briefly explain what you found and what you want to report, then ask for
approval. Do NOT file anything without explicit user confirmation.
Do NOT derail the user's current task. Keep the consent request brief,
file the issue quickly after approval, then continue with the user's request.
Authentication
GITHUB_TOKEN env var is pre-configured (injected from GITHUB_BOT_TOKEN)
Git identity is set via env vars — no git config needed
Workflow 1: Report a Bug (default — quick, no cloning)
Use when: you encounter any issue with your own capabilities.
Time: <30 seconds. Don't interrupt the user's flow.
## What I was doing
<user's task context — what were you trying to accomplish>
## What went wrong
<exact error message or unexpected behavior>
## Where the issue likely is
<file paths, function names, skill names — be specific>
## Suggested fix
<if obvious, describe; otherwise "Needs investigation">
## Environment
- Thread: <thread_id if available>
- Tool/Skill: <which tool or skill was involved>
- Error type: <tool_error | skill_instruction | mcp_data | prompt | sandbox>
@claude Please triage this issue — verify the root cause, assess severity, and suggest a fix if straightforward.
Workflow 2: Propose a Fix (rare — only when user explicitly asks)
Default to Workflow 1 (filing an issue). Only create a PR when the user
explicitly asks you to fix it yourself. Do NOT propose PRs on your own initiative.
Steps:
Clone or update: if .self-improve/langalpha exists, cd .self-improve/langalpha && git checkout main && git pull origin main to get latest. Otherwise gh repo clone "ginlix-ai/LangAlpha" .self-improve/langalpha -- --depth 1
Branch: cd .self-improve/langalpha && git checkout main && git checkout -b bot/fix/<short-desc>
Make the fix (keep it minimal and focused)
Test: ruff check . && pytest (or relevant subset)
Commit: conventional format — fix(scope): description
## Problem
<link to issue if filed, or describe the bug>
## Root Cause
<what was wrong and why>
## Fix
<what was changed and why this approach>
## Testing
<what tests were run, what was verified>
## Context
- Discovered during: <brief user task description>
- Thread: <thread_id>
Codebase Guide — Where to Look
Use this to identify the right module when filing issues or proposing fixes.
Directory
What lives here
Example issues
skills/
Skill SKILL.md instructions and assets
Wrong examples in skills/dcf-model/SKILL.md, bug in a provided script snippet, outdated API usage, missing steps in a workflow, new best practice to add
mcp_servers/
MCP server implementations (yfinance, fundamentals, macro, price_data)
yfinance_mcp_server.py returns malformed data, a fundamentals endpoint is missing a field, macro data has wrong units
NEVER push directly to main — always bot/fix/ or bot/feat/ branches
main branch contains the latest code. Always branch from main, target PRs to main
ALWAYS run linting and tests before creating a PR
Keep PRs small — one fix per PR, max 1-3 files
Clone to .self-improve/langalpha (inside workspace, persists across restarts)
NEVER commit tokens, secrets, API keys, or user data
NEVER include confidential or private information in issues or PRs — no user data, no internal business context, no API responses containing private data, no conversation content. Describe the technical problem only.
After filing/PR, immediately return to the user's original task
Pre-Submit Checklist
Go through EVERY item before running gh issue create or gh pr create:
User consent obtained — user explicitly approved filing this issue/PR
No secrets or tokens — title, body, and diff contain zero credentials, API keys, or env values
No private data — no user names, portfolio holdings, conversation content, or internal business context
No raw API responses — sanitize or omit any data returned from MCP tools or external APIs
Technical description only — the issue/PR describes the bug or fix, not what the user was working on
Correct repo — targeting ginlix-ai/LangAlpha
Correct branch (PRs only) — branched from main, PR base is main
Minimal diff (PRs only) — only the files needed for the fix, no unrelated changes
1---2name: self-improve3description: Report issues and propose fixes to improve your own capabilities when you encounter errors or limitations4---56# Self-Improvement78You have access to `gh` CLI and `git` in the sandbox. Use this skill when9you encounter bugs, errors, or limitations in your own capabilities during10your work.1112## When to Activate This Skill1314Recognize these situations during your normal work:15- A tool call fails with an unexpected error16- A skill's instructions (SKILL.md) have wrong examples or outdated API usage17- An MCP tool returns malformed or unexpected data18- A prompt instruction is unclear, contradictory, or missing19- A sandbox script or package is broken or misconfigured20- You notice a code pattern that would make your work more effective if fixed2122**Always ask the user for consent before filing an issue or creating a PR.**23Briefly explain what you found and what you want to report, then ask for24approval. Do NOT file anything without explicit user confirmation.2526**Do NOT derail the user's current task.** Keep the consent request brief,27file the issue quickly after approval, then continue with the user's request.2829## Authentication30- `GITHUB_TOKEN` env var is pre-configured (injected from `GITHUB_BOT_TOKEN`)31- Git identity is set via env vars — no `git config` needed3233## Workflow 1: Report a Bug (default — quick, no cloning)3435Use when: you encounter any issue with your own capabilities.36Time: <30 seconds. Don't interrupt the user's flow.3738Template:39```bash40gh issue create --repo "ginlix-ai/LangAlpha" \41 --title "bug(agent): <what broke>" \42 --label "agent-reported" \43 --body "<structured body>"44```4546Issue body structure:47```48## What I was doing49<user's task context — what were you trying to accomplish>5051## What went wrong52<exact error message or unexpected behavior>5354## Where the issue likely is55<file paths, function names, skill names — be specific>5657## Suggested fix58<if obvious, describe; otherwise "Needs investigation">5960## Environment61- Thread: <thread_id if available>62- Tool/Skill: <which tool or skill was involved>63- Error type: <tool_error | skill_instruction | mcp_data | prompt | sandbox>6465@claude Please triage this issue — verify the root cause, assess severity, and suggest a fix if straightforward.66```6768## Workflow 2: Propose a Fix (rare — only when user explicitly asks)6970**Default to Workflow 1 (filing an issue).** Only create a PR when the user71explicitly asks you to fix it yourself. Do NOT propose PRs on your own initiative.7273Steps:741. Clone or update: if `.self-improve/langalpha` exists, `cd .self-improve/langalpha && git checkout main && git pull origin main` to get latest. Otherwise `gh repo clone "ginlix-ai/LangAlpha" .self-improve/langalpha -- --depth 1`752. Branch: `cd .self-improve/langalpha && git checkout main && git checkout -b bot/fix/<short-desc>`763. Make the fix (keep it minimal and focused)774. Test: `ruff check . && pytest` (or relevant subset)785. Commit: conventional format — `fix(scope): description`796. PR:80```bash81gh pr create --repo "ginlix-ai/LangAlpha" \82 --base main \83 --title "fix(agent): <what's fixed>" \84 --label "agent-reported" \85 --body "<structured body>"86```8788PR body structure:89```90## Problem91<link to issue if filed, or describe the bug>9293## Root Cause94<what was wrong and why>9596## Fix97<what was changed and why this approach>9899## Testing100<what tests were run, what was verified>101102## Context103- Discovered during: <brief user task description>104- Thread: <thread_id>105```106107## Codebase Guide — Where to Look108109Use this to identify the right module when filing issues or proposing fixes.110111| Directory | What lives here | Example issues |112|-----------|----------------|----------------|113| `skills/` | Skill SKILL.md instructions and assets | Wrong examples in `skills/dcf-model/SKILL.md`, bug in a provided script snippet, outdated API usage, missing steps in a workflow, new best practice to add |114| `mcp_servers/` | MCP server implementations (yfinance, fundamentals, macro, price_data) | `yfinance_mcp_server.py` returns malformed data, a fundamentals endpoint is missing a field, macro data has wrong units |115| `src/tools/` | External tool implementations (web fetch, crawl, search, SEC, market data) | `fetch.py` times out on certain URLs, SEC filing parser fails on 10-K amendments, search returns stale results |116| `src/ptc_agent/agent/tools/` | Core sandbox tools (ExecuteCode, Bash, file ops, grep, glob, think, todo) | `code_execution.py` mishandles large stdout, `bash.py` doesn't escape special chars, `file_ops.py` fails on binary files |117| `src/ptc_agent/agent/middleware/` | Middleware stack (skills, subagents, plan mode, compaction, memory, caching) | Skill loading fails silently, subagent doesn't inherit context, compaction truncates important content |118| `src/ptc_agent/agent/prompts/` | System prompt templates (Jinja2) and config | Redundant or wrongful instructions in `system.md.j2`, useful tips and experience worth persisting into prompts |119120## Label Convention121- Always use `agent-reported` label122- Add `bug` for broken behavior, `enhancement` for capability gaps123- Add scope labels: `skills`, `tools`, `mcp`, `prompt`, `sandbox`124125## Safety Rules126- NEVER push directly to `main` — always `bot/fix/` or `bot/feat/` branches127- `main` branch contains the latest code. Always branch from `main`, target PRs to `main`128- ALWAYS run linting and tests before creating a PR129- Keep PRs small — one fix per PR, max 1-3 files130- Clone to `.self-improve/langalpha` (inside workspace, persists across restarts)131- NEVER commit tokens, secrets, API keys, or user data132- NEVER include confidential or private information in issues or PRs — no user data, no internal business context, no API responses containing private data, no conversation content. Describe the technical problem only.133- After filing/PR, immediately return to the user's original task134135## Pre-Submit Checklist136137Go through EVERY item before running `gh issue create` or `gh pr create`:138139- [ ] **User consent obtained** — user explicitly approved filing this issue/PR140- [ ] **No secrets or tokens** — title, body, and diff contain zero credentials, API keys, or env values141- [ ] **No private data** — no user names, portfolio holdings, conversation content, or internal business context142- [ ] **No raw API responses** — sanitize or omit any data returned from MCP tools or external APIs143- [ ] **Technical description only** — the issue/PR describes the bug or fix, not what the user was working on144- [ ] **Correct repo** — targeting `ginlix-ai/LangAlpha`145- [ ] **Correct branch** (PRs only) — branched from `main`, PR base is `main`146- [ ] **Minimal diff** (PRs only) — only the files needed for the fix, no unrelated changes
Run npx skillmds@latest add ginlix-ai/self-improve in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Report issues and propose fixes to improve your own capabilities when you encounter errors or limitations It is listed under Docs & Writing on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
ginlix-ai (@ginlix-ai) published this skill. Their other Agent Skills are listed on their SkillMD profile.