@astro-tpl/ac
v1.0.5
Published
AI Context CLI - A CLI tool for managing AI programming context and prompts
Readme
AC - AI Context CLI
AI Context CLI - A unified command-line tool for managing AI programming contexts and prompts
Installation
npm install -g @astro-tpl/acor
npx @astro-tpl/ac --helpUsage
Search Templates
# Search all templates
ac search
# Search by keyword
ac search react
# Search by type
ac search --type context
# Search by labels
ac search --label frontendApply Templates
# Apply context template
ac apply --context template-id
# Apply prompt template
ac apply --prompt template-idManage Repositories
# Add repository
ac repo add <alias> <url>
# List repositories
ac repo list
# Update repository
ac repo update <alias>Update CLI
ac updateFeatures
- 🔍 Intelligent Search - Support keyword, type, and label search
- 📋 Template Application - Quickly apply context and prompt templates
- 🗂️ Repository Management - Manage multiple template repositories
- 🌐 Internationalization - Support for Chinese and English interfaces
- ⚡ High Performance - Fast search based on fuzzysort
- 🎯 Smart Matching - Support Chinese pinyin search
Configuration
Project Configuration (.ac.yaml)
repositories:
templates:
url: https://github.com/your-org/templates.git
branch: mainGlobal Configuration (~/.ac/config.yaml)
language: zh
repositories:
global-templates:
url: https://github.com/global/templates.gitDevelopment
# Install dependencies
pnpm install
# Build
npm run build
# Test
npm test
# Package
npm run pack