Search the Artifact Index for relevant historical context
Searches historical artifacts for context on past work, plans, and outcomes.
/plugin marketplace add lerianstudio/ring/plugin install ring-default@ring<search-terms> [--type TYPE] [--outcome OUTCOME]Search the Artifact Index for relevant handoffs, plans, and continuity ledgers using FTS5 full-text search with BM25 ranking.
/query-artifacts <search-terms> [options]
| Argument | Required | Description |
|---|---|---|
search-terms | Yes | Keywords to search for (e.g., "authentication OAuth", "error handling") |
--mode | No | Query mode: search (default) or planning (structured precedent) |
--type | No | Filter by type: handoffs, plans, continuity, all (default: all) |
--outcome | No | Filter handoffs: SUCCEEDED, PARTIAL_PLUS, PARTIAL_MINUS, FAILED |
--limit | No | Maximum results per category (1-100, default: 5) |
/query-artifacts authentication OAuth JWT
Returns handoffs, plans, and continuity ledgers related to authentication.
/query-artifacts API design --outcome SUCCEEDED
Returns only handoffs that were marked as successful.
/query-artifacts context management --type plans
Returns only matching plan documents.
/query-artifacts testing --limit 3
Returns at most 3 results per category.
/query-artifacts api rate limiting --mode planning
Returns structured precedent for creating implementation plans:
This mode is used automatically by /write-plan to inform new plans with historical context.
Results are displayed in markdown format:
## Relevant Handoffs
### [OK] session-name/task-01
**Summary:** Implemented OAuth2 authentication...
**What worked:** Token refresh mechanism...
**What failed:** Initial PKCE implementation...
**File:** `/path/to/handoff.md`
## Relevant Plans
### OAuth2 Integration Plan
**Overview:** Implement OAuth2 with PKCE flow...
**File:** `/path/to/plan.md`
## Related Sessions
### Session: auth-implementation
**Goal:** Add authentication to the API...
**Key learnings:** Use refresh tokens...
**File:** `/path/to/ledger.md`
/query-artifacts --stats
Shows counts of indexed artifacts.
If the index is empty or out of date:
python3 default/lib/artifact-index/artifact_index.py --all
| Command/Skill | Relationship |
|---|---|
/write-plan | Query before planning to inform decisions |
/create-handoff | Creates handoffs that get indexed |
artifact-query | The underlying skill |
writing-plans | Uses query results for RAG-enhanced planning |
The artifact index hasn't been initialized. Run:
python3 default/lib/artifact-index/artifact_index.py --all
ls docs/handoffs/ docs/plans/python3 default/lib/artifact-index/artifact_index.py --allQueries should complete in < 100ms. If slow:
ls -la .ring/cache/artifact-index/python3 default/lib/artifact-index/artifact_index.py --allThis command MUST load the skill for complete workflow execution.
Use Skill tool: artifact-query
The skill contains the complete workflow with: