Skill站外收录 @skilllib/skill-2014279370360172547
session-search
根据关键词在历史代码会话中检索技术决策、实现模式或设计讨论,通过结构化查询定位相关开发记录,提取关键信息并生成包含核心发现与会话引用的摘要,适用于无子代理支持的命令行环境下的知识复用场景。
文档处理 AI 技能
Skills.MD
> **If you are Claude Code:** Do NOT use this skill directly. Use the
> `session-searcher` subagent via the Task tool instead - it handles this more
> efficiently without polluting your context.
# session-search
Search and find previous code agent sessions (Claude-Code or Codex-CLI) for specific
work, decisions, or code patterns.
## Workflow
1. **Understand the query**: Identify what the user is looking for (code patterns,
decisions, specific work, design direction)
2. **Search with aichat**: Run `aichat search --json -n 10 "[query]"` (use
`-g "project"` to filter by project)
3. **Parse results**: Use `jq` to extract fields from JSONL output (session_id,
project, created, snippet, file_path)
4. **Deep dive if needed**: Read session files at
`~/.claude/projects/*/[session-id].jsonl` (max 3 files)
5. **Summarize**: Return a focused summary with key findings and references
Run `aichat search --help` to see all options (date filters, branch filters, etc.)
and JSONL field names.
## Output Format
Return a concise summary containing:
1. **Key Findings**: 2-3 bullet points answering the query
2. **Relevant Sessions**: Session IDs and dates for reference
3. **Specific Content**: Code snippets or quotes if directly relevant
Format as clean markdown, not raw JSON.
## Example
Query: "Find sessions where we discussed authentication design"
```bash
aichat search --json -n 10 "authentication design"
```
Summary:
- **Session abc123** (Dec 10): Discussed JWT vs session-based auth, decided on JWT
- **Session def456** (Dec 8): Implemented refresh token rotation pattern
## Constraints
- ALWAYS use `--json` flag with aichat search (otherwise it spawns interactive UI)
- NEVER return raw JSON output to the user - summarize and distill findings
- NEVER read more than 3 session files per query
- If no results found, suggest alternative search terms
- ONLY report information directly observed in files - never infer or extrapolate
## Error Handling
If `aichat search` command fails or is not found, ask user to install:
```bash
uv tool install claude-code-tools # Python package
cargo install aichat-search # Rust search TUI
```
Prerequisites:
- Node.js 16+ (for action menus)
- Rust/Cargo (for aichat-search)
If user doesn't have uv or cargo:
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh # uv
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh # Rust
```
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「session-search」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次