GraSP:可执行技能图架构
Giving LLM agents more skills does not always improve performance: focused sets of two or three skills can outperform comprehensive documentation. We present GraSP, an executable skill graph architecture that inserts a compilation layer between skill retrieval and execution. GraSP compiles retrieved procedural skills into a task-specific directed acyclic graph with typed edges that encode precondition-effect, data, and ordering dependencies. It verifies execution at each node and uses five typed repair operators to confine recovery to the affected subgraph, reducing replanning complexity from O(N) to O(d^h). The compiler uses reusable skill interfaces and requires no per-task graph or metadata annotations. Across ALFWorld, ScienceWorld, WebShop, and InterCode, GraSP achieves the highest mean score in all 48 model-split combinations across eight LLM backbones, improving on the strongest baseline by up to 19 points and reducing environment steps by up to 41%. For the primary backbone, a paired hierarchical bootstrap finds significant gains over ReAct with Skills on five of six splits after Holm correction. On ALFWorld seen tasks, GraSP uses 0.95 times the API cost of ReAct and 42.5% fewer input tokens than flat skill execution, including retrieval, compilation, verification, and repair. GraSP is deployed in a production agent system serving more than 10,000 daily active users and improves task success by up to 14.9 percentage points across 387 sampled live cases.