[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HS5WCFQPE89E0MJ55G7GJQ":3,"skill-same:01M6HS5WCFQPE89E0MJ55G7GJQ":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":25,"publishedAt":48,"linkOnly":49,"markdownContent":50,"markdownBody":51,"frontMatter":52,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":59,"install":60,"resources":73},"01M6HS5WCFQPE89E0MJ55G7GJQ","bats-testing-patterns",null,"Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI\u002FCD pipelines, or requiring test-driven development of shell utilities.","welflau\u002Fai-dev-system","welflau","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7010385?v=4","01M6HPTDGF18RFY07M229P8CTM","01M6HPTDMRMZCJPYBFEA9XVVYT",3,"MIT","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fshell-scripting\u002Fskills\u002Fbats-testing-patterns\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署",[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"testing","testing patterns","bats","bats testing patterns","patterns","when","test-driven","for","Utilities","CI\u002FCD","automated testing","scripts","tests","master","use","system","Bash","shell scripts","ci","writing tests","development","writing","2026-11-10 10:12:30",false,"---\nname: bats-testing-patterns\ndescription: Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI\u002FCD pipelines, or requiring test-driven development of shell utilities.\n---\n\n# Bats Testing Patterns\n\nComprehensive guidance for writing comprehensive unit tests for shell scripts using Bats (Bash Automated Testing System), including test patterns, fixtures, and best practices for production-grade shell testing.\n\n## When to Use This Skill\n\n- Writing unit tests for shell scripts\n- Implementing test-driven development (TDD) for scripts\n- Setting up automated testing in CI\u002FCD pipelines\n- Testing edge cases and error conditions\n- Validating behavior across different shell environments\n- Building maintainable test suites for scripts\n- Creating fixtures for complex test scenarios\n- Testing multiple shell dialects (bash, sh, dash)\n\n## Bats Fundamentals\n\n### What is Bats?\n\nBats (Bash Automated Testing System) is a TAP (Test Anything Protocol) compliant testing framework for shell scripts that provides:\n- Simple, natural test syntax\n- TAP output format compatible with CI systems\n- Fixtures and setup\u002Fteardown support\n- Assertion helpers\n- Parallel test execution\n\n### Installation\n\n```bash\n# macOS with Homebrew\nbrew install bats-core\n\n# Ubuntu\u002FDebian\ngit clone https:\u002F\u002Fgithub.com\u002Fbats-core\u002Fbats-core.git\ncd bats-core\n.\u002Finstall.sh \u002Fusr\u002Flocal\n\n# From npm (Node.js)\nnpm install --global bats\n\n# Verify installation\nbats --version\n```\n\n### File Structure\n\n```\nproject\u002F\n├── bin\u002F\n│   ├── script.sh\n│   └── helper.sh\n├── tests\u002F\n│   ├── test_script.bats\n│   ├── test_helper.sh\n│   ├── fixtures\u002F\n│   │   ├── input.txt\n│   │   └── expected_output.txt\n│   └── helpers\u002F\n│       └── mocks.bash\n└── README.md\n```\n\n## Basic Test Structure\n\n### Simple Test File\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Load test helper if present\nload test_helper\n\n# Setup runs before each test\nsetup() {\n    export TMPDIR=$(mktemp -d)\n}\n\n# Teardown runs after each test\nteardown() {\n    rm -rf \"$TMPDIR\"\n}\n\n# Test: simple assertion\n@test \"Function returns 0 on success\" {\n    run my_function \"input\"\n    [ \"$status\" -eq 0 ]\n}\n\n# Test: output verification\n@test \"Function outputs correct result\" {\n    run my_function \"test\"\n    [ \"$output\" = \"expected output\" ]\n}\n\n# Test: error handling\n@test \"Function returns 1 on missing argument\" {\n    run my_function\n    [ \"$status\" -eq 1 ]\n}\n```\n\n## Assertion Patterns\n\n### Exit Code Assertions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Command succeeds\" {\n    run true\n    [ \"$status\" -eq 0 ]\n}\n\n@test \"Command fails as expected\" {\n    run false\n    [ \"$status\" -ne 0 ]\n}\n\n@test \"Command returns specific exit code\" {\n    run my_function --invalid\n    [ \"$status\" -eq 127 ]\n}\n\n@test \"Can capture command result\" {\n    run echo \"hello\"\n    [ $status -eq 0 ]\n    [ \"$output\" = \"hello\" ]\n}\n```\n\n### Output Assertions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Output matches string\" {\n    result=$(echo \"hello world\")\n    [ \"$result\" = \"hello world\" ]\n}\n\n@test \"Output contains substring\" {\n    result=$(echo \"hello world\")\n    [[ \"$result\" == *\"world\"* ]]\n}\n\n@test \"Output matches pattern\" {\n    result=$(date +%Y)\n    [[ \"$result\" =~ ^[0-9]{4}$ ]]\n}\n\n@test \"Multi-line output\" {\n    run printf \"line1\\nline2\\nline3\"\n    [ \"$output\" = \"line1\nline2\nline3\" ]\n}\n\n@test \"Lines variable contains output\" {\n    run printf \"line1\\nline2\\nline3\"\n    [ \"${lines[0]}\" = \"line1\" ]\n    [ \"${lines[1]}\" = \"line2\" ]\n    [ \"${lines[2]}\" = \"line3\" ]\n}\n```\n\n### File Assertions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"File is created\" {\n    [ ! -f \"$TMPDIR\u002Foutput.txt\" ]\n    my_function > \"$TMPDIR\u002Foutput.txt\"\n    [ -f \"$TMPDIR\u002Foutput.txt\" ]\n}\n\n@test \"File contents match expected\" {\n    my_function > \"$TMPDIR\u002Foutput.txt\"\n    [ \"$(cat \"$TMPDIR\u002Foutput.txt\")\" = \"expected content\" ]\n}\n\n@test \"File is readable\" {\n    touch \"$TMPDIR\u002Ftest.txt\"\n    [ -r \"$TMPDIR\u002Ftest.txt\" ]\n}\n\n@test \"File has correct permissions\" {\n    touch \"$TMPDIR\u002Ftest.txt\"\n    chmod 644 \"$TMPDIR\u002Ftest.txt\"\n    [ \"$(stat -f %OLp \"$TMPDIR\u002Ftest.txt\")\" = \"644\" ]\n}\n\n@test \"File size is correct\" {\n    echo -n \"12345\" > \"$TMPDIR\u002Ftest.txt\"\n    [ \"$(wc -c \u003C \"$TMPDIR\u002Ftest.txt\")\" -eq 5 ]\n}\n```\n\n## Setup and Teardown Patterns\n\n### Basic Setup and Teardown\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Create test directory\n    TEST_DIR=$(mktemp -d)\n    export TEST_DIR\n\n    # Source script under test\n    source \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\"\n}\n\nteardown() {\n    # Clean up temporary directory\n    rm -rf \"$TEST_DIR\"\n}\n\n@test \"Test using TEST_DIR\" {\n    touch \"$TEST_DIR\u002Ffile.txt\"\n    [ -f \"$TEST_DIR\u002Ffile.txt\" ]\n}\n```\n\n### Setup with Resources\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Create directory structure\n    mkdir -p \"$TMPDIR\u002Fdata\u002Finput\"\n    mkdir -p \"$TMPDIR\u002Fdata\u002Foutput\"\n\n    # Create test fixtures\n    echo \"line1\" > \"$TMPDIR\u002Fdata\u002Finput\u002Ffile1.txt\"\n    echo \"line2\" > \"$TMPDIR\u002Fdata\u002Finput\u002Ffile2.txt\"\n\n    # Initialize environment\n    export DATA_DIR=\"$TMPDIR\u002Fdata\"\n    export INPUT_DIR=\"$DATA_DIR\u002Finput\"\n    export OUTPUT_DIR=\"$DATA_DIR\u002Foutput\"\n}\n\nteardown() {\n    rm -rf \"$TMPDIR\u002Fdata\"\n}\n\n@test \"Processes input files\" {\n    run my_process_script \"$INPUT_DIR\" \"$OUTPUT_DIR\"\n    [ \"$status\" -eq 0 ]\n    [ -f \"$OUTPUT_DIR\u002Ffile1.txt\" ]\n}\n```\n\n### Global Setup\u002FTeardown\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Load shared setup from test_helper.sh\nload test_helper\n\n# setup_file runs once before all tests\nsetup_file() {\n    export SHARED_RESOURCE=$(mktemp -d)\n    echo \"Expensive setup\" > \"$SHARED_RESOURCE\u002Fdata.txt\"\n}\n\n# teardown_file runs once after all tests\nteardown_file() {\n    rm -rf \"$SHARED_RESOURCE\"\n}\n\n@test \"First test uses shared resource\" {\n    [ -f \"$SHARED_RESOURCE\u002Fdata.txt\" ]\n}\n\n@test \"Second test uses shared resource\" {\n    [ -d \"$SHARED_RESOURCE\" ]\n}\n```\n\n## Mocking and Stubbing Patterns\n\n### Function Mocking\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Mock external command\nmy_external_tool() {\n    echo \"mocked output\"\n    return 0\n}\n\n@test \"Function uses mocked tool\" {\n    export -f my_external_tool\n    run my_function\n    [[ \"$output\" == *\"mocked output\"* ]]\n}\n```\n\n### Command Stubbing\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Create stub directory\n    STUBS_DIR=\"$TMPDIR\u002Fstubs\"\n    mkdir -p \"$STUBS_DIR\"\n\n    # Add to PATH\n    export PATH=\"$STUBS_DIR:$PATH\"\n}\n\ncreate_stub() {\n    local cmd=\"$1\"\n    local output=\"$2\"\n    local code=\"${3:-0}\"\n\n    cat > \"$STUBS_DIR\u002F$cmd\" \u003C\u003CEOF\n#!\u002Fbin\u002Fbash\necho \"$output\"\nexit $code\nEOF\n    chmod +x \"$STUBS_DIR\u002F$cmd\"\n}\n\n@test \"Function works with stubbed curl\" {\n    create_stub curl \"{ \\\"status\\\": \\\"ok\\\" }\" 0\n    run my_api_function\n    [ \"$status\" -eq 0 ]\n}\n```\n\n### Variable Stubbing\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Function handles environment override\" {\n    export MY_SETTING=\"override_value\"\n    run my_function\n    [ \"$status\" -eq 0 ]\n    [[ \"$output\" == *\"override_value\"* ]]\n}\n\n@test \"Function uses default when var unset\" {\n    unset MY_SETTING\n    run my_function\n    [ \"$status\" -eq 0 ]\n    [[ \"$output\" == *\"default\"* ]]\n}\n```\n\n## Fixture Management\n\n### Using Fixture Files\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Fixture directory: tests\u002Ffixtures\u002F\n\nsetup() {\n    FIXTURES_DIR=\"${BATS_TEST_DIRNAME}\u002Ffixtures\"\n    WORK_DIR=$(mktemp -d)\n    export WORK_DIR\n}\n\nteardown() {\n    rm -rf \"$WORK_DIR\"\n}\n\n@test \"Process fixture file\" {\n    # Copy fixture to work directory\n    cp \"$FIXTURES_DIR\u002Finput.txt\" \"$WORK_DIR\u002Finput.txt\"\n\n    # Run function\n    run my_process_function \"$WORK_DIR\u002Finput.txt\"\n\n    # Compare output\n    diff \"$WORK_DIR\u002Foutput.txt\" \"$FIXTURES_DIR\u002Fexpected_output.txt\"\n}\n```\n\n### Dynamic Fixture Generation\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\ngenerate_fixture() {\n    local lines=\"$1\"\n    local file=\"$2\"\n\n    for i in $(seq 1 \"$lines\"); do\n        echo \"Line $i content\" >> \"$file\"\n    done\n}\n\n@test \"Handle large input file\" {\n    generate_fixture 1000 \"$TMPDIR\u002Flarge.txt\"\n    run my_function \"$TMPDIR\u002Flarge.txt\"\n    [ \"$status\" -eq 0 ]\n    [ \"$(wc -l \u003C \"$TMPDIR\u002Flarge.txt\")\" -eq 1000 ]\n}\n```\n\n## Advanced Patterns\n\n### Testing Error Conditions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Function fails with missing file\" {\n    run my_function \"\u002Fnonexistent\u002Ffile.txt\"\n    [ \"$status\" -ne 0 ]\n    [[ \"$output\" == *\"not found\"* ]]\n}\n\n@test \"Function fails with invalid input\" {\n    run my_function \"\"\n    [ \"$status\" -ne 0 ]\n}\n\n@test \"Function fails with permission denied\" {\n    touch \"$TMPDIR\u002Freadonly.txt\"\n    chmod 000 \"$TMPDIR\u002Freadonly.txt\"\n    run my_function \"$TMPDIR\u002Freadonly.txt\"\n    [ \"$status\" -ne 0 ]\n    chmod 644 \"$TMPDIR\u002Freadonly.txt\"  # Cleanup\n}\n\n@test \"Function provides helpful error message\" {\n    run my_function --invalid-option\n    [ \"$status\" -ne 0 ]\n    [[ \"$output\" == *\"Usage:\"* ]]\n}\n```\n\n### Testing with Dependencies\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Check for required tools\n    if ! command -v jq &>\u002Fdev\u002Fnull; then\n        skip \"jq is not installed\"\n    fi\n\n    export SCRIPT=\"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\"\n}\n\n@test \"JSON parsing works\" {\n    skip_if ! command -v jq &>\u002Fdev\u002Fnull\n    run my_json_parser '{\"key\": \"value\"}'\n    [ \"$status\" -eq 0 ]\n}\n```\n\n### Testing Shell Compatibility\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Script works in bash\" {\n    bash \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\" arg1\n}\n\n@test \"Script works in sh (POSIX)\" {\n    sh \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\" arg1\n}\n\n@test \"Script works in dash\" {\n    if command -v dash &>\u002Fdev\u002Fnull; then\n        dash \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\" arg1\n    else\n        skip \"dash not installed\"\n    fi\n}\n```\n\n### Parallel Execution\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Multiple independent operations\" {\n    run bash -c 'for i in {1..10}; do\n        my_operation \"$i\" &\n    done\n    wait'\n    [ \"$status\" -eq 0 ]\n}\n\n@test \"Concurrent file operations\" {\n    for i in {1..5}; do\n        my_function \"$TMPDIR\u002Ffile$i\" &\n    done\n    wait\n    [ -f \"$TMPDIR\u002Ffile1\" ]\n    [ -f \"$TMPDIR\u002Ffile5\" ]\n}\n```\n\n## Test Helper Pattern\n\n### test_helper.sh\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n\n# Source script under test\nexport SCRIPT_DIR=\"${BATS_TEST_DIRNAME%\u002F*}\u002Fbin\"\n\n# Common test utilities\nassert_file_exists() {\n    if [ ! -f \"$1\" ]; then\n        echo \"Expected file to exist: $1\"\n        return 1\n    fi\n}\n\nassert_file_equals() {\n    local file=\"$1\"\n    local expected=\"$2\"\n\n    if [ ! -f \"$file\" ]; then\n        echo \"File does not exist: $file\"\n        return 1\n    fi\n\n    local actual=$(cat \"$file\")\n    if [ \"$actual\" != \"$expected\" ]; then\n        echo \"File contents do not match\"\n        echo \"Expected: $expected\"\n        echo \"Actual: $actual\"\n        return 1\n    fi\n}\n\n# Create temporary test directory\nsetup_test_dir() {\n    export TEST_DIR=$(mktemp -d)\n}\n\ncleanup_test_dir() {\n    rm -rf \"$TEST_DIR\"\n}\n```\n\n## Integration with CI\u002FCD\n\n### GitHub Actions Workflow\n\n```yaml\nname: Tests\n\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions\u002Fcheckout@v3\n\n      - name: Install Bats\n        run: |\n          npm install --global bats\n\n      - name: Run Tests\n        run: |\n          bats tests\u002F*.bats\n\n      - name: Run Tests with Tap Reporter\n        run: |\n          bats tests\u002F*.bats --tap | tee test_output.tap\n```\n\n### Makefile Integration\n\n```makefile\n.PHONY: test test-verbose test-tap\n\ntest:\n\tbats tests\u002F*.bats\n\ntest-verbose:\n\tbats tests\u002F*.bats --verbose\n\ntest-tap:\n\tbats tests\u002F*.bats --tap\n\ntest-parallel:\n\tbats tests\u002F*.bats --parallel 4\n\ncoverage: test\n\t# Optional: Generate coverage reports\n```\n\n## Best Practices\n\n1. **Test one thing per test** - Single responsibility principle\n2. **Use descriptive test names** - Clearly states what is being tested\n3. **Clean up after tests** - Always remove temporary files in teardown\n4. **Test both success and failure paths** - Don't just test happy path\n5. **Mock external dependencies** - Isolate unit under test\n6. **Use fixtures for complex data** - Makes tests more readable\n7. **Run tests in CI\u002FCD** - Catch regressions early\n8. **Test across shell dialects** - Ensure portability\n9. **Keep tests fast** - Run in parallel when possible\n10. **Document complex test setup** - Explain unusual patterns\n\n## Resources\n\n- **Bats GitHub**: https:\u002F\u002Fgithub.com\u002Fbats-core\u002Fbats-core\n- **Bats Documentation**: https:\u002F\u002Fbats-core.readthedocs.io\u002F\n- **TAP Protocol**: https:\u002F\u002Ftestanything.org\u002F\n- **Test-Driven Development**: https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FTest-driven_development\n","# Bats Testing Patterns\n\nComprehensive guidance for writing comprehensive unit tests for shell scripts using Bats (Bash Automated Testing System), including test patterns, fixtures, and best practices for production-grade shell testing.\n\n## When to Use This Skill\n\n- Writing unit tests for shell scripts\n- Implementing test-driven development (TDD) for scripts\n- Setting up automated testing in CI\u002FCD pipelines\n- Testing edge cases and error conditions\n- Validating behavior across different shell environments\n- Building maintainable test suites for scripts\n- Creating fixtures for complex test scenarios\n- Testing multiple shell dialects (bash, sh, dash)\n\n## Bats Fundamentals\n\n### What is Bats?\n\nBats (Bash Automated Testing System) is a TAP (Test Anything Protocol) compliant testing framework for shell scripts that provides:\n- Simple, natural test syntax\n- TAP output format compatible with CI systems\n- Fixtures and setup\u002Fteardown support\n- Assertion helpers\n- Parallel test execution\n\n### Installation\n\n```bash\n# macOS with Homebrew\nbrew install bats-core\n\n# Ubuntu\u002FDebian\ngit clone https:\u002F\u002Fgithub.com\u002Fbats-core\u002Fbats-core.git\ncd bats-core\n.\u002Finstall.sh \u002Fusr\u002Flocal\n\n# From npm (Node.js)\nnpm install --global bats\n\n# Verify installation\nbats --version\n```\n\n### File Structure\n\n```\nproject\u002F\n├── bin\u002F\n│   ├── script.sh\n│   └── helper.sh\n├── tests\u002F\n│   ├── test_script.bats\n│   ├── test_helper.sh\n│   ├── fixtures\u002F\n│   │   ├── input.txt\n│   │   └── expected_output.txt\n│   └── helpers\u002F\n│       └── mocks.bash\n└── README.md\n```\n\n## Basic Test Structure\n\n### Simple Test File\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Load test helper if present\nload test_helper\n\n# Setup runs before each test\nsetup() {\n    export TMPDIR=$(mktemp -d)\n}\n\n# Teardown runs after each test\nteardown() {\n    rm -rf \"$TMPDIR\"\n}\n\n# Test: simple assertion\n@test \"Function returns 0 on success\" {\n    run my_function \"input\"\n    [ \"$status\" -eq 0 ]\n}\n\n# Test: output verification\n@test \"Function outputs correct result\" {\n    run my_function \"test\"\n    [ \"$output\" = \"expected output\" ]\n}\n\n# Test: error handling\n@test \"Function returns 1 on missing argument\" {\n    run my_function\n    [ \"$status\" -eq 1 ]\n}\n```\n\n## Assertion Patterns\n\n### Exit Code Assertions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Command succeeds\" {\n    run true\n    [ \"$status\" -eq 0 ]\n}\n\n@test \"Command fails as expected\" {\n    run false\n    [ \"$status\" -ne 0 ]\n}\n\n@test \"Command returns specific exit code\" {\n    run my_function --invalid\n    [ \"$status\" -eq 127 ]\n}\n\n@test \"Can capture command result\" {\n    run echo \"hello\"\n    [ $status -eq 0 ]\n    [ \"$output\" = \"hello\" ]\n}\n```\n\n### Output Assertions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Output matches string\" {\n    result=$(echo \"hello world\")\n    [ \"$result\" = \"hello world\" ]\n}\n\n@test \"Output contains substring\" {\n    result=$(echo \"hello world\")\n    [[ \"$result\" == *\"world\"* ]]\n}\n\n@test \"Output matches pattern\" {\n    result=$(date +%Y)\n    [[ \"$result\" =~ ^[0-9]{4}$ ]]\n}\n\n@test \"Multi-line output\" {\n    run printf \"line1\\nline2\\nline3\"\n    [ \"$output\" = \"line1\nline2\nline3\" ]\n}\n\n@test \"Lines variable contains output\" {\n    run printf \"line1\\nline2\\nline3\"\n    [ \"${lines[0]}\" = \"line1\" ]\n    [ \"${lines[1]}\" = \"line2\" ]\n    [ \"${lines[2]}\" = \"line3\" ]\n}\n```\n\n### File Assertions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"File is created\" {\n    [ ! -f \"$TMPDIR\u002Foutput.txt\" ]\n    my_function > \"$TMPDIR\u002Foutput.txt\"\n    [ -f \"$TMPDIR\u002Foutput.txt\" ]\n}\n\n@test \"File contents match expected\" {\n    my_function > \"$TMPDIR\u002Foutput.txt\"\n    [ \"$(cat \"$TMPDIR\u002Foutput.txt\")\" = \"expected content\" ]\n}\n\n@test \"File is readable\" {\n    touch \"$TMPDIR\u002Ftest.txt\"\n    [ -r \"$TMPDIR\u002Ftest.txt\" ]\n}\n\n@test \"File has correct permissions\" {\n    touch \"$TMPDIR\u002Ftest.txt\"\n    chmod 644 \"$TMPDIR\u002Ftest.txt\"\n    [ \"$(stat -f %OLp \"$TMPDIR\u002Ftest.txt\")\" = \"644\" ]\n}\n\n@test \"File size is correct\" {\n    echo -n \"12345\" > \"$TMPDIR\u002Ftest.txt\"\n    [ \"$(wc -c \u003C \"$TMPDIR\u002Ftest.txt\")\" -eq 5 ]\n}\n```\n\n## Setup and Teardown Patterns\n\n### Basic Setup and Teardown\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Create test directory\n    TEST_DIR=$(mktemp -d)\n    export TEST_DIR\n\n    # Source script under test\n    source \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\"\n}\n\nteardown() {\n    # Clean up temporary directory\n    rm -rf \"$TEST_DIR\"\n}\n\n@test \"Test using TEST_DIR\" {\n    touch \"$TEST_DIR\u002Ffile.txt\"\n    [ -f \"$TEST_DIR\u002Ffile.txt\" ]\n}\n```\n\n### Setup with Resources\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Create directory structure\n    mkdir -p \"$TMPDIR\u002Fdata\u002Finput\"\n    mkdir -p \"$TMPDIR\u002Fdata\u002Foutput\"\n\n    # Create test fixtures\n    echo \"line1\" > \"$TMPDIR\u002Fdata\u002Finput\u002Ffile1.txt\"\n    echo \"line2\" > \"$TMPDIR\u002Fdata\u002Finput\u002Ffile2.txt\"\n\n    # Initialize environment\n    export DATA_DIR=\"$TMPDIR\u002Fdata\"\n    export INPUT_DIR=\"$DATA_DIR\u002Finput\"\n    export OUTPUT_DIR=\"$DATA_DIR\u002Foutput\"\n}\n\nteardown() {\n    rm -rf \"$TMPDIR\u002Fdata\"\n}\n\n@test \"Processes input files\" {\n    run my_process_script \"$INPUT_DIR\" \"$OUTPUT_DIR\"\n    [ \"$status\" -eq 0 ]\n    [ -f \"$OUTPUT_DIR\u002Ffile1.txt\" ]\n}\n```\n\n### Global Setup\u002FTeardown\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Load shared setup from test_helper.sh\nload test_helper\n\n# setup_file runs once before all tests\nsetup_file() {\n    export SHARED_RESOURCE=$(mktemp -d)\n    echo \"Expensive setup\" > \"$SHARED_RESOURCE\u002Fdata.txt\"\n}\n\n# teardown_file runs once after all tests\nteardown_file() {\n    rm -rf \"$SHARED_RESOURCE\"\n}\n\n@test \"First test uses shared resource\" {\n    [ -f \"$SHARED_RESOURCE\u002Fdata.txt\" ]\n}\n\n@test \"Second test uses shared resource\" {\n    [ -d \"$SHARED_RESOURCE\" ]\n}\n```\n\n## Mocking and Stubbing Patterns\n\n### Function Mocking\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Mock external command\nmy_external_tool() {\n    echo \"mocked output\"\n    return 0\n}\n\n@test \"Function uses mocked tool\" {\n    export -f my_external_tool\n    run my_function\n    [[ \"$output\" == *\"mocked output\"* ]]\n}\n```\n\n### Command Stubbing\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Create stub directory\n    STUBS_DIR=\"$TMPDIR\u002Fstubs\"\n    mkdir -p \"$STUBS_DIR\"\n\n    # Add to PATH\n    export PATH=\"$STUBS_DIR:$PATH\"\n}\n\ncreate_stub() {\n    local cmd=\"$1\"\n    local output=\"$2\"\n    local code=\"${3:-0}\"\n\n    cat > \"$STUBS_DIR\u002F$cmd\" \u003C\u003CEOF\n#!\u002Fbin\u002Fbash\necho \"$output\"\nexit $code\nEOF\n    chmod +x \"$STUBS_DIR\u002F$cmd\"\n}\n\n@test \"Function works with stubbed curl\" {\n    create_stub curl \"{ \\\"status\\\": \\\"ok\\\" }\" 0\n    run my_api_function\n    [ \"$status\" -eq 0 ]\n}\n```\n\n### Variable Stubbing\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Function handles environment override\" {\n    export MY_SETTING=\"override_value\"\n    run my_function\n    [ \"$status\" -eq 0 ]\n    [[ \"$output\" == *\"override_value\"* ]]\n}\n\n@test \"Function uses default when var unset\" {\n    unset MY_SETTING\n    run my_function\n    [ \"$status\" -eq 0 ]\n    [[ \"$output\" == *\"default\"* ]]\n}\n```\n\n## Fixture Management\n\n### Using Fixture Files\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n# Fixture directory: tests\u002Ffixtures\u002F\n\nsetup() {\n    FIXTURES_DIR=\"${BATS_TEST_DIRNAME}\u002Ffixtures\"\n    WORK_DIR=$(mktemp -d)\n    export WORK_DIR\n}\n\nteardown() {\n    rm -rf \"$WORK_DIR\"\n}\n\n@test \"Process fixture file\" {\n    # Copy fixture to work directory\n    cp \"$FIXTURES_DIR\u002Finput.txt\" \"$WORK_DIR\u002Finput.txt\"\n\n    # Run function\n    run my_process_function \"$WORK_DIR\u002Finput.txt\"\n\n    # Compare output\n    diff \"$WORK_DIR\u002Foutput.txt\" \"$FIXTURES_DIR\u002Fexpected_output.txt\"\n}\n```\n\n### Dynamic Fixture Generation\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\ngenerate_fixture() {\n    local lines=\"$1\"\n    local file=\"$2\"\n\n    for i in $(seq 1 \"$lines\"); do\n        echo \"Line $i content\" >> \"$file\"\n    done\n}\n\n@test \"Handle large input file\" {\n    generate_fixture 1000 \"$TMPDIR\u002Flarge.txt\"\n    run my_function \"$TMPDIR\u002Flarge.txt\"\n    [ \"$status\" -eq 0 ]\n    [ \"$(wc -l \u003C \"$TMPDIR\u002Flarge.txt\")\" -eq 1000 ]\n}\n```\n\n## Advanced Patterns\n\n### Testing Error Conditions\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Function fails with missing file\" {\n    run my_function \"\u002Fnonexistent\u002Ffile.txt\"\n    [ \"$status\" -ne 0 ]\n    [[ \"$output\" == *\"not found\"* ]]\n}\n\n@test \"Function fails with invalid input\" {\n    run my_function \"\"\n    [ \"$status\" -ne 0 ]\n}\n\n@test \"Function fails with permission denied\" {\n    touch \"$TMPDIR\u002Freadonly.txt\"\n    chmod 000 \"$TMPDIR\u002Freadonly.txt\"\n    run my_function \"$TMPDIR\u002Freadonly.txt\"\n    [ \"$status\" -ne 0 ]\n    chmod 644 \"$TMPDIR\u002Freadonly.txt\"  # Cleanup\n}\n\n@test \"Function provides helpful error message\" {\n    run my_function --invalid-option\n    [ \"$status\" -ne 0 ]\n    [[ \"$output\" == *\"Usage:\"* ]]\n}\n```\n\n### Testing with Dependencies\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\nsetup() {\n    # Check for required tools\n    if ! command -v jq &>\u002Fdev\u002Fnull; then\n        skip \"jq is not installed\"\n    fi\n\n    export SCRIPT=\"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\"\n}\n\n@test \"JSON parsing works\" {\n    skip_if ! command -v jq &>\u002Fdev\u002Fnull\n    run my_json_parser '{\"key\": \"value\"}'\n    [ \"$status\" -eq 0 ]\n}\n```\n\n### Testing Shell Compatibility\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Script works in bash\" {\n    bash \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\" arg1\n}\n\n@test \"Script works in sh (POSIX)\" {\n    sh \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\" arg1\n}\n\n@test \"Script works in dash\" {\n    if command -v dash &>\u002Fdev\u002Fnull; then\n        dash \"${BATS_TEST_DIRNAME}\u002F..\u002Fbin\u002Fscript.sh\" arg1\n    else\n        skip \"dash not installed\"\n    fi\n}\n```\n\n### Parallel Execution\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bats\n\n@test \"Multiple independent operations\" {\n    run bash -c 'for i in {1..10}; do\n        my_operation \"$i\" &\n    done\n    wait'\n    [ \"$status\" -eq 0 ]\n}\n\n@test \"Concurrent file operations\" {\n    for i in {1..5}; do\n        my_function \"$TMPDIR\u002Ffile$i\" &\n    done\n    wait\n    [ -f \"$TMPDIR\u002Ffile1\" ]\n    [ -f \"$TMPDIR\u002Ffile5\" ]\n}\n```\n\n## Test Helper Pattern\n\n### test_helper.sh\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n\n# Source script under test\nexport SCRIPT_DIR=\"${BATS_TEST_DIRNAME%\u002F*}\u002Fbin\"\n\n# Common test utilities\nassert_file_exists() {\n    if [ ! -f \"$1\" ]; then\n        echo \"Expected file to exist: $1\"\n        return 1\n    fi\n}\n\nassert_file_equals() {\n    local file=\"$1\"\n    local expected=\"$2\"\n\n    if [ ! -f \"$file\" ]; then\n        echo \"File does not exist: $file\"\n        return 1\n    fi\n\n    local actual=$(cat \"$file\")\n    if [ \"$actual\" != \"$expected\" ]; then\n        echo \"File contents do not match\"\n        echo \"Expected: $expected\"\n        echo \"Actual: $actual\"\n        return 1\n    fi\n}\n\n# Create temporary test directory\nsetup_test_dir() {\n    export TEST_DIR=$(mktemp -d)\n}\n\ncleanup_test_dir() {\n    rm -rf \"$TEST_DIR\"\n}\n```\n\n## Integration with CI\u002FCD\n\n### GitHub Actions Workflow\n\n```yaml\nname: Tests\n\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions\u002Fcheckout@v3\n\n      - name: Install Bats\n        run: |\n          npm install --global bats\n\n      - name: Run Tests\n        run: |\n          bats tests\u002F*.bats\n\n      - name: Run Tests with Tap Reporter\n        run: |\n          bats tests\u002F*.bats --tap | tee test_output.tap\n```\n\n### Makefile Integration\n\n```makefile\n.PHONY: test test-verbose test-tap\n\ntest:\n\tbats tests\u002F*.bats\n\ntest-verbose:\n\tbats tests\u002F*.bats --verbose\n\ntest-tap:\n\tbats tests\u002F*.bats --tap\n\ntest-parallel:\n\tbats tests\u002F*.bats --parallel 4\n\ncoverage: test\n\t# Optional: Generate coverage reports\n```\n\n## Best Practices\n\n1. **Test one thing per test** - Single responsibility principle\n2. **Use descriptive test names** - Clearly states what is being tested\n3. **Clean up after tests** - Always remove temporary files in teardown\n4. **Test both success and failure paths** - Don't just test happy path\n5. **Mock external dependencies** - Isolate unit under test\n6. **Use fixtures for complex data** - Makes tests more readable\n7. **Run tests in CI\u002FCD** - Catch regressions early\n8. **Test across shell dialects** - Ensure portability\n9. **Keep tests fast** - Run in parallel when possible\n10. **Document complex test setup** - Explain unusual patterns\n\n## Resources\n\n- **Bats GitHub**: https:\u002F\u002Fgithub.com\u002Fbats-core\u002Fbats-core\n- **Bats Documentation**: https:\u002F\u002Fbats-core.readthedocs.io\u002F\n- **TAP Protocol**: https:\u002F\u002Ftestanything.org\u002F\n- **Test-Driven Development**: https:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FTest-driven_development\n",{"name":5,"description":7},"main","18d0e63d1313ca87098f614aa7c1e2dcf6de79c7","backend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fshell-scripting\u002Fskills\u002Fbats-testing-patterns",1,"https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system","https:\u002F\u002Fgithub.com\u002Fwelflau","2026-11-12 14:55:20",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add welflau\u002Fai-dev-system --skill bats-testing-patterns",{"tool":66,"command":67},"bunx","bunx skills add welflau\u002Fai-dev-system --skill bats-testing-patterns",{"tool":69,"command":70},"pnpm","pnpm dlx skills add welflau\u002Fai-dev-system --skill bats-testing-patterns","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fshell-scripting\u002Fskills\u002Fbats-testing-patterns\u002FSKILL.md",true,[],[75,104,133,159,188,213],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":80,"sourceHtmlUrl":81,"categories":82,"keywords":87,"publishedAt":103},"01M6HS9Z4B0YA8CJCS2Y2F04Y3","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Fwebapp-testing\u002FSKILL.md",[83,84],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":85,"categoryName":86,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000009","前端开发",[26,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,33],"webapp testing","webapp","frontend","screenshots","playwright","web","debugging","toolkit","browser","ui","logs","applications","behavior","local","with","2026-11-11 15:11:14",{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":114,"publishedAt":103},"01M6HRAGMG7JF0HXYHMA5QHS8A","internal-comms","A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Finternal-comms\u002FSKILL.md",[111],{"categoryNo":112,"categoryName":113,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000005","邮件与沟通",[115,116,117,118,119,120,40,121,122,123,124,125,126,127,128,129,130,131,132],"internal comms","comms","status","help","SET","write","reports","me","incident","leadership","project","resources","communications","internal communications","formats","sort","my","updates",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":137,"sourceHtmlUrl":138,"categories":139,"keywords":141,"publishedAt":48},"01M6HSTDP4M3JFXEBK91VFB4PA","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Fweb-artifacts-builder\u002FSKILL.md",[140],{"categoryNo":85,"categoryName":86,"taxonomyType":20,"taxonomyTypeDesc":21},[142,93,143,144,145,90,146,147,148,149,150,151,152,153,40,154,155,156,157,33,158],"web artifacts builder","artifacts","artifacts builder","builder","css","components","react","routing","state management","state","file","Tailwind","single-file","simple","ui components","multi","single",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":163,"sourceHtmlUrl":164,"categories":165,"keywords":175,"publishedAt":48},"01M6HSDXH0JSP8R3QTNY9XZ8HN","frontend-design","Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML\u002FCSS layouts, or when styling\u002Fbeautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Ffrontend-design\u002FSKILL.md",[166,167,170],{"categoryNo":85,"categoryName":86,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":168,"categoryName":169,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":171,"categoryName":172,"taxonomyType":173,"taxonomyTypeDesc":174},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[90,176,177,146,93,147,148,178,179,180,143,181,99,182,40,183,184,185,186,102,187,31],"design","frontend design","react components","create","code","examples","landing","ui design","pages","aesthetics","web ui","generic",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":192,"sourceHtmlUrl":193,"categories":194,"keywords":196,"publishedAt":48},"01M6HSA77QYVP7A72HREGTDN2C","algorithmic-art","Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fplugins\u002Falgorithmic-art\u002FSKILL.md",[195],{"categoryNo":168,"categoryName":169,"taxonomyType":20,"taxonomyTypeDesc":21},[197,198,199,179,180,200,201,202,203,40,204,205,206,207,102,208,209,210,211,212,31],"algorithmic art","Art","algorithmic","flow","js","work","interactive","generative art","exploration","systems","users","Existing","request","generative","copyright","fields",{"skillNo":214,"name":215,"nameZh":6,"description":216,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":79,"licenseFileUrl":217,"sourceHtmlUrl":218,"categories":219,"keywords":221,"publishedAt":48},"01M6HS9HE0X390Y6RQKTY1YNGJ","theme-factory","Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fwelflau\u002Fai-dev-system\u002Fblob\u002Fmain\u002Fbackend\u002Fskills\u002Fmarketplace\u002Fcodebuddy-plugins-official\u002Fexternal_plugins\u002Ftheme-factory\u002FSKILL.md",[220],{"categoryNo":168,"categoryName":169,"taxonomyType":20,"taxonomyTypeDesc":21},[222,223,224,225,95,226,143,119,227,228,182,229,230,184,231,102,232,233,234,33,235,236],"theme factory","factory","theme","docs","generate","fly","slides","styling","artifact","themes","you","fonts","can","apply","new"]