xiaohongshu
xiaohongshu
cidx
Code search and intelligence using CIDX. Use when searching codebases, finding implementations, tracing call graphs, analyzing dependencies, or searching git history. Preferred over grep/find for all code exploration.
Full skill instructions
Comprehensive CIDX (Code Indexer) documentation for AI coding assistants.
Before querying, verify indexes exist. Queries fail or return empty results without proper indexes.
cidx status # Semantic/FTS index status (shows indexed files, last update)
cidx scip status # SCIP indexes per project (shows SUCCESS/FAILED/PENDING)
cidx scip status -v # Detailed status with error messages
Status interpretation:
cidx scip generate)# Semantic + FTS indexes (required for cidx query)
cidx init # Initialize .code-indexer/ in project
cidx index # Index current codebase
cidx index --index-commits # Also index git history (enables temporal search)
# SCIP indexes (required for cidx scip commands)
cidx scip generate # Generate SCIP indexes for all discovered projects
cidx scip generate --project backend/ # Generate only for specific project
# Semantic/FTS re-indexing
cidx index # Re-indexes changed files (incremental)
cidx index --force # Full re-index (ignores cache)
# SCIP re-indexing
cidx scip rebuild PROJECT # Rebuild specific project
cidx scip rebuild --failed # Rebuild all failed projects
cidx scip rebuild --force PROJECT # Force rebuild even if succeeded
Semantic/FTS: All text-based source files (auto-detected)
SCIP (requires language-specific tooling):
| Language | Project Marker | Requirement |
|---|---|---|
| Java | pom.xml | Maven |
| TypeScript | package.json | npm/yarn |
| Python | pyproject.toml | Poetry |
| Kotlin | build.gradle.kts | Gradle |
| C# | *.sln, *.csproj | .NET SDK 8.0+ |
| Go | go.mod | Go SDK 1.18+ |
CIDX FIRST: Always use cidx query before grep/find/rg for semantic searches.
Decision Rule:
--fts--fts --regex (10-50x faster than grep)Key Flags: --limit N (default 10, start with 5-10 to conserve context) | --language python | --path-filter */tests/* | --exclude-path PATTERN | --exclude-language LANG | --min-score 0.8 | --accuracy high | --quiet
Context Conservation: Start with low --limit values (5-10) on initial queries. High limits consume context window rapidly when results contain large code files.
Example: cidx query "authentication" --language python --exclude-path "*/tests/*" --limit 5 --quiet
Use For: Exact names, identifiers, TODO comments, typo debugging.
Flags: --fts | --case-sensitive | --fuzzy | --edit-distance N | --snippet-lines N
Example: cidx query "authenticate_user" --fts --case-sensitive --quiet
Hybrid: --fts --semantic runs both in parallel.
Flags: --fts --regex | Incompatible with --semantic and --fuzzy
Token-Based: Matches individual tokens only.
def, login.*, test_.*def\s+\w+ (whitespace removed)Example: cidx query "def.*auth" --fts --regex --language python --quiet
Fallback: Use grep only when CIDX unavailable.
Use For: Code archaeology, commit message search, bug history, feature evolution.
Prerequisite: cidx index --index-commits (indexes git history)
Flags: --time-range-all | --time-range YYYY-MM-DD..YYYY-MM-DD | --chunk-type commit_message | --chunk-type commit_diff | --author EMAIL
Examples:
cidx query "JWT auth" --time-range-all --quietcidx query "database bug" --time-range-all --chunk-type commit_message --quietcidx query "refactor" --time-range-all --author "[email protected]" --quietIndexing Options: --all-branches | --max-commits N | --since-date YYYY-MM-DD
CIDX provides precise code intelligence via SCIP (Source Code Intelligence Protocol) indexes.
Prerequisite: cidx scip generate (generates SCIP indexes)
For complete SCIP documentation: See reference/scip-intelligence.md
Quick reference - SCIP commands:
cidx scip definition SYMBOL - Find where a symbol is definedcidx scip references SYMBOL - Find all references to a symbolcidx scip dependencies SYMBOL - Get symbols this symbol depends oncidx scip dependents SYMBOL - Get symbols that depend on this symbolcidx scip callchain FROM TO - Trace call chains between symbolscidx scip context SYMBOL - Get smart context (curated file list)cidx scip impact SYMBOL - Analyze change impactCommon options: --limit N | --exact | --project PATH | --depth N
Detailed documentation available in reference/ directory:
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience