dianel555/dskills/ace-tool
Claude Code and agent skill by dianel555/dskills
- community
Checking that the SKILL.md file is still in the repository.
Semantic codebase search, code indexing, and prompt enhancement via standalone CLI. Use when: (1) Semantic code search with natural language queries, (2) Code indexing for remote codebase retrieval, (3) Prompt enhancement with codebase context, (4) Before grep/find/glob operations for better accuracy, (5) Complex requirements clarification, (6) Large codebase navigation. Triggers: "search context", "enhance prompt", "find code that", "index project", "clarify requirements". IMPORTANT: Always use ace-tool BEFORE grep/find/glob for semantic-level code location.
Install
npx vskill@latest install dianel555/dskills/ace-toolSKILL.md
ACE-Tool - Semantic Code Search & Prompt Enhancement
High-performance semantic search, code indexing, and AI-powered prompt enhancement. Standalone CLI (no MCP dependency).
Execution Methods
Tool Routing Policy
Prefer ACE-Tool Over Built-in Tools
| Task | Avoid | Use ACE-Tool CLI | |
|---|---|---|---|
| Find function by purpose | grep "def func" | search_context -q "function that..." | |
| Locate feature code | find . -name "*.py" | search_context -q "feature description" | |
| Clarify requirements | Manual analysis | enhance_prompt -p "requirement" | |
| Understand code flow | Multiple grep/read | search_context -q "flow description" | |
| Index codebase | N/A | index -p <project_root> |
When to Use Built-in Tools
- Exact string matching (known identifiers)
- File path patterns (known naming conventions)
- Simple text replacement
Command Reference
index
Index project files for remote codebase retrieval. Scans, hashes, and uploads whole files (up to 128 KiB) with their original paths to the ACE batch-upload API; chunking is left to the service. Uses incremental indexing with gzip JSON cache at .ace-tool/index.json.gz; legacy chunk-based caches are rebuilt once. Respects both .gitignore and .aceignore patterns. The supplied project root is the index and upload boundary; each root keeps its own cache, and indexing a parent does not delete child caches. Symbolic links, junctions and other reparse points below the root are never followed, so only real files inside the root are read and uploaded; an unreadable or out-of-boundary path is skipped instead of falling back to a plain path read. The backend must confirm upload hashes and support the OCE-compatible /agents/blob-status endpoint; indexing, search, and scoped enhancement wait for readiness and report a timeout or unsupported status explicitly. Unknown blobs trigger one rebuild and re-upload.
search_context
Search codebase using natural language descriptions. Routes to remote API (POST /agents/codebase-retrieval) when configured, with local keyword fallback for remote errors or empty results. Upload and readiness failures remain explicit errors. Local fallback supplies matching file paths, not semantic code snippets.
enhance_prompt
Enhance prompts with codebase context and conversation history. All endpoints inject cloud retrieval context when --project-root is provided. Third-party endpoints additionally support search context injection via PROMPT_ENHANCER_INCLUDE_SEARCH_CONTEXT.
get_config
Show current configuration status including endpoint resolution, env readiness, authentication source, and search context injection state.
Output fields:
base_url- Currently configured API base URLendpoint- Active enhancer endpoint (new/old/claude/openai/gemini/codex)endpoint_effective- Resolved endpoint after env variable resolutionendpoint_env_ready- Whether required endpoint configuration is completetoken_configured- Whether authentication token is setthird_party_configured- Whether third-party endpoint config is completeauth_source- Authentication source:constructor|session.json|AUGMENT_SESSION_AUTH|ACE_API_TOKEN|nonesearch_context_injection- Whether search context injection is enabled
Interactive Enhancement
Default mode opens web UI with actions:
| Button | Action | |
|---|---|---|
| Regenerate | Discard current, generate new enhancement from original prompt | |
| Refine | Iteratively improve current version, preserving your edits | |
| Use Original | Return the original prompt without enhancement | |
| Send Enhanced | Confirm and use the current enhanced prompt | |
| Cancel | Abort the enhancement process |
Keyboard Shortcuts: Ctrl+Enter Send | Esc Cancel
Endpoint Architecture
Supported Endpoints
| Endpoint | API Path | Default Model | Auth Header | Status | |
|---|---|---|---|---|---|
new | /prompt-enhancer | claude-sonnet-4-5 | Bearer ACE_API_TOKEN | ⚠️ Currently unavailable | |
old | /chat-stream (SSE) | claude-sonnet-4-5 | Bearer ACE_API_TOKEN | ⚠️ Currently unavailable | |
claude | /v1/messages | sonnet-4-6-20250929 | x-api-key | ✅ Available | |
openai | /v1/chat/completions | gpt-5.4 | Bearer PROMPT_ENHANCER_TOKEN | ✅ Available | |
gemini | /v1beta/models/{model}:generateContent | gemini-3-flash-preview | x-goog-api-key | ✅ Available | |
codex | /v1/responses | gpt-5.4 | Bearer PROMPT_ENHANCER_TOKEN | ✅ Available |
Note: The official Augment endpoints (newandold) are currently experiencing service issues. Use third-party endpoints for prompt enhancement.
Endpoint Resolution Order
PROMPT_ENHANCER_ENDPOINT > ACE_ENHANCER_ENDPOINT (legacy) > --endpoint CLI flag > new (default)
Third-Party Endpoints
claude, openai, gemini, codex are third-party endpoints. They require:
PROMPT_ENHANCER_BASE_URL— API base URLPROMPT_ENHANCER_TOKEN— API key/tokenPROMPT_ENHANCER_MODEL— (optional) override default model
Missing configuration raises ValueError immediately (hard error, no silent fallback).
URL Construction
All HTTP calls use build_api_url(base_url, path) which handles /v1/, /v1beta/ version prefix deduplication. No hardcoded f-string URL construction.
Environment Variables
Authentication (Priority Order)
ACE-Tool supports multiple authentication methods with the following priority:
- Constructor parameters (highest priority, programmatic use only)
- `~/.augment/session.json` (recommended, created by
auggie login) - `AUGMENT_SESSION_AUTH` (CI/CD and headless environments)
- Legacy `ACE_API_*` (deprecated, backward compatibility only)
| Variable | Description | |
|---|---|---|
AUGMENT_SESSION_AUTH | JSON string with accessToken and tenantURL (new format, recommended for CI/CD) | |
ACE_API_URL | ⚠️ Deprecated - ACE API base URL (use session.json or AUGMENT_SESSION_AUTH instead) | |
ACE_API_TOKEN | ⚠️ Deprecated - ACE API authentication token (use session.json or AUGMENT_SESSION_AUTH instead) |
Recommended: Use `~/.augment/session.json`
Create this file via auggie login, or manually with this format:
For CI/CD: Use `AUGMENT_SESSION_AUTH` environment variable
Migration Guide: Legacy to New Format
If currently using ACE_API_URL and ACE_API_TOKEN:
- Option A (Recommended): Use
auggie loginto create~/.augment/session.json - Option B: Convert to
AUGMENT_SESSION_AUTH:
``bash export AUGMENT_SESSION_AUTH='{"accessToken":"YOUR_ACE_API_TOKEN","tenantURL":"YOUR_ACE_API_URL"}' ``
- Remove old variables (optional, they'll be ignored if new format exists)
Legacy variables continue to work for backward compatibility but are not recommended for new setups.
Endpoint Configuration
| Variable | Description | |
|---|---|---|
PROMPT_ENHANCER_ENDPOINT | Endpoint override: new, old, claude, openai, gemini, codex | |
ACE_ENHANCER_ENDPOINT | Legacy endpoint override (fallback if PROMPT_ENHANCER_ENDPOINT not set) | |
PROMPT_ENHANCER_BASE_URL | Third-party API base URL (for claude/openai/gemini/codex endpoints) | |
PROMPT_ENHANCER_TOKEN | Third-party API token | |
PROMPT_ENHANCER_MODEL | Override default model for third-party endpoints | |
PROMPT_ENHANCER_INCLUDE_SEARCH_CONTEXT | Enable search context injection for third-party endpoints (1, true, yes, on) | |
ACE_UPLOAD_READ_TIMEOUT_SECONDS | Upload response read inactivity timeout in seconds (default: 300) | |
ACE_UPLOAD_BATCH_COUNT | Maximum blobs per batch (default/maximum: 30) | |
ACE_UPLOAD_BATCH_BYTES | Maximum UTF-8 content bytes per batch (default/maximum: 1048576) |
Settings are positive and finite. The byte budget counts content only, excluding JSON/HTTP overhead, and each blob must fit within it. Read/write and other uncertain transport errors, or HTTP 408, 429, and 5xx responses, trigger /agents/blob-status polling before retransmission. Previously uncertain blobs receive a 5-second grace period when status is unknown; pending blobs are polled up to 180 seconds. These are not strict wall-clock limits because HTTPX read timeouts measure inactivity. When status remains uncertain or unavailable, unresolved blobs are retried automatically up to three potentially sent attempts per blob across process restarts. The server may still be processing an earlier request, so this does not guarantee exactly-once server work. Exhausted attempts, authentication failures, and unsafe recovery state produce explicit errors.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 97 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ace-tool/SKILL.md
Popularity
- Repository stars
- 64
- Repository forks
- 6
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dianel555/dskills/ace-tool)