{"owner":"swoole","repo":"swoole-src","hasSkills":true,"totalSkillsCount":2,"totalTokensCount":832,"categories":["anthropic-skill","project-spec"],"hasMcp":false,"mcpConfig":null,"found":["tools/composer.json","docs/API.md"],"skills":{"tools/composer.json":"{\n    \"require\": {\n        \"swoole/make-library\": \"v1.0.0\"\n    }\n}\n","docs/API.md":"## Basic C API\nThese functions enable you to obtain the spool version and insert some hooks into the spool,\nsuch as `SW_GLOBAL_HOOK_BEFORE_SERVER_START`. The set function is called when the server starts.\n\nThe header file is `swoole_api.h`.\nThe symbol of this file will export the function name in `C` format, not `C++`.\nSimilarly, functions in the `Coroutine API` are also exported as `C` functions.\n\n- `swoole_version()` Get the current version of Swoole\n- `swoole_add_hook()` Add a hook function to the specified hook point\n\n## Coroutine C API\n\nThese functions are similar to the C function in `unistd.h`, for example, read corresponds to\n`swoole_coroutine_read()` in the coroutine environment.\n\nIn addition to the `POSIX API` like functions, some additional functions can be provided.\nFor example, the `swoole_coroutine_get_current_id()` can obtain the ID of the coroutine,\nwhich is equivalent to the `getpid()` of the process.\n\nThe function similar to creating a process or thread is `swoole_coroutine_create()`,\nwhich can be used to create a coroutine.\n\nThe header file is `swoole_coroutine_api.h`.\n\n## C MACRO HOOK\nUse `C/C++` macros to automatically replace read/write and other synchronously blocked unistd C functions as non blocking\ncoroutine functions (starts with `swoole_coroutine_`).\nThis method enables C++ network client code to be used in the swoole coroutine environment.\n\nIncluding network and file system:\n\n- `swoole_file_hook.h` Replace file system related functions, such as `open()`, `mkdir()`, etc\n- `swoole_socket_hook.h` Replace network related functions, such as `socket()`, `recv()`, `send()`, etc\n\n## C++ API\n\nIn addition to the above header files, others are only used in `C++` code.\n\n### Independent header file\n\nThese header files have no dependencies. They can only contain C standard library header files, C++ header files,\nand platform related or basic library header files.\n\n- `swoole_config.h`: Buffer size, string, constant, etc\n- `swoole_version.h`: Swoole version information\n- `swoole_atomic.h`: Atomic operations\n- `swoole_asm_context.h`: Assembly context switching\n- `swoole_util.h`: Common utility functions\n- `swoole_log.h`: Log related functions\n- `swoole_memory.h`: Memory pool related functions\n- `swoole_base64.h`: Base64 encoding and decoding\n- `swoole_error.h`: Error code related functions\n- and more ...\n\n### Core header file\n- `swoole.h`: Core class and function declarations\n- `swoole_string.h`: String class and function declarations\n- `swoole_coroutine.h`: Coroutine class and function declarations\n- `swoole_async.h`: Asynchronous IO class and function declarations\n- `swoole_process_pool.h`: Process pool class and function declarations\n- `swoole_signal.h`: Signal handling class and function declarations\n- `swoole_timer.h`: Timer class and function declarations\n- `swoole_reactor.h`: Reactor class and function declarations\n- and more ...\n\n### Facade header file\nThese header files depend on the core header files and provide a higher level of abstraction.\n\n- `swoole_server.h`: Server side class and function declarations\n- `swoole_client.h`: Client side class and function declarations\n- `swoole_coroutine_socket.h`: Coroutine socket class and function declarations\n- `swoole_coroutine_system.h`: Coroutine system API class and function declarations\n- `swoole_coroutine_channel.h`: Coroutine channel class and function declarations\n"},"files":{"tools/composer.json":"{\n    \"require\": {\n        \"swoole/make-library\": \"v1.0.0\"\n    }\n}\n","docs/API.md":"## Basic C API\nThese functions enable you to obtain the spool version and insert some hooks into the spool,\nsuch as `SW_GLOBAL_HOOK_BEFORE_SERVER_START`. The set function is called when the server starts.\n\nThe header file is `swoole_api.h`.\nThe symbol of this file will export the function name in `C` format, not `C++`.\nSimilarly, functions in the `Coroutine API` are also exported as `C` functions.\n\n- `swoole_version()` Get the current version of Swoole\n- `swoole_add_hook()` Add a hook function to the specified hook point\n\n## Coroutine C API\n\nThese functions are similar to the C function in `unistd.h`, for example, read corresponds to\n`swoole_coroutine_read()` in the coroutine environment.\n\nIn addition to the `POSIX API` like functions, some additional functions can be provided.\nFor example, the `swoole_coroutine_get_current_id()` can obtain the ID of the coroutine,\nwhich is equivalent to the `getpid()` of the process.\n\nThe function similar to creating a process or thread is `swoole_coroutine_create()`,\nwhich can be used to create a coroutine.\n\nThe header file is `swoole_coroutine_api.h`.\n\n## C MACRO HOOK\nUse `C/C++` macros to automatically replace read/write and other synchronously blocked unistd C functions as non blocking\ncoroutine functions (starts with `swoole_coroutine_`).\nThis method enables C++ network client code to be used in the swoole coroutine environment.\n\nIncluding network and file system:\n\n- `swoole_file_hook.h` Replace file system related functions, such as `open()`, `mkdir()`, etc\n- `swoole_socket_hook.h` Replace network related functions, such as `socket()`, `recv()`, `send()`, etc\n\n## C++ API\n\nIn addition to the above header files, others are only used in `C++` code.\n\n### Independent header file\n\nThese header files have no dependencies. They can only contain C standard library header files, C++ header files,\nand platform related or basic library header files.\n\n- `swoole_config.h`: Buffer size, string, constant, etc\n- `swoole_version.h`: Swoole version information\n- `swoole_atomic.h`: Atomic operations\n- `swoole_asm_context.h`: Assembly context switching\n- `swoole_util.h`: Common utility functions\n- `swoole_log.h`: Log related functions\n- `swoole_memory.h`: Memory pool related functions\n- `swoole_base64.h`: Base64 encoding and decoding\n- `swoole_error.h`: Error code related functions\n- and more ...\n\n### Core header file\n- `swoole.h`: Core class and function declarations\n- `swoole_string.h`: String class and function declarations\n- `swoole_coroutine.h`: Coroutine class and function declarations\n- `swoole_async.h`: Asynchronous IO class and function declarations\n- `swoole_process_pool.h`: Process pool class and function declarations\n- `swoole_signal.h`: Signal handling class and function declarations\n- `swoole_timer.h`: Timer class and function declarations\n- `swoole_reactor.h`: Reactor class and function declarations\n- and more ...\n\n### Facade header file\nThese header files depend on the core header files and provide a higher level of abstraction.\n\n- `swoole_server.h`: Server side class and function declarations\n- `swoole_client.h`: Client side class and function declarations\n- `swoole_coroutine_socket.h`: Coroutine socket class and function declarations\n- `swoole_coroutine_system.h`: Coroutine system API class and function declarations\n- `swoole_coroutine_channel.h`: Coroutine channel class and function declarations\n"},"items":[{"name":"API.md","path":"docs/API.md","rawUrl":"https://raw.githubusercontent.com/swoole/swoole-src/HEAD/docs/API.md","title":"docs - API Interface Contract & Specifications","category":"project-spec","format":"markdown","content":"## Basic C API\nThese functions enable you to obtain the spool version and insert some hooks into the spool,\nsuch as `SW_GLOBAL_HOOK_BEFORE_SERVER_START`. The set function is called when the server starts.\n\nThe header file is `swoole_api.h`.\nThe symbol of this file will export the function name in `C` format, not `C++`.\nSimilarly, functions in the `Coroutine API` are also exported as `C` functions.\n\n- `swoole_version()` Get the current version of Swoole\n- `swoole_add_hook()` Add a hook function to the specified hook point\n\n## Coroutine C API\n\nThese functions are similar to the C function in `unistd.h`, for example, read corresponds to\n`swoole_coroutine_read()` in the coroutine environment.\n\nIn addition to the `POSIX API` like functions, some additional functions can be provided.\nFor example, the `swoole_coroutine_get_current_id()` can obtain the ID of the coroutine,\nwhich is equivalent to the `getpid()` of the process.\n\nThe function similar to creating a process or thread is `swoole_coroutine_create()`,\nwhich can be used to create a coroutine.\n\nThe header file is `swoole_coroutine_api.h`.\n\n## C MACRO HOOK\nUse `C/C++` macros to automatically replace read/write and other synchronously blocked unistd C functions as non blocking\ncoroutine functions (starts with `swoole_coroutine_`).\nThis method enables C++ network client code to be used in the swoole coroutine environment.\n\nIncluding network and file system:\n\n- `swoole_file_hook.h` Replace file system related functions, such as `open()`, `mkdir()`, etc\n- `swoole_socket_hook.h` Replace network related functions, such as `socket()`, `recv()`, `send()`, etc\n\n## C++ API\n\nIn addition to the above header files, others are only used in `C++` code.\n\n### Independent header file\n\nThese header files have no dependencies. They can only contain C standard library header files, C++ header files,\nand platform related or basic library header files.\n\n- `swoole_config.h`: Buffer size, string, constant, etc\n- `swoole_version.h`: Swoole version information\n- `swoole_atomic.h`: Atomic operations\n- `swoole_asm_context.h`: Assembly context switching\n- `swoole_util.h`: Common utility functions\n- `swoole_log.h`: Log related functions\n- `swoole_memory.h`: Memory pool related functions\n- `swoole_base64.h`: Base64 encoding and decoding\n- `swoole_error.h`: Error code related functions\n- and more ...\n\n### Core header file\n- `swoole.h`: Core class and function declarations\n- `swoole_string.h`: String class and function declarations\n- `swoole_coroutine.h`: Coroutine class and function declarations\n- `swoole_async.h`: Asynchronous IO class and function declarations\n- `swoole_process_pool.h`: Process pool class and function declarations\n- `swoole_signal.h`: Signal handling class and function declarations\n- `swoole_timer.h`: Timer class and function declarations\n- `swoole_reactor.h`: Reactor class and function declarations\n- and more ...\n\n### Facade header file\nThese header files depend on the core header files and provide a higher level of abstraction.\n\n- `swoole_server.h`: Server side class and function declarations\n- `swoole_client.h`: Client side class and function declarations\n- `swoole_coroutine_socket.h`: Coroutine socket class and function declarations\n- `swoole_coroutine_system.h`: Coroutine system API class and function declarations\n- `swoole_coroutine_channel.h`: Coroutine channel class and function declarations\n","isInternal":false,"tokens":806,"sizeBytes":3396},{"name":"composer.json","path":"tools/composer.json","rawUrl":"https://raw.githubusercontent.com/swoole/swoole-src/HEAD/tools/composer.json","title":"Tools Skill","category":"anthropic-skill","format":"json","content":"{\n    \"require\": {\n        \"swoole/make-library\": \"v1.0.0\"\n    }\n}\n","frontmatter":{"require":{"swoole/make-library":"v1.0.0"}},"isInternal":false,"tokens":26,"sizeBytes":67}],"systemPromptSnippet":"<yakaai_skills repo=\"swoole/swoole-src\">\n<!-- File: docs/API.md (Tokens: ~806 | Category: project-spec) -->\n## Basic C API\nThese functions enable you to obtain the spool version and insert some hooks into the spool,\nsuch as `SW_GLOBAL_HOOK_BEFORE_SERVER_START`. The set function is called when the server starts.\n\nThe header file is `swoole_api.h`.\nThe symbol of this file will export the function name in `C` format, not `C++`.\nSimilarly, functions in the `Coroutine API` are also exported as `C` functions.\n\n- `swoole_version()` Get the current version of Swoole\n- `swoole_add_hook()` Add a hook function to the specified hook point\n\n## Coroutine C API\n\nThese functions are similar to the C function in `unistd.h`, for example, read corresponds to\n`swoole_coroutine_read()` in the coroutine environment.\n\nIn addition to the `POSIX API` like functions, some additional functions can be provided.\nFor example, the `swoole_coroutine_get_current_id()` can obtain the ID of the coroutine,\nwhich is equivalent to the `getpid()` of the process.\n\nThe function similar to creating a process or thread is `swoole_coroutine_create()`,\nwhich can be used to create a coroutine.\n\nThe header file is `swoole_coroutine_api.h`.\n\n## C MACRO HOOK\nUse `C/C++` macros to automatically replace read/write and other synchronously blocked unistd C functions as non blocking\ncoroutine functions (starts with `swoole_coroutine_`).\nThis method enables C++ network client code to be used in the swoole coroutine environment.\n\nIncluding network and file system:\n\n- `swoole_file_hook.h` Replace file system related functions, such as `open()`, `mkdir()`, etc\n- `swoole_socket_hook.h` Replace network related functions, such as `socket()`, `recv()`, `send()`, etc\n\n## C++ API\n\nIn addition to the above header files, others are only used in `C++` code.\n\n### Independent header file\n\nThese header files have no dependencies. They can only contain C standard library header files, C++ header files,\nand platform related or basic library header files.\n\n- `swoole_config.h`: Buffer size, string, constant, etc\n- `swoole_version.h`: Swoole version information\n- `swoole_atomic.h`: Atomic operations\n- `swoole_asm_context.h`: Assembly context switching\n- `swoole_util.h`: Common utility functions\n- `swoole_log.h`: Log related functions\n- `swoole_memory.h`: Memory pool related functions\n- `swoole_base64.h`: Base64 encoding and decoding\n- `swoole_error.h`: Error code related functions\n- and more ...\n\n### Core header file\n- `swoole.h`: Core class and function declarations\n- `swoole_string.h`: String class and function declarations\n- `swoole_coroutine.h`: Coroutine class and function declarations\n- `swoole_async.h`: Asynchronous IO class and function declarations\n- `swoole_process_pool.h`: Process pool class and function declarations\n- `swoole_signal.h`: Signal handling class and function declarations\n- `swoole_timer.h`: Timer class and function declarations\n- `swoole_reactor.h`: Reactor class and function declarations\n- and more ...\n\n### Facade header file\nThese header files depend on the core header files and provide a higher level of abstraction.\n\n- `swoole_server.h`: Server side class and function declarations\n- `swoole_client.h`: Client side class and function declarations\n- `swoole_coroutine_socket.h`: Coroutine socket class and function declarations\n- `swoole_coroutine_system.h`: Coroutine system API class and function declarations\n- `swoole_coroutine_channel.h`: Coroutine channel class and function declarations\n\n<!-- File: tools/composer.json (Tokens: ~26 | Category: anthropic-skill) -->\n{\n    \"require\": {\n        \"swoole/make-library\": \"v1.0.0\"\n    }\n}\n</yakaai_skills>"}