credit-note-fixer

Patch credit-note formatting and run the targeted shell test.

Updated Dec 6, 2016
One-click install
npx skills add https://github.com/majunbao/learn --skill credit-note-fixer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: credit-note-fixer
Source: https://github.com/majunbao/learn/tree/main/openai-agents-python_tags/openai-agents-python-0.14.6/examples/sandbox/docs/skills/credit-note-fixer
Command: npx skills add https://github.com/majunbao/learn --skill credit-note-fixer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill fixes a tiny formatting bug in credit-note handling and ensures the precise targeted tests pass after a minimal patch.

Core Features & Use Cases

  • Bug detection: identifies formatting issues in credit-note output.
  • Minimal patching: applies the smallest correct change that preserves the required label and positive amount.
  • Test verification: runs the exact test command to verify the fix in the repository.

Quick Start

Run the exact test command sh tests/test_credit_note.sh from repo/ to verify the fix.

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 credit-note formatting bug in a bash test suite?

To fix a credit-note formatting bug, inspect repo/task.md, review credit_note.sh and tests/test_credit_note.sh, apply the smallest correct patch preserving the credit label and positive amount, then run sh tests/test_credit_note.sh to verify.

Why does my credit-note bash test fail when checking output labels?

A credit-note test fails when the output label or amount formatting deviates from expected values. Inspecting the test script and applying a minimal patch to preserve the credit label and positive amount resolves the formatting mismatch.

What is the best way to apply a minimal patch to a bash script without breaking tests?

The best way to apply a minimal patch is to inspect the targeted test file, identify the formatting discrepancy, modify the script to preserve the required label and positive amount, and execute sh tests/test_credit_note.sh from the repo directory to verify.

Do I need any external dependencies to run the credit-note test verification?

No external dependencies are required to run the credit-note test verification. The process relies on standard bash scripting, executing the sh tests/test_credit_note.sh command directly from the repository directory to validate the minimal patch.

Can I use this approach to debug other shell script formatting issues?

You can use this minimal patch approach to debug shell script formatting issues by inspecting the task requirements, applying the smallest correct code change to preserve output formatting, and running the targeted test command to verify the fix.