{"files":{"SKILL.md":"---\nname: restful4up\ndescription: \"RESTful4Up API skill. Use when working with RESTful4Up for unpack, emulation-output, clean. Covers 5 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# RESTful4Up\nAPI version: 1.0.0\n\n## Auth\nNo authentication required.\n\n## Base URL\n/v1\n\n## Setup\n1. No auth setup needed\n2. Verify API access with a test request\n3. POST /unpack -- create first unpack\n\n## Endpoints\n5 endpoints across 5 groups. See references/api-spec.lap for full details.\n\n### Unpack\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /unpack | try to unpack the given file |\n\n### Emulation-output\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /emulation-output | try to get the emulation output after unpacking the file |\n\n### Clean\n| Method | Path | Description |\n|--------|------|-------------|\n| HEAD | /clean | clean up the uploaded files |\n\n### Generate-partial-yara-rules\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /generate-partial-yara-rules | generate partial YARA rules for give executable. (Rule without the condition section) |\n\n### Apply-yara-rules\n| Method | Path | Description |\n|--------|------|-------------|\n| POST | /apply-yara-rules | apply given YARA rules to the given executable. (upto 10 rules) |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Create a unpack?\" -> POST /unpack\n- \"Create a emulation-output?\" -> POST /emulation-output\n- \"Create a generate-partial-yara-rule?\" -> POST /generate-partial-yara-rules\n- \"Create a apply-yara-rule?\" -> POST /apply-yara-rules\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n- Error responses include status codes and descriptions in the spec\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api RESTful4Up\n@base /v1\n@version 1.0.0\n@endpoints 5\n@toc unpack(1), emulation-output(1), clean(1), generate-partial-yara-rules(1), apply-yara-rules(1)\n\n@group unpack\n@endpoint POST /unpack\n@desc try to unpack the given file\n@returns(200) Ok\n@errors {400: request error, 500: server error}\n\n@endgroup\n\n@group emulation-output\n@endpoint POST /emulation-output\n@desc try to get the emulation output after unpacking the file\n@returns(200) emulation output after unpacking the file\n@errors {400: request error, 500: server error}\n\n@endgroup\n\n@group clean\n@endpoint HEAD /clean\n@desc clean up the uploaded files\n@returns(204) Ok\n@errors {500: server error}\n\n@endgroup\n\n@group generate-partial-yara-rules\n@endpoint POST /generate-partial-yara-rules\n@desc generate partial YARA rules for give executable. (Rule without the condition section)\n@returns(200) Yara rules\n@errors {400: request error, 500: server error}\n\n@endgroup\n\n@group apply-yara-rules\n@endpoint POST /apply-yara-rules\n@desc apply given YARA rules to the given executable. (upto 10 rules)\n@returns(200) Yara rules\n@errors {400: request error, 500: server error}\n\n@endgroup\n\n@end\n"}}