ax-prompt-builder

Assemble and order prompt modules with token budgeting and tool filtering.

5|2|Updated Feb 8, 2026
One-click install
npx skills add https://github.com/project-ax/ax-legacy --skill ax-prompt-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-prompt-builder
Source: https://github.com/project-ax/ax-legacy/tree/main/.claude/skills/ax-prompt-builder
Command: npx skills add https://github.com/project-ax/ax-legacy --skill ax-prompt-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit allows for modifying and extending the AI agent's prompt system, enabling users to add modules, adjust priority ordering, token budgeting, and manage bootstrap mode.

Core Features & Use Cases

  • Prompt Module Assembly: Assemble the agent's system prompt from ordered, composable modules.
  • Conditional Inclusion: Conditionally include or drop modules based on context and token budget.
  • Bootstrap Mode Handling: Manage the first-run identity discovery and graceful degradation.
  • ToolFilterContext Production: Generate a ToolFilterContext for context-aware tool filtering.
  • Delegation and Runner Selection: Provide runner selection guidance for task delegation to sub-agents.

Quick Start

Use the ax-prompt-builder skill to modify the agent prompt for a specific task, such as adding a new module or adjusting the priority of existing ones.

Frequently Asked Questions about ax-prompt-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I assemble an AI agent's system prompt from composable modules?

Assemble the AI agent's system prompt by ordering composable modules to construct the final prompt structure. This approach allows you to conditionally include or drop modules based on the current context and available token budget.

What is the best way to handle token budgeting for an AI agent's prompt system?

Handle token budgeting for a prompt system by conditionally including or dropping modules based on the available context. This ensures the assembled system prompt stays within the required token limits while preserving core agent functionality.

How does context-aware tool filtering work in an AI agent prompt system?

Context-aware tool filtering works by generating a ToolFilterContext during prompt assembly. This context evaluates the current task requirements to dynamically select which tools the AI agent can access.

Can I manage bootstrap mode for first-run identity discovery in a prompt system?

Manage bootstrap mode in a prompt system to handle first-run identity discovery and graceful degradation. This allows the AI agent to initialize its core behaviors safely when encountering an unknown environment.

Do I need to configure runner selection for task delegation to sub-agents?

Configure runner selection guidance to enable task delegation to sub-agents within the prompt system. This provides the AI agent with the necessary instructions to route and execute delegated tasks effectively.

Why does my AI agent drop certain prompt modules during execution?

An AI agent drops prompt modules during execution due to conditional inclusion rules triggered by token budgeting constraints. Modules are dynamically omitted to maintain operational stability and fit the context window.