用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/diegosouzapw/awesome-omni-skill --skill write-ida-script命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | write-ida-script |
| description | Write an IDAPython script using verified API workflows from the IDA SDK MCP server |
| user_invocable | true |
| auto_invoke | ["write an IDA script","write an IDAPython script","create an IDA plugin","create an IDA script","IDA script that","IDAPython script"] |
Write an IDAPython script by first consulting the ida-sdk-workflow MCP tools to retrieve verified API call sequences, then composing the script from those patterns.
Follow these steps in order:
Break the user's request into discrete sub-tasks. For example, "list all functions and their cross-references" becomes:
For each sub-task, call get_workflows with a natural-language description:
get_workflows("enumerate all functions in the database")
get_workflows("get cross references to a function")
For any API function in the workflow results that you're not confident about, call get_api_doc:
get_api_doc("xrefblk_t")
get_api_doc("get_func_name")
If a workflow seems incomplete (e.g., you have iteration but no formatting), call list_related_apis:
list_related_apis("get_func")
Compose the script following these conventions:
import ida_funcs, not from ida_funcs import *main() wrapper: All logic inside def main(): with if __name__ == "__main__": main()get_func(), decompile(), etc. can return Noneprint() for output: Use print() in IDAPython, not ida_kernwin.msg()ida_funcs.get_func(ea), not bare get_func(ea)Canonical style example:
"""
Short summary of what the script does.
Longer description of the workflow: what it takes as input,
what it produces, and any prerequisites.
Usage: Run in IDA Pro via File -> Script file...
"""
import ida_funcs
import ida_hexrays
import ida_kernwin
def main():
ea = ida_kernwin.ask_addr(0, "Enter function address:")
if ea is None:
return
pfn = ida_funcs.get_func(ea)
if pfn is None:
print("No function found at 0x%X" % ea)
return
print("Function: 0x%X - 0x%X" % (pfn.start_ea, pfn.end_ea))
cf = ida_hexrays.decompile(pfn.start_ea)
if cf is None:
print("Decompilation failed at 0x%X" % pfn.start_ea)
return
print(str(cf))
if __name__ == "__main__":
main()
After writing the script, briefly explain:
User: "write an IDAPython script that lists all functions with their sizes"
get_workflows("enumerate all functions") → reveals idautils.Functions() + ida_funcs.get_func()get_api_doc("get_func") → confirms func_t has .start_ea and .end_eaidautils.Functions() iterator, ida_funcs.get_func() for each, size = end_ea - start_eaToken-efficient tracking for AI orchestration. CLI-first for status updates (~50 tokens), agent fallback for complex ops (~1KB). Use when: updating task status, querying blockers, creating progress files, validating phases.
AshAi extension guidelines for integrating AI capabilities with Ash Framework. Use when implementing vectorization/embeddings, exposing Ash actions as LLM tools, creating prompt-backed actions, or setting up MCP servers. Covers semantic search, LangChain integration, and structured outputs.
This skill should be used when solving hard questions, complex architectural problems, or debugging issues that benefit from GPT-5 Pro or GPT-5.1 thinking models with large file context. Use when standard Claude analysis needs deeper reasoning or extended context windows.
基于 SOC 职业分类