Forge CLI Debug Workflow
tailcallhq/forgecode
Gives a systematic process for debugging the forge CLI: build in debug mode, check the latest help output, test with the non-interactive -p flag, and clone conversations before reproducing bugs.
A skill your agent uses when debugging a pytrendy bug, reproducing a regression, or inspecting intermediate pipeline stage output.
$ npx skills add RussellSB/pytrendy --skill debug -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install RussellSB/pytrendy debug --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/RussellSB/pytrendy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/debug .claude/skills/debug && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "debug" agent skill from https://github.com/RussellSB/pytrendy/tree/main/.opencode/skills/debug into .claude/skills/debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/RussellSB/pytrendy/tree/main/.opencode/skills/debugType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add RussellSB/pytrendy --skill debug -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install RussellSB/pytrendy debug --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RussellSB/pytrendy.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.opencode/skills/debug .agents/skills/debug && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "debug" agent skill from https://github.com/RussellSB/pytrendy/tree/main/.opencode/skills/debug into .agents/skills/debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add RussellSB/pytrendy --skill debug -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install RussellSB/pytrendy debug --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RussellSB/pytrendy.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.opencode/skills/debug .cursor/skills/debug && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "debug" agent skill from https://github.com/RussellSB/pytrendy/tree/main/.opencode/skills/debug into .cursor/skills/debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/RussellSB/pytrendy.git --path .opencode/skills/debug--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add RussellSB/pytrendy --skill debug -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install RussellSB/pytrendy debug --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RussellSB/pytrendy.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.opencode/skills/debug .gemini/skills/debug && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "debug" agent skill from https://github.com/RussellSB/pytrendy/tree/main/.opencode/skills/debug into .gemini/skills/debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install RussellSB/pytrendy debugInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add RussellSB/pytrendy --skill debug -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/RussellSB/pytrendy.git skills-src && mkdir -p .github/skills && cp -r skills-src/.opencode/skills/debug .github/skills/debug && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "debug" agent skill from https://github.com/RussellSB/pytrendy/tree/main/.opencode/skills/debug into .github/skills/debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add RussellSB/pytrendy --skill debug -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install RussellSB/pytrendy debug --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/RussellSB/pytrendy.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.opencode/skills/debug .opencode/skills/debug && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "debug" agent skill from https://github.com/RussellSB/pytrendy/tree/main/.opencode/skills/debug into .opencode/skills/debug/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
debugA skill your agent uses when debugging a pytrendy bug, reproducing a regression, or inspecting intermediate pipeline stage output.
Debug is an agent skill from RussellSB/pytrendy. Use when debugging a pytrendy bug, reproducing a regression, or inspecting intermediate pipeline stage output. Covers the tests/test.py sandbox convention, phase 1 (processsignals debug=True plots), phase 2 (segmentsrefine stage-by-stage bisect), and handoff to the test skill for formal regression tests.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Debugging. The repository describes itself as: Trend Detection in Python. Applicable for real-world industry use cases in time series. The licence is MIT.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 0d6d5bb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Debug loads about 1.9k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 709 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from RussellSB/pytrendy at commit 0d6d5bb, republished under its MIT licence (© RussellSB). 709 words, ~1,926 tokens.
.claude/skills/debug/SKILL.md (or your agent's skills folder).tests/test.py is the committed reproduction sandbox. Key facts:
test.py doesn't match the test_*.py glob, so pytest ignores it. Its module docstring states this explicitly.# %% cell markers throughout → VSCode treats it as an interactive notebook. Run cells inline with Shift+Enter; plots render inline via the interactive backend.%load_ext autoreload / %autoreload 2 — edits to pytrendy/ reload without restarting the kernel.# TODONE: / # TODO: inline notes track fix status per cell — the file's distinctive convention (see line 30, 53, 89, etc. for examples).detect_trends() call + inspect plot), not generic templates. Agent-added sections must match: one # %% cell per bug, specific scenario/data/params.# ---------- <bug summary> header (matches existing convention — see line 325 "New Reproduction: abrupt padding all-flat fallback on zero-baseline market entry").# %% cell loading the data source once. Do not copy or rename the DataFrame per cell.pd.read_csv(...). Keep columns as-is; pass the actual column name to value_col in each detect_trends() call (e.g. value_col='zero_baseline_market_entry_2').pt.load_data(...)) or inline synth: load once and reuse the reference across cells. Only reload if the scenario genuinely requires different data modifications.# %% cell calling detect_trends(...) — with debug=True for phase-1 bugs, plain for phase-2 bugs.# TODONE: note on the cell once the bug is fixed (matches the file's tracking convention).Mark the reproduction cell's note # TODONE:. Leave the cell in place; it stays useful for re-running after future changes. Then migrate the reproduction into a formal regression test — see the test skill ("Adding a regression test from a debug reproduction").
Bugs in flagging propagate everywhere downstream. Diagnose here first.
Pass debug=True to detect_trends(). process_signals.py:196 emits 7 diagnostic plots in sequence, each showing the value column on the left y-axis and the metric/flag on the right:
THRESHOLD_NOISE line (2.5) — noise detection input.±derivative_limit lines — trend direction input.If a flag is wrong here (e.g. noise_flag fires on a legitimate abrupt shift, or trend_flag misses an obvious uptrend), the bug is in process_signals.py. The knobs: THRESHOLD_NOISE=2.5, THRESHOLD_SMOOTH=0.001, WINDOW_SMOOTH=15, WINDOW_FLAT=7. Reproduce with a single series + debug=True in a # %% cell of tests/test.py and iterate.
If process_signals flags look correct but the final segments are wrong, the bug is in the post-processing chain. pytrendy/post_processing/segments_refine/__init__.py:refine_segments() runs ~14 stage calls in a specific order, and bugs compound — a misclassification at classify_trends propagates through grouping, shaving, cleanup, and re-classification.
Stage order from __init__.py:
classify_trends — DTW gradual/abrupt labels.group_segments (1st pass — sporadic flats/noises).expand_contract_segments — gradual boundary adjust (±7d extrema).shave_abrupt_trends — abrupt changepoint z-score shaving.clean_artifacts — remove overlaps from expand/contract.group_segments (2nd pass).clean_artifacts (again).classify_trends (reclassify — some graduals → abrupts).shave_abrupt_trends (2nd pass, second_pass=True, init_segments=...).group_segments + clean_artifacts.fill_in_flats — fill gaps with flats.group_segments (3rd pass, final) + clean_artifacts (inverse_only=True).Open refine_segments() in pytrendy/post_processing/segments_refine/__init__.py. Comment out stages one at a time (working from the bottom of the chain upward, or from classify_trends onward). After each edit, re-run the tests/test.py reproduction cell (Shift+Enter in VSCode) to see the effect on the plot/segments. The first uncomment that reintroduces the wrong behavior isolates the culprit stage.
For faster iteration without touching source, run this loop outside tests/test.py (REPL, separate scratch notebook, inline eval). Prints segment state after each stage; the divergence point is the culprit. Throwaway — never persist this in tests/test.py.
import pytrendy as pt
from pytrendy.post_processing.segments_get import get_segments
from pytrendy.post_processing.segments_refine import (
classify_trends, group_segments, expand_contract_segments,
shave_abrupt_trends, clean_artifacts, fill_in_flats,
)
df = pt.load_data('series_synthetic')[['date', 'gradual']].set_index('date')
value_col = 'gradual'
method_params = dict(abrupt_padding=0)
segs = get_segments(df)
print('pre-refine', len(segs), [(s['direction'], str(s['start']), str(s['end'])) for s in segs])
for name, fn in [
('classify_trends', lambda s: classify_trends(df, value_col, s)),
('group_segments#1', lambda s: group_segments(s)),
('expand_contract', lambda s: expand_contract_segments(df, value_col, s)),
('shave_abrupt', lambda s: shave_abrupt_trends(df, value_col, s, method_params)),
('clean_artifacts#1', lambda s: clean_artifacts(df, value_col, s, method_params)),
('group_segments#2', lambda s: group_segments(s)),
('clean_artifacts#2', lambda s: clean_artifacts(df, value_col, s, method_params)),
('classify_trends#2', lambda s: classify_trends(df, value_col, s)),
('fill_in_flats', lambda s: fill_in_flats(df, s)),
('group_segments#3', lambda s: group_segments(s)),
('clean_artifacts#3', lambda s: clean_artifacts(df, value_col, s, method_params, inverse_only=True)),
]:
segs = fn(segs)
print(name, len(segs), [(s['direction'], str(s['start']), str(s['end'])) for s in segs])Steps 8-10 only fire if classify_trends (reclassify) changes anything (if segments_refined != init_segments at __init__.py:52). If your bug only appears on series with mixed gradual/abrupt, the 2nd-pass shave_abrupt_trends with second_pass=True, init_segments=... is a likely culprit — it has different behavior than the 1st pass.
Once fixed, the test skill takes over — migrate the reproduction into tests/tests_crashes_edgecases/test_*.py using assert_segments_match / assert_segments_in_a_haystack from tests/conftest.py. The tests/test.py cell stays in place.
© RussellSB, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .opencode/skills/debug of RussellSB/pytrendy.
Open the folder on GitHubat commit 0d6d5bb
Debug next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Debug this skillRussellSB/pytrendy | 106 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Forge CLI Debug Workflowtailcallhq/forgecode | 7.6k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Issue Fixmono/SkiaSharp | 5.6k | — | ~5.1k | Automated safety check: Pass | MIT | |
| React Router Bug Fix Workflowremix-run/react-router | 57k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Runtime Debugvercel/next.js | 143k | 1 repos | ~618 | Automated safety check: Pass | MIT | |
| OpenROAD Bug FixerThe-OpenROAD-Project/OpenROAD | 3.2k | — | ~784 | Automated safety check: Pass | BSD-3-Clause |
tailcallhq/forgecode
Gives a systematic process for debugging the forge CLI: build in debug mode, check the latest help output, test with the non-interactive -p flag, and clone conversations before reproducing bugs.
mono/SkiaSharp
Fix bugs in SkiaSharp C bindings. An agent skill from mono/SkiaSharp.
remix-run/react-router
Fixes a React Router bug reported in a GitHub issue end to end: fetching the issue, validating the reproduction, writing a failing test and implementing the fix on a new branch.
vercel/next.js
Debug and verification workflow for runtime-bundle and module-resolution regressions.
The-OpenROAD-Project/OpenROAD
Fixes an OpenROAD bug from a GitHub issue or error code: finds the root cause, implements the fix, adds a regression test and prepares a signed-off commit.
mengxi-ream/read-frog
Debug the built Read Frog extension in real Chrome. An agent skill from mengxi-ream/read-frog.
RussellSB/pytrendy
A skill your agent uses when making ANY code change to pytrendy, creating issues, or opening PRs.
RussellSB/pytrendy
A skill your agent uses when preparing a fix or feature PR for review and adding before/after plot evidence to the PR body.
RussellSB/pytrendy
A skill your agent uses when working on pytrendy code, tests, or data.
RussellSB/pytrendy
A skill your agent uses when touching .github/workflows/, release config (.releaserc), mkdocs.yml, docs deploy, or the whats-new generator.
Categories
A skill your agent uses when debugging a pytrendy bug, reproducing a regression, or inspecting intermediate pipeline stage output. Debug is an agent skill from RussellSB/pytrendy. Use when debugging a pytrendy bug, reproducing a regression, or inspecting intermediate pipeline stage output.
Debug fits situations like: debugging a pytrendy bug; reproducing a regression; inspecting intermediate pipeline stage output.
Run `npx skills add RussellSB/pytrendy --skill debug -a claude-code`. Or copy the skill folder (.opencode/skills/debug in RussellSB/pytrendy) into .claude/skills/debug in your project. Claude Code loads it when a task matches its description.
Run `npx skills add RussellSB/pytrendy --skill debug -a codex`. Or copy the skill folder (.opencode/skills/debug in RussellSB/pytrendy) into .agents/skills/debug in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add RussellSB/pytrendy --skill debug -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debug, .gemini/skills/debug, .github/skills/debug and .opencode/skills/debug in your project.
SKILL.md names no scripts, command-line tools or credentials: Debug is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Debug is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Debug: Forge CLI Debug Workflow (tailcallhq/forgecode, 7.6k stars), Issue Fix (mono/SkiaSharp, 5.6k stars), React Router Bug Fix Workflow (remix-run/react-router, 57k stars) and Runtime Debug (vercel/next.js, 143k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
RussellSB (a GitHub user) maintains it in RussellSB/pytrendy, which has 106 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.
Source: RussellSB/pytrendy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.