[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75F1SNHNPYPY8GNEK28S6YK":3,"skill-same:01M75F1SNHNPYPY8GNEK28S6YK":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M75F1SNHNPYPY8GNEK28S6YK","libafl",null,"LibAFL is a modular fuzzing library for building custom fuzzers. Use for advanced fuzzing needs, custom mutators, or non-standard fuzzing targets.","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Flibafl\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: libafl\ntype: fuzzer\ndescription: >\n  LibAFL is a modular fuzzing library for building custom fuzzers. Use for\n  advanced fuzzing needs, custom mutators, or non-standard fuzzing targets.\n---\n\n# LibAFL\n\nLibAFL is a modular fuzzing library that implements features from AFL-based fuzzers like AFL++. Unlike traditional fuzzers, LibAFL provides all functionality in a modular and customizable way as a Rust library. It can be used as a drop-in replacement for libFuzzer or as a library to build custom fuzzers from scratch.\n\n## When to Use\n\n| Fuzzer | Best For | Complexity |\n|--------|----------|------------|\n| libFuzzer | Quick setup, single-threaded | Low |\n| AFL++ | Multi-core, general purpose | Medium |\n| LibAFL | Custom fuzzers, advanced features, research | High |\n\n**Choose LibAFL when:**\n- You need custom mutation strategies or feedback mechanisms\n- Standard fuzzers don't support your target architecture\n- You want to implement novel fuzzing techniques\n- You need fine-grained control over fuzzing components\n- You're conducting fuzzing research\n\n## Quick Start\n\nLibAFL can be used as a drop-in replacement for libFuzzer with minimal setup:\n\n```c++\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    \u002F\u002F Call your code with fuzzer-provided data\n    my_function(data, size);\n    return 0;\n}\n```\n\nBuild LibAFL's libFuzzer compatibility layer:\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL\ncd LibAFL\u002Flibafl_libfuzzer_runtime\n.\u002Fbuild.sh\n```\n\nCompile and run:\n```bash\nclang++ -DNO_MAIN -g -O2 -fsanitize=fuzzer-no-link libFuzzer.a harness.cc main.cc -o fuzz\n.\u002Ffuzz corpus\u002F\n```\n\n## Installation\n\n### Prerequisites\n\n- Clang\u002FLLVM 15-18\n- Rust (via rustup)\n- Additional system dependencies\n\n### Linux\u002FmacOS\n\nInstall Clang:\n```bash\napt install clang\n```\n\nOr install a specific version via apt.llvm.org:\n```bash\nwget https:\u002F\u002Fapt.llvm.org\u002Fllvm.sh\nchmod +x llvm.sh\nsudo .\u002Fllvm.sh 15\n```\n\nConfigure environment for Rust:\n```bash\nexport RUSTFLAGS=\"-C linker=\u002Fusr\u002Fbin\u002Fclang-15\"\nexport CC=\"clang-15\"\nexport CXX=\"clang++-15\"\n```\n\nInstall Rust:\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https:\u002F\u002Fsh.rustup.rs | sh\n```\n\nInstall additional dependencies:\n```bash\napt install libssl-dev pkg-config\n```\n\nFor libFuzzer compatibility mode, install nightly Rust:\n```bash\nrustup toolchain install nightly --component llvm-tools\n```\n\n### Verification\n\nBuild LibAFL to verify installation:\n```bash\ncd LibAFL\u002Flibafl_libfuzzer_runtime\n.\u002Fbuild.sh\n# Should produce libFuzzer.a\n```\n\n## Writing a Harness\n\nLibAFL harnesses follow the same pattern as libFuzzer when using drop-in replacement mode:\n\n```c++\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    \u002F\u002F Your fuzzing target code here\n    return 0;\n}\n```\n\nWhen building custom fuzzers with LibAFL as a Rust library, harness logic is integrated directly into the fuzzer. See the \"Writing a Custom Fuzzer\" section below for the full pattern.\n\n> **See Also:** For detailed harness writing techniques, see the **harness-writing** technique skill.\n\n## Usage Modes\n\nLibAFL supports two primary usage modes:\n\n### 1. libFuzzer Drop-in Replacement\n\nUse LibAFL as a replacement for libFuzzer with existing harnesses.\n\n**Compilation:**\n```bash\nclang++ -DNO_MAIN -g -O2 -fsanitize=fuzzer-no-link libFuzzer.a harness.cc main.cc -o fuzz\n```\n\n**Running:**\n```bash\n.\u002Ffuzz corpus\u002F\n```\n\n**Recommended for long campaigns:**\n```bash\n.\u002Ffuzz -fork=1 -ignore_crashes=1 corpus\u002F\n```\n\n### 2. Custom Fuzzer as Rust Library\n\nBuild a fully customized fuzzer using LibAFL components.\n\n**Create project:**\n```bash\ncargo init --lib my_fuzzer\ncd my_fuzzer\ncargo add libafl@0.13 libafl_targets@0.13 libafl_bolts@0.13 libafl_cc@0.13 \\\n  --features \"libafl_targets@0.13\u002Flibfuzzer,libafl_targets@0.13\u002Fsancov_pcguard_hitcounts\"\n```\n\n**Configure Cargo.toml:**\n```toml\n[lib]\ncrate-type = [\"staticlib\"]\n```\n\n## Writing a Custom Fuzzer\n\n> **See Also:** For detailed harness writing techniques, patterns for handling complex inputs,\n> and advanced strategies, see the **fuzz-harness-writing** technique skill.\n\n### Fuzzer Components\n\nA LibAFL fuzzer consists of modular components:\n\n1. **Observers** - Collect execution feedback (coverage, timing)\n2. **Feedback** - Determine if inputs are interesting\n3. **Objective** - Define fuzzing goals (crashes, timeouts)\n4. **State** - Maintain corpus and metadata\n5. **Mutators** - Generate new inputs\n6. **Scheduler** - Select which inputs to mutate\n7. **Executor** - Run the target with inputs\n\n### Basic Fuzzer Structure\n\n```rust\nuse libafl::prelude::*;\nuse libafl_bolts::prelude::*;\nuse libafl_targets::{libfuzzer_test_one_input, std_edges_map_observer};\n\n#[no_mangle]\npub extern \"C\" fn libafl_main() {\n    let mut run_client = |state: Option\u003C_>, mut restarting_mgr, _core_id| {\n        \u002F\u002F 1. Setup observers\n        let edges_observer = HitcountsMapObserver::new(\n            unsafe { std_edges_map_observer(\"edges\") }\n        ).track_indices();\n        let time_observer = TimeObserver::new(\"time\");\n\n        \u002F\u002F 2. Define feedback\n        let mut feedback = feedback_or!(\n            MaxMapFeedback::new(&edges_observer),\n            TimeFeedback::new(&time_observer)\n        );\n\n        \u002F\u002F 3. Define objective\n        let mut objective = feedback_or_fast!(\n            CrashFeedback::new(),\n            TimeoutFeedback::new()\n        );\n\n        \u002F\u002F 4. Create or restore state\n        let mut state = state.unwrap_or_else(|| {\n            StdState::new(\n                StdRand::new(),\n                InMemoryCorpus::new(),\n                OnDiskCorpus::new(&output_dir).unwrap(),\n                &mut feedback,\n                &mut objective,\n            ).unwrap()\n        });\n\n        \u002F\u002F 5. Setup mutator\n        let mutator = StdScheduledMutator::new(havoc_mutations());\n        let mut stages = tuple_list!(StdMutationalStage::new(mutator));\n\n        \u002F\u002F 6. Setup scheduler\n        let scheduler = IndexesLenTimeMinimizerScheduler::new(\n            &edges_observer,\n            QueueScheduler::new()\n        );\n\n        \u002F\u002F 7. Create fuzzer\n        let mut fuzzer = StdFuzzer::new(scheduler, feedback, objective);\n\n        \u002F\u002F 8. Define harness\n        let mut harness = |input: &BytesInput| {\n            let buf = input.target_bytes().as_slice();\n            libfuzzer_test_one_input(buf);\n            ExitKind::Ok\n        };\n\n        \u002F\u002F 9. Setup executor\n        let mut executor = InProcessExecutor::with_timeout(\n            &mut harness,\n            tuple_list!(edges_observer, time_observer),\n            &mut fuzzer,\n            &mut state,\n            &mut restarting_mgr,\n            timeout,\n        )?;\n\n        \u002F\u002F 10. Load initial inputs\n        if state.must_load_initial_inputs() {\n            state.load_initial_inputs(\n                &mut fuzzer,\n                &mut executor,\n                &mut restarting_mgr,\n                &input_dir\n            )?;\n        }\n\n        \u002F\u002F 11. Start fuzzing\n        fuzzer.fuzz_loop(&mut stages, &mut executor, &mut state, &mut restarting_mgr)?;\n        Ok(())\n    };\n\n    \u002F\u002F Launch fuzzer\n    Launcher::builder()\n        .run_client(&mut run_client)\n        .cores(&cores)\n        .build()\n        .launch()\n        .unwrap();\n}\n```\n\n## Compilation\n\n### Verbose Mode\n\nManually specify all instrumentation flags:\n\n```bash\nclang++-15 -DNO_MAIN -g -O2 \\\n  -fsanitize-coverage=trace-pc-guard \\\n  -fsanitize=address \\\n  -Wl,--whole-archive target\u002Frelease\u002Flibmy_fuzzer.a -Wl,--no-whole-archive \\\n  main.cc harness.cc -o fuzz\n```\n\n### Compiler Wrapper (Recommended)\n\nCreate a LibAFL compiler wrapper to handle instrumentation automatically.\n\n**Create `src\u002Fbin\u002Flibafl_cc.rs`:**\n```rust\nuse libafl_cc::{ClangWrapper, CompilerWrapper, Configuration, ToolWrapper};\n\npub fn main() {\n    let args: Vec\u003CString> = env::args().collect();\n    let mut cc = ClangWrapper::new();\n    cc.cpp(is_cpp)\n      .parse_args(&args)\n      .link_staticlib(&dir, \"my_fuzzer\")\n      .add_args(&Configuration::GenerateCoverageMap.to_flags().unwrap())\n      .add_args(&Configuration::AddressSanitizer.to_flags().unwrap())\n      .run()\n      .unwrap();\n}\n```\n\n**Compile and use:**\n```bash\ncargo build --release\ntarget\u002Frelease\u002Flibafl_cxx -DNO_MAIN -g -O2 main.cc harness.cc -o fuzz\n```\n\n> **See Also:** For detailed sanitizer configuration, common issues, and advanced flags,\n> see the **address-sanitizer** and **undefined-behavior-sanitizer** technique skills.\n\n## Running Campaigns\n\n### Basic Run\n\n```bash\n.\u002Ffuzz --cores 0 --input corpus\u002F\n```\n\n### Multi-Core Fuzzing\n\n```bash\n.\u002Ffuzz --cores 0,8-15 --input corpus\u002F\n```\n\nThis runs 9 clients: one on core 0, and 8 on cores 8-15.\n\n### With Options\n\n```bash\n.\u002Ffuzz --cores 0-7 --input corpus\u002F --output crashes\u002F --timeout 1000\n```\n\n### Text User Interface (TUI)\n\nEnable graphical statistics view:\n\n```bash\n.\u002Ffuzz -tui=1 corpus\u002F\n```\n\n### Interpreting Output\n\n| Output | Meaning |\n|--------|---------|\n| `corpus: N` | Number of interesting test cases found |\n| `objectives: N` | Number of crashes\u002Ftimeouts found |\n| `executions: N` | Total number of target invocations |\n| `exec\u002Fsec: N` | Current execution throughput |\n| `edges: X%` | Code coverage percentage |\n| `clients: N` | Number of parallel fuzzing processes |\n\nThe fuzzer emits two main event types:\n- **UserStats** - Regular heartbeat with current statistics\n- **Testcase** - New interesting input discovered\n\n## Advanced Usage\n\n### Tips and Tricks\n\n| Tip | Why It Helps |\n|-----|--------------|\n| Use `-fork=1 -ignore_crashes=1` | Continue fuzzing after first crash |\n| Use `InMemoryOnDiskCorpus` | Persist corpus across restarts |\n| Enable TUI with `-tui=1` | Better visualization of progress |\n| Use specific LLVM version | Avoid compatibility issues |\n| Set `RUSTFLAGS` correctly | Prevent linking errors |\n\n### Crash Deduplication\n\nAvoid storing duplicate crashes from the same bug:\n\n**Add backtrace observer:**\n```rust\nlet backtrace_observer = BacktraceObserver::owned(\n    \"BacktraceObserver\",\n    libafl::observers::HarnessType::InProcess\n);\n```\n\n**Update executor:**\n```rust\nlet mut executor = InProcessExecutor::with_timeout(\n    &mut harness,\n    tuple_list!(edges_observer, time_observer, backtrace_observer),\n    &mut fuzzer,\n    &mut state,\n    &mut restarting_mgr,\n    timeout,\n)?;\n```\n\n**Update objective with hash feedback:**\n```rust\nlet mut objective = feedback_and!(\n    feedback_or_fast!(CrashFeedback::new(), TimeoutFeedback::new()),\n    NewHashFeedback::new(&backtrace_observer)\n);\n```\n\nThis ensures only crashes with unique backtraces are saved.\n\n### Dictionary Fuzzing\n\nUse dictionaries to guide fuzzing toward specific tokens:\n\n**Add tokens from file:**\n```rust\nlet mut tokens = Tokens::new();\nif let Some(tokenfile) = &tokenfile {\n    tokens.add_from_file(tokenfile)?;\n}\nstate.add_metadata(tokens);\n```\n\n**Update mutator:**\n```rust\nlet mutator = StdScheduledMutator::new(\n    havoc_mutations().merge(tokens_mutations())\n);\n```\n\n**Hard-coded tokens example (PNG):**\n```rust\nstate.add_metadata(Tokens::from([\n    vec![137, 80, 78, 71, 13, 10, 26, 10], \u002F\u002F PNG header\n    \"IHDR\".as_bytes().to_vec(),\n    \"IDAT\".as_bytes().to_vec(),\n    \"PLTE\".as_bytes().to_vec(),\n    \"IEND\".as_bytes().to_vec(),\n]));\n```\n\n> **See Also:** For detailed dictionary creation strategies and format-specific dictionaries,\n> see the **fuzzing-dictionaries** technique skill.\n\n### Auto Tokens\n\nAutomatically extract magic values and checksums from the program:\n\n**Enable in compiler wrapper:**\n```rust\ncc.add_pass(LLVMPasses::AutoTokens)\n```\n\n**Load auto tokens in fuzzer:**\n```rust\ntokens += libafl_targets::autotokens()?;\n```\n\n**Verify tokens section:**\n```bash\necho \"p (uint8_t *)__token_start\" | gdb fuzz\n```\n\n### Performance Tuning\n\n| Setting | Impact |\n|---------|--------|\n| Multi-core fuzzing | Linear speedup with cores |\n| `InMemoryCorpus` | Faster but non-persistent |\n| `InMemoryOnDiskCorpus` | Balanced speed and persistence |\n| Sanitizers | 2-5x slowdown, essential for bugs |\n| Optimization level `-O2` | Balance between speed and coverage |\n\n### Debugging Fuzzer\n\nRun fuzzer in single-process mode for easier debugging:\n\n```rust\n\u002F\u002F Replace launcher with direct call\nrun_client(None, SimpleEventManager::new(monitor), 0).unwrap();\n\n\u002F\u002F Comment out:\n\u002F\u002F Launcher::builder()\n\u002F\u002F     .run_client(&mut run_client)\n\u002F\u002F     ...\n\u002F\u002F     .launch()\n```\n\nThen debug with GDB:\n```bash\ngdb --args .\u002Ffuzz --cores 0 --input corpus\u002F\n```\n\n## Real-World Examples\n\n### Example: libpng\n\nFuzzing libpng using LibAFL:\n\n**1. Get source code:**\n```bash\ncurl -L -O https:\u002F\u002Fdownloads.sourceforge.net\u002Fproject\u002Flibpng\u002Flibpng16\u002F1.6.37\u002Flibpng-1.6.37.tar.xz\ntar xf libpng-1.6.37.tar.xz\ncd libpng-1.6.37\u002F\napt install zlib1g-dev\n```\n\n**2. Set compiler wrapper:**\n```bash\nexport FUZZER_CARGO_DIR=\"\u002Fpath\u002Fto\u002Flibafl\u002Fproject\"\nexport CC=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cc\nexport CXX=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cxx\n```\n\n**3. Build static library:**\n```bash\n.\u002Fconfigure --enable-shared=no\nmake\n```\n\n**4. Get harness:**\n```bash\ncurl -O https:\u002F\u002Fraw.githubusercontent.com\u002Fglennrp\u002Flibpng\u002Ff8e5fa92b0e37ab597616f554bee254157998227\u002Fcontrib\u002Foss-fuzz\u002Flibpng_read_fuzzer.cc\n```\n\n**5. Link fuzzer:**\n```bash\n$CXX libpng_read_fuzzer.cc .libs\u002Flibpng16.a -lz -o fuzz\n```\n\n**6. Prepare seeds:**\n```bash\nmkdir seeds\u002F\ncurl -o seeds\u002Finput.png https:\u002F\u002Fraw.githubusercontent.com\u002Fglennrp\u002Flibpng\u002Facfd50ae0ba3198ad734e5d4dec2b05341e50924\u002Fcontrib\u002Fpngsuite\u002Fiftp1n3p08.png\n```\n\n**7. Get dictionary (optional):**\n```bash\ncurl -O https:\u002F\u002Fraw.githubusercontent.com\u002Fglennrp\u002Flibpng\u002F2fff013a6935967960a5ae626fc21432807933dd\u002Fcontrib\u002Foss-fuzz\u002Fpng.dict\n```\n\n**8. Start fuzzing:**\n```bash\n.\u002Ffuzz --input seeds\u002F --cores 0 -x png.dict\n```\n\n### Example: CMake Project\n\nIntegrate LibAFL with CMake build system:\n\n**CMakeLists.txt:**\n```cmake\nproject(BuggyProgram)\ncmake_minimum_required(VERSION 3.0)\n\nadd_executable(buggy_program main.cc)\n\nadd_executable(fuzz main.cc harness.cc)\ntarget_compile_definitions(fuzz PRIVATE NO_MAIN=1)\ntarget_compile_options(fuzz PRIVATE -g -O2)\n```\n\n**Build non-instrumented binary:**\n```bash\ncmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .\ncmake --build . --target buggy_program\n```\n\n**Build fuzzer:**\n```bash\nexport FUZZER_CARGO_DIR=\"\u002Fpath\u002Fto\u002Flibafl\u002Fproject\"\ncmake -DCMAKE_C_COMPILER=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cc \\\n      -DCMAKE_CXX_COMPILER=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cxx .\ncmake --build . --target fuzz\n```\n\n**Run fuzzing:**\n```bash\n.\u002Ffuzz --input seeds\u002F --cores 0\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| No coverage increases | Instrumentation failed | Verify compiler wrapper used, check for `-fsanitize-coverage` |\n| Fuzzer won't start | Empty corpus with no interesting inputs | Provide seed inputs that trigger code paths |\n| Linker errors with `libafl_main` | Runtime not linked | Use `-Wl,--whole-archive` or `-u libafl_main` |\n| LLVM version mismatch | LibAFL requires LLVM 15-18 | Install compatible LLVM version, set environment variables |\n| Rust compilation fails | Outdated Rust or Cargo | Update Rust with `rustup update` |\n| Slow fuzzing | Sanitizers enabled | Expected 2-5x slowdown, necessary for finding bugs |\n| Environment variable interference | `CC`, `CXX`, `RUSTFLAGS` set | Unset after building LibAFL project |\n| Cannot attach debugger | Multi-process fuzzing | Run in single-process mode (see Debugging section) |\n\n## Related Skills\n\n### Technique Skills\n\n| Skill | Use Case |\n|-------|----------|\n| **fuzz-harness-writing** | Detailed guidance on writing effective harnesses |\n| **address-sanitizer** | Memory error detection during fuzzing |\n| **undefined-behavior-sanitizer** | Undefined behavior detection |\n| **coverage-analysis** | Measuring and improving code coverage |\n| **fuzzing-corpus** | Building and managing seed corpora |\n| **fuzzing-dictionaries** | Creating dictionaries for format-aware fuzzing |\n\n### Related Fuzzers\n\n| Skill | When to Consider |\n|-------|------------------|\n| **libfuzzer** | Simpler setup, don't need LibAFL's advanced features |\n| **aflpp** | Multi-core fuzzing without custom fuzzer development |\n| **cargo-fuzz** | Fuzzing Rust projects with less setup |\n\n## Resources\n\n### Official Documentation\n\n- [LibAFL Book](https:\u002F\u002Faflplus.plus\u002Flibafl-book\u002F) - Official handbook with comprehensive documentation\n- [LibAFL GitHub](https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL) - Source code and examples\n- [LibAFL API Documentation](https:\u002F\u002Fdocs.rs\u002Flibafl\u002Flatest\u002Flibafl\u002F) - Rust API reference\n\n### Examples and Tutorials\n\n- [LibAFL Examples](https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL\u002Ftree\u002Fmain\u002Ffuzzers) - Collection of example fuzzers\n- [cargo-fuzz with LibAFL](https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL\u002Ftree\u002Fmain\u002Ffuzzers\u002Ffuzz_anything\u002Fcargo_fuzz) - Using LibAFL as cargo-fuzz backend\n- [Testing Handbook LibAFL Examples](https:\u002F\u002Fgithub.com\u002Ftrailofbits\u002Ftesting-handbook\u002Ftree\u002Fmain\u002Fmaterials\u002Ffuzzing\u002Flibafl) - Complete working examples from this handbook\n","# LibAFL\n\nLibAFL is a modular fuzzing library that implements features from AFL-based fuzzers like AFL++. Unlike traditional fuzzers, LibAFL provides all functionality in a modular and customizable way as a Rust library. It can be used as a drop-in replacement for libFuzzer or as a library to build custom fuzzers from scratch.\n\n## When to Use\n\n| Fuzzer | Best For | Complexity |\n|--------|----------|------------|\n| libFuzzer | Quick setup, single-threaded | Low |\n| AFL++ | Multi-core, general purpose | Medium |\n| LibAFL | Custom fuzzers, advanced features, research | High |\n\n**Choose LibAFL when:**\n- You need custom mutation strategies or feedback mechanisms\n- Standard fuzzers don't support your target architecture\n- You want to implement novel fuzzing techniques\n- You need fine-grained control over fuzzing components\n- You're conducting fuzzing research\n\n## Quick Start\n\nLibAFL can be used as a drop-in replacement for libFuzzer with minimal setup:\n\n```c++\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    \u002F\u002F Call your code with fuzzer-provided data\n    my_function(data, size);\n    return 0;\n}\n```\n\nBuild LibAFL's libFuzzer compatibility layer:\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL\ncd LibAFL\u002Flibafl_libfuzzer_runtime\n.\u002Fbuild.sh\n```\n\nCompile and run:\n```bash\nclang++ -DNO_MAIN -g -O2 -fsanitize=fuzzer-no-link libFuzzer.a harness.cc main.cc -o fuzz\n.\u002Ffuzz corpus\u002F\n```\n\n## Installation\n\n### Prerequisites\n\n- Clang\u002FLLVM 15-18\n- Rust (via rustup)\n- Additional system dependencies\n\n### Linux\u002FmacOS\n\nInstall Clang:\n```bash\napt install clang\n```\n\nOr install a specific version via apt.llvm.org:\n```bash\nwget https:\u002F\u002Fapt.llvm.org\u002Fllvm.sh\nchmod +x llvm.sh\nsudo .\u002Fllvm.sh 15\n```\n\nConfigure environment for Rust:\n```bash\nexport RUSTFLAGS=\"-C linker=\u002Fusr\u002Fbin\u002Fclang-15\"\nexport CC=\"clang-15\"\nexport CXX=\"clang++-15\"\n```\n\nInstall Rust:\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https:\u002F\u002Fsh.rustup.rs | sh\n```\n\nInstall additional dependencies:\n```bash\napt install libssl-dev pkg-config\n```\n\nFor libFuzzer compatibility mode, install nightly Rust:\n```bash\nrustup toolchain install nightly --component llvm-tools\n```\n\n### Verification\n\nBuild LibAFL to verify installation:\n```bash\ncd LibAFL\u002Flibafl_libfuzzer_runtime\n.\u002Fbuild.sh\n# Should produce libFuzzer.a\n```\n\n## Writing a Harness\n\nLibAFL harnesses follow the same pattern as libFuzzer when using drop-in replacement mode:\n\n```c++\nextern \"C\" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {\n    \u002F\u002F Your fuzzing target code here\n    return 0;\n}\n```\n\nWhen building custom fuzzers with LibAFL as a Rust library, harness logic is integrated directly into the fuzzer. See the \"Writing a Custom Fuzzer\" section below for the full pattern.\n\n> **See Also:** For detailed harness writing techniques, see the **harness-writing** technique skill.\n\n## Usage Modes\n\nLibAFL supports two primary usage modes:\n\n### 1. libFuzzer Drop-in Replacement\n\nUse LibAFL as a replacement for libFuzzer with existing harnesses.\n\n**Compilation:**\n```bash\nclang++ -DNO_MAIN -g -O2 -fsanitize=fuzzer-no-link libFuzzer.a harness.cc main.cc -o fuzz\n```\n\n**Running:**\n```bash\n.\u002Ffuzz corpus\u002F\n```\n\n**Recommended for long campaigns:**\n```bash\n.\u002Ffuzz -fork=1 -ignore_crashes=1 corpus\u002F\n```\n\n### 2. Custom Fuzzer as Rust Library\n\nBuild a fully customized fuzzer using LibAFL components.\n\n**Create project:**\n```bash\ncargo init --lib my_fuzzer\ncd my_fuzzer\ncargo add libafl@0.13 libafl_targets@0.13 libafl_bolts@0.13 libafl_cc@0.13 \\\n  --features \"libafl_targets@0.13\u002Flibfuzzer,libafl_targets@0.13\u002Fsancov_pcguard_hitcounts\"\n```\n\n**Configure Cargo.toml:**\n```toml\n[lib]\ncrate-type = [\"staticlib\"]\n```\n\n## Writing a Custom Fuzzer\n\n> **See Also:** For detailed harness writing techniques, patterns for handling complex inputs,\n> and advanced strategies, see the **fuzz-harness-writing** technique skill.\n\n### Fuzzer Components\n\nA LibAFL fuzzer consists of modular components:\n\n1. **Observers** - Collect execution feedback (coverage, timing)\n2. **Feedback** - Determine if inputs are interesting\n3. **Objective** - Define fuzzing goals (crashes, timeouts)\n4. **State** - Maintain corpus and metadata\n5. **Mutators** - Generate new inputs\n6. **Scheduler** - Select which inputs to mutate\n7. **Executor** - Run the target with inputs\n\n### Basic Fuzzer Structure\n\n```rust\nuse libafl::prelude::*;\nuse libafl_bolts::prelude::*;\nuse libafl_targets::{libfuzzer_test_one_input, std_edges_map_observer};\n\n#[no_mangle]\npub extern \"C\" fn libafl_main() {\n    let mut run_client = |state: Option\u003C_>, mut restarting_mgr, _core_id| {\n        \u002F\u002F 1. Setup observers\n        let edges_observer = HitcountsMapObserver::new(\n            unsafe { std_edges_map_observer(\"edges\") }\n        ).track_indices();\n        let time_observer = TimeObserver::new(\"time\");\n\n        \u002F\u002F 2. Define feedback\n        let mut feedback = feedback_or!(\n            MaxMapFeedback::new(&edges_observer),\n            TimeFeedback::new(&time_observer)\n        );\n\n        \u002F\u002F 3. Define objective\n        let mut objective = feedback_or_fast!(\n            CrashFeedback::new(),\n            TimeoutFeedback::new()\n        );\n\n        \u002F\u002F 4. Create or restore state\n        let mut state = state.unwrap_or_else(|| {\n            StdState::new(\n                StdRand::new(),\n                InMemoryCorpus::new(),\n                OnDiskCorpus::new(&output_dir).unwrap(),\n                &mut feedback,\n                &mut objective,\n            ).unwrap()\n        });\n\n        \u002F\u002F 5. Setup mutator\n        let mutator = StdScheduledMutator::new(havoc_mutations());\n        let mut stages = tuple_list!(StdMutationalStage::new(mutator));\n\n        \u002F\u002F 6. Setup scheduler\n        let scheduler = IndexesLenTimeMinimizerScheduler::new(\n            &edges_observer,\n            QueueScheduler::new()\n        );\n\n        \u002F\u002F 7. Create fuzzer\n        let mut fuzzer = StdFuzzer::new(scheduler, feedback, objective);\n\n        \u002F\u002F 8. Define harness\n        let mut harness = |input: &BytesInput| {\n            let buf = input.target_bytes().as_slice();\n            libfuzzer_test_one_input(buf);\n            ExitKind::Ok\n        };\n\n        \u002F\u002F 9. Setup executor\n        let mut executor = InProcessExecutor::with_timeout(\n            &mut harness,\n            tuple_list!(edges_observer, time_observer),\n            &mut fuzzer,\n            &mut state,\n            &mut restarting_mgr,\n            timeout,\n        )?;\n\n        \u002F\u002F 10. Load initial inputs\n        if state.must_load_initial_inputs() {\n            state.load_initial_inputs(\n                &mut fuzzer,\n                &mut executor,\n                &mut restarting_mgr,\n                &input_dir\n            )?;\n        }\n\n        \u002F\u002F 11. Start fuzzing\n        fuzzer.fuzz_loop(&mut stages, &mut executor, &mut state, &mut restarting_mgr)?;\n        Ok(())\n    };\n\n    \u002F\u002F Launch fuzzer\n    Launcher::builder()\n        .run_client(&mut run_client)\n        .cores(&cores)\n        .build()\n        .launch()\n        .unwrap();\n}\n```\n\n## Compilation\n\n### Verbose Mode\n\nManually specify all instrumentation flags:\n\n```bash\nclang++-15 -DNO_MAIN -g -O2 \\\n  -fsanitize-coverage=trace-pc-guard \\\n  -fsanitize=address \\\n  -Wl,--whole-archive target\u002Frelease\u002Flibmy_fuzzer.a -Wl,--no-whole-archive \\\n  main.cc harness.cc -o fuzz\n```\n\n### Compiler Wrapper (Recommended)\n\nCreate a LibAFL compiler wrapper to handle instrumentation automatically.\n\n**Create `src\u002Fbin\u002Flibafl_cc.rs`:**\n```rust\nuse libafl_cc::{ClangWrapper, CompilerWrapper, Configuration, ToolWrapper};\n\npub fn main() {\n    let args: Vec\u003CString> = env::args().collect();\n    let mut cc = ClangWrapper::new();\n    cc.cpp(is_cpp)\n      .parse_args(&args)\n      .link_staticlib(&dir, \"my_fuzzer\")\n      .add_args(&Configuration::GenerateCoverageMap.to_flags().unwrap())\n      .add_args(&Configuration::AddressSanitizer.to_flags().unwrap())\n      .run()\n      .unwrap();\n}\n```\n\n**Compile and use:**\n```bash\ncargo build --release\ntarget\u002Frelease\u002Flibafl_cxx -DNO_MAIN -g -O2 main.cc harness.cc -o fuzz\n```\n\n> **See Also:** For detailed sanitizer configuration, common issues, and advanced flags,\n> see the **address-sanitizer** and **undefined-behavior-sanitizer** technique skills.\n\n## Running Campaigns\n\n### Basic Run\n\n```bash\n.\u002Ffuzz --cores 0 --input corpus\u002F\n```\n\n### Multi-Core Fuzzing\n\n```bash\n.\u002Ffuzz --cores 0,8-15 --input corpus\u002F\n```\n\nThis runs 9 clients: one on core 0, and 8 on cores 8-15.\n\n### With Options\n\n```bash\n.\u002Ffuzz --cores 0-7 --input corpus\u002F --output crashes\u002F --timeout 1000\n```\n\n### Text User Interface (TUI)\n\nEnable graphical statistics view:\n\n```bash\n.\u002Ffuzz -tui=1 corpus\u002F\n```\n\n### Interpreting Output\n\n| Output | Meaning |\n|--------|---------|\n| `corpus: N` | Number of interesting test cases found |\n| `objectives: N` | Number of crashes\u002Ftimeouts found |\n| `executions: N` | Total number of target invocations |\n| `exec\u002Fsec: N` | Current execution throughput |\n| `edges: X%` | Code coverage percentage |\n| `clients: N` | Number of parallel fuzzing processes |\n\nThe fuzzer emits two main event types:\n- **UserStats** - Regular heartbeat with current statistics\n- **Testcase** - New interesting input discovered\n\n## Advanced Usage\n\n### Tips and Tricks\n\n| Tip | Why It Helps |\n|-----|--------------|\n| Use `-fork=1 -ignore_crashes=1` | Continue fuzzing after first crash |\n| Use `InMemoryOnDiskCorpus` | Persist corpus across restarts |\n| Enable TUI with `-tui=1` | Better visualization of progress |\n| Use specific LLVM version | Avoid compatibility issues |\n| Set `RUSTFLAGS` correctly | Prevent linking errors |\n\n### Crash Deduplication\n\nAvoid storing duplicate crashes from the same bug:\n\n**Add backtrace observer:**\n```rust\nlet backtrace_observer = BacktraceObserver::owned(\n    \"BacktraceObserver\",\n    libafl::observers::HarnessType::InProcess\n);\n```\n\n**Update executor:**\n```rust\nlet mut executor = InProcessExecutor::with_timeout(\n    &mut harness,\n    tuple_list!(edges_observer, time_observer, backtrace_observer),\n    &mut fuzzer,\n    &mut state,\n    &mut restarting_mgr,\n    timeout,\n)?;\n```\n\n**Update objective with hash feedback:**\n```rust\nlet mut objective = feedback_and!(\n    feedback_or_fast!(CrashFeedback::new(), TimeoutFeedback::new()),\n    NewHashFeedback::new(&backtrace_observer)\n);\n```\n\nThis ensures only crashes with unique backtraces are saved.\n\n### Dictionary Fuzzing\n\nUse dictionaries to guide fuzzing toward specific tokens:\n\n**Add tokens from file:**\n```rust\nlet mut tokens = Tokens::new();\nif let Some(tokenfile) = &tokenfile {\n    tokens.add_from_file(tokenfile)?;\n}\nstate.add_metadata(tokens);\n```\n\n**Update mutator:**\n```rust\nlet mutator = StdScheduledMutator::new(\n    havoc_mutations().merge(tokens_mutations())\n);\n```\n\n**Hard-coded tokens example (PNG):**\n```rust\nstate.add_metadata(Tokens::from([\n    vec![137, 80, 78, 71, 13, 10, 26, 10], \u002F\u002F PNG header\n    \"IHDR\".as_bytes().to_vec(),\n    \"IDAT\".as_bytes().to_vec(),\n    \"PLTE\".as_bytes().to_vec(),\n    \"IEND\".as_bytes().to_vec(),\n]));\n```\n\n> **See Also:** For detailed dictionary creation strategies and format-specific dictionaries,\n> see the **fuzzing-dictionaries** technique skill.\n\n### Auto Tokens\n\nAutomatically extract magic values and checksums from the program:\n\n**Enable in compiler wrapper:**\n```rust\ncc.add_pass(LLVMPasses::AutoTokens)\n```\n\n**Load auto tokens in fuzzer:**\n```rust\ntokens += libafl_targets::autotokens()?;\n```\n\n**Verify tokens section:**\n```bash\necho \"p (uint8_t *)__token_start\" | gdb fuzz\n```\n\n### Performance Tuning\n\n| Setting | Impact |\n|---------|--------|\n| Multi-core fuzzing | Linear speedup with cores |\n| `InMemoryCorpus` | Faster but non-persistent |\n| `InMemoryOnDiskCorpus` | Balanced speed and persistence |\n| Sanitizers | 2-5x slowdown, essential for bugs |\n| Optimization level `-O2` | Balance between speed and coverage |\n\n### Debugging Fuzzer\n\nRun fuzzer in single-process mode for easier debugging:\n\n```rust\n\u002F\u002F Replace launcher with direct call\nrun_client(None, SimpleEventManager::new(monitor), 0).unwrap();\n\n\u002F\u002F Comment out:\n\u002F\u002F Launcher::builder()\n\u002F\u002F     .run_client(&mut run_client)\n\u002F\u002F     ...\n\u002F\u002F     .launch()\n```\n\nThen debug with GDB:\n```bash\ngdb --args .\u002Ffuzz --cores 0 --input corpus\u002F\n```\n\n## Real-World Examples\n\n### Example: libpng\n\nFuzzing libpng using LibAFL:\n\n**1. Get source code:**\n```bash\ncurl -L -O https:\u002F\u002Fdownloads.sourceforge.net\u002Fproject\u002Flibpng\u002Flibpng16\u002F1.6.37\u002Flibpng-1.6.37.tar.xz\ntar xf libpng-1.6.37.tar.xz\ncd libpng-1.6.37\u002F\napt install zlib1g-dev\n```\n\n**2. Set compiler wrapper:**\n```bash\nexport FUZZER_CARGO_DIR=\"\u002Fpath\u002Fto\u002Flibafl\u002Fproject\"\nexport CC=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cc\nexport CXX=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cxx\n```\n\n**3. Build static library:**\n```bash\n.\u002Fconfigure --enable-shared=no\nmake\n```\n\n**4. Get harness:**\n```bash\ncurl -O https:\u002F\u002Fraw.githubusercontent.com\u002Fglennrp\u002Flibpng\u002Ff8e5fa92b0e37ab597616f554bee254157998227\u002Fcontrib\u002Foss-fuzz\u002Flibpng_read_fuzzer.cc\n```\n\n**5. Link fuzzer:**\n```bash\n$CXX libpng_read_fuzzer.cc .libs\u002Flibpng16.a -lz -o fuzz\n```\n\n**6. Prepare seeds:**\n```bash\nmkdir seeds\u002F\ncurl -o seeds\u002Finput.png https:\u002F\u002Fraw.githubusercontent.com\u002Fglennrp\u002Flibpng\u002Facfd50ae0ba3198ad734e5d4dec2b05341e50924\u002Fcontrib\u002Fpngsuite\u002Fiftp1n3p08.png\n```\n\n**7. Get dictionary (optional):**\n```bash\ncurl -O https:\u002F\u002Fraw.githubusercontent.com\u002Fglennrp\u002Flibpng\u002F2fff013a6935967960a5ae626fc21432807933dd\u002Fcontrib\u002Foss-fuzz\u002Fpng.dict\n```\n\n**8. Start fuzzing:**\n```bash\n.\u002Ffuzz --input seeds\u002F --cores 0 -x png.dict\n```\n\n### Example: CMake Project\n\nIntegrate LibAFL with CMake build system:\n\n**CMakeLists.txt:**\n```cmake\nproject(BuggyProgram)\ncmake_minimum_required(VERSION 3.0)\n\nadd_executable(buggy_program main.cc)\n\nadd_executable(fuzz main.cc harness.cc)\ntarget_compile_definitions(fuzz PRIVATE NO_MAIN=1)\ntarget_compile_options(fuzz PRIVATE -g -O2)\n```\n\n**Build non-instrumented binary:**\n```bash\ncmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ .\ncmake --build . --target buggy_program\n```\n\n**Build fuzzer:**\n```bash\nexport FUZZER_CARGO_DIR=\"\u002Fpath\u002Fto\u002Flibafl\u002Fproject\"\ncmake -DCMAKE_C_COMPILER=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cc \\\n      -DCMAKE_CXX_COMPILER=$FUZZER_CARGO_DIR\u002Ftarget\u002Frelease\u002Flibafl_cxx .\ncmake --build . --target fuzz\n```\n\n**Run fuzzing:**\n```bash\n.\u002Ffuzz --input seeds\u002F --cores 0\n```\n\n## Troubleshooting\n\n| Problem | Cause | Solution |\n|---------|-------|----------|\n| No coverage increases | Instrumentation failed | Verify compiler wrapper used, check for `-fsanitize-coverage` |\n| Fuzzer won't start | Empty corpus with no interesting inputs | Provide seed inputs that trigger code paths |\n| Linker errors with `libafl_main` | Runtime not linked | Use `-Wl,--whole-archive` or `-u libafl_main` |\n| LLVM version mismatch | LibAFL requires LLVM 15-18 | Install compatible LLVM version, set environment variables |\n| Rust compilation fails | Outdated Rust or Cargo | Update Rust with `rustup update` |\n| Slow fuzzing | Sanitizers enabled | Expected 2-5x slowdown, necessary for finding bugs |\n| Environment variable interference | `CC`, `CXX`, `RUSTFLAGS` set | Unset after building LibAFL project |\n| Cannot attach debugger | Multi-process fuzzing | Run in single-process mode (see Debugging section) |\n\n## Related Skills\n\n### Technique Skills\n\n| Skill | Use Case |\n|-------|----------|\n| **fuzz-harness-writing** | Detailed guidance on writing effective harnesses |\n| **address-sanitizer** | Memory error detection during fuzzing |\n| **undefined-behavior-sanitizer** | Undefined behavior detection |\n| **coverage-analysis** | Measuring and improving code coverage |\n| **fuzzing-corpus** | Building and managing seed corpora |\n| **fuzzing-dictionaries** | Creating dictionaries for format-aware fuzzing |\n\n### Related Fuzzers\n\n| Skill | When to Consider |\n|-------|------------------|\n| **libfuzzer** | Simpler setup, don't need LibAFL's advanced features |\n| **aflpp** | Multi-core fuzzing without custom fuzzer development |\n| **cargo-fuzz** | Fuzzing Rust projects with less setup |\n\n## Resources\n\n### Official Documentation\n\n- [LibAFL Book](https:\u002F\u002Faflplus.plus\u002Flibafl-book\u002F) - Official handbook with comprehensive documentation\n- [LibAFL GitHub](https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL) - Source code and examples\n- [LibAFL API Documentation](https:\u002F\u002Fdocs.rs\u002Flibafl\u002Flatest\u002Flibafl\u002F) - Rust API reference\n\n### Examples and Tutorials\n\n- [LibAFL Examples](https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL\u002Ftree\u002Fmain\u002Ffuzzers) - Collection of example fuzzers\n- [cargo-fuzz with LibAFL](https:\u002F\u002Fgithub.com\u002FAFLplusplus\u002FLibAFL\u002Ftree\u002Fmain\u002Ffuzzers\u002Ffuzz_anything\u002Fcargo_fuzz) - Using LibAFL as cargo-fuzz backend\n- [Testing Handbook LibAFL Examples](https:\u002F\u002Fgithub.com\u002Ftrailofbits\u002Ftesting-handbook\u002Ftree\u002Fmain\u002Fmaterials\u002Ffuzzing\u002Flibafl) - Complete working examples from this handbook\n",{"name":5,"type":23,"description":7},"fuzzer","main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Flibafl",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add agisota\u002Fold-one --skill libafl",{"tool":39,"command":40},"bunx","bunx skills add agisota\u002Fold-one --skill libafl",{"tool":42,"command":43},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill libafl","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Flibafl\u002FSKILL.md",true,[],[48,55,62,71,78,85],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":66,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]