credit-note-fixer

Fixes a credit-note formatting bug in a shell script and verifies it with a targeted test.

Updated May 23, 2026
One-click install
npx skills add https://github.com/kiranimmadi2/promptforge-ai --skill credit-note-fixer-kiranimmadi2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: credit-note-fixer
Source: https://github.com/kiranimmadi2/promptforge-ai/tree/main/openai-agents-python/examples/sandbox/docs/skills/credit-note-fixer
Command: npx skills add https://github.com/kiranimmadi2/promptforge-ai --skill credit-note-fixer-kiranimmadi2

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It guides you through diagnosing and fixing a small formatting bug in a credit-note shell script, ensuring the output label stays as credit and the amount remains positive, then confirms the fix with the exact targeted test command. ## Core Features & Use Cases - Guided Bug Diagnosis: Reads the task description, the buggy script, and its test file to pinpoint the formatting defect. - Minimal Patch Workflow: Applies the smallest correct change using workspace-root-relative paths with apply_patch. - Targeted Verification: Runs exactly sh tests/test_credit_note.sh from the repo directory to confirm the fix. - Use Case: A developer needs to repair a credit-note output formatting issue in a sandboxed repo and prove correctness with the project's own test script. ## Quick Start Fix the credit-note formatting bug in the repo and run the targeted test to verify the output label and positive amount.

Frequently Asked Questions about credit-note-fixer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix a formatting bug in a shell script?

Read the task description, inspect the buggy script and its test file, then apply the smallest change that satisfies the expected output. Verify by running the project's targeted test command from the repo root.

How do I run a targeted shell test script?

Run the test with sh followed by the script path from the correct working directory, for example sh tests/test_credit_note.sh from the repo folder. Running from the wrong directory can cause path resolution failures.

How do I use apply_patch with relative paths?

Use workspace-root-relative paths such as repo/credit_note.sh when applying patches. This ensures the patch targets the correct file regardless of the current working directory.

Why does my shell test fail after editing the script?

Failures usually come from changing the expected output label, altering the amount sign, or running the test from the wrong directory. Keep the label as credit, the amount positive, and run the test from the repo root.