Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

ai-context-writerAI 上下文编写器

Agent Skill

ai-context-writer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

445

周安装

18

GitHub Stars

公开资料未说明

下载量

140
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ai-context-writer(AI 上下文编写器)
来源仓库:https://github.com/front-depiction/claude-setup
仓库路径:skills/ai-context-writer
安装命令:
npx skills add front-depiction/claude-setup --skill "ai-context-writer"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add front-depiction/claude-setup --skill "ai-context-writer"

简介

发现并安装 AI 代理的技能。ai-context-writer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中扩展 Agent 能力时使用。
  • 通过 github 安装,需确认宿主环境兼容性。
  • 建议结合仓库路径查看具体技能实现。
  • 注意是否会触发联网或外部服务调用。

SKILL.md

name
ai-context-writer
description
Create and update ai-context.md files that document modules for AI assistants. Use when adding documentation for packages, apps, or external references that should be discoverable via /modules commands.

AI Context Writer Skill

Use this skill when creating or updating ai-context.md files that document modules in the codebase. These files are indexed by the context-crawler and surfaced via /modules, /module, and /module-search commands.

File Location

Context files must be named exactly ai-context.md and placed at the root of the module:

packages/my-package/ai-context.md    # Internal module
apps/my-app/ai-context.md            # Internal module
.context/external-lib/ai-context.md  # External reference (submodule)

Required Structure

Frontmatter (YAML)

---
path: packages/my-package
summary: One-line description mentioning purpose and key technologies
tags: [effect, http-client, sdk-wrapper]
---

Frontmatter Fields:

  • path - Module identifier (relative path from repo root)
  • summary - Single sentence, concise description for module listings
  • tags - Optional categorization for search (technologies, domains)

Markdown Body Sections

# Module Name

High-level overview paragraph explaining the module's purpose.

## Architecture

┌──────────────────┐
│    Component     │
└──────────────────┘
        │
        ▼
┌──────────────────┐
│     Service      │
└──────────────────┘

Brief explanation of the architecture diagram.

## Core Modules

| Module | Purpose |
|--------|---------|
| `Service.ts` | Main service implementation |
| `Client.ts` | HTTP client wrapper |

## Usage Patterns

### Basic Usage

import * as MyModule from "@/packages/my-package" import { Effect } from "effect"

const program = Effect.gen(function* () { const service = yield* MyModule.Service return yield* service.doThing() })


## Key Patterns

### Pattern Name

Description of when and why to use this pattern.

// Example code


## Design Decisions

**AD-1: Decision Title**
Explanation of the decision and trade-offs.

**AD-2: Another Decision**
Why this approach was chosen over alternatives.

## Dependencies

- `effect` - Core Effect library
- `@effect/platform` - Platform abstractions

## Spec Reference

- [specs/my-feature/DESIGN.md](../specs/my-feature/DESIGN.md)

Section Guidelines

Architecture Diagram

Use simple ASCII box-and-arrow diagrams:

┌──────────────┐     ┌──────────────┐
│   Service    │────▶│    Client    │
└──────────────┘     └──────────────┘
        │
        ▼
┌──────────────┐
│   Repository │
└──────────────┘

Characters: ┌ ┐ └ ┘ │ ─ ▼ ▲ ◀ ▶ ────▶

Core Modules Table

Quick reference for key files:

| Module | Purpose |
|--------|---------|
| `ParallelClient.ts` | HTTP client with Effect integration |
| `ParallelRun.ts` | Async task execution |
| `Errors.ts` | Tagged error types |

Usage Patterns

Always include:

  • Full imports with namespace pattern (import * as X)
  • Effect.gen for effectful code
  • Layer construction if services are involved
import * as MyService from "@/packages/my-service"
import { Effect, Layer } from "effect"

const program = Effect.gen(function* () {
  const svc = yield* MyService.Service
  return yield* svc.operation()
})

const live = program.pipe(
  Effect.provide(MyService.Live)
)

Design Decisions

Use AD-N format for traceability:

**AD-1: Use Effect.gen over flatMap chains**
Effect.gen provides cleaner syntax and better stack traces. The generator pattern
makes sequential operations readable without callback nesting.

**AD-2: Schema.TaggedStruct for all domain types**
Automatic discriminator and Data equality support. Enables pattern matching
with Match.typeTags.

Dependencies

List external packages the module depends on:

## Dependencies

- `effect` - Core Effect types and functions
- `@effect/platform` - FileSystem, HttpClient, Terminal
- `@effect/schema` - Runtime validation and serialization

Summary Writing

The summary is critical - it appears in /modules listings.

Good summaries:

  • "Effect wrapper for Parallel AI SDK - web search, content extraction, and async task runs"
  • "React frontend with Effect-Atom state management and TanStack Router"
  • "SQLite-backed workflow engine for durable execution patterns"

Bad summaries:

  • "A module for doing stuff" (too vague)
  • "This is the main package that handles various functionality" (no specifics)

Summary formula: [Primary purpose] - [key feature 1], [key feature 2], and [key feature 3]

Discovery and Indexing

Context files are indexed by context-crawler.ts:

  1. Recursively finds all ai-context.md files
  2. Extracts frontmatter (path, summary, tags)
  3. Falls back to first paragraph if no summary
  4. Excludes node_modules, .git, dist, build, .turbo

Module Classification

  • Internal: Local ai-context.md files in packages/apps
  • External: Submodules from .gitmodules (may lack ai-context.md)

External modules without context files show: (grep for implementation details)

Commands for Discovery

# List all modules with summaries
/modules

# Get full content of specific module
/module packages/parallel

# Search modules by pattern
/module-search http

Complete Example

---
path: packages/parallel
summary: Effect wrapper for Parallel AI SDK - web search, content extraction, and async task runs
tags: [effect, sdk-wrapper, parallel-ai, http-client]
---

# Parallel SDK Effect Wrapper

Effect-native wrapper for the Parallel AI SDK. Injects Effect's HttpClient as the
fetch implementation, providing typed errors, deferred computation patterns, and
composable layer construction.

## Architecture

┌─────────────────────────────────────────────────────────────────┐
│                         User Code                                │
│                    (Effect programs)                             │
└─────────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│                      ParallelClient                              │
│    ┌──────────────┐  ┌──────────────┐  ┌──────────────────┐    │
│    │   search()   │  │  extract()   │  │   createRun()    │    │
│    └──────────────┘  └──────────────┘  └──────────────────┘    │
└─────────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────────┐
│                    Effect HttpClient                             │
│              (injected via Layer.provide)                        │
└─────────────────────────────────────────────────────────────────┘

## Core Modules

| Module | Purpose |
|--------|---------|
| `ParallelClient.ts` | Service interface with Effect operations |
| `ParallelClientLive.ts` | Live implementation using HttpClient |
| `ParallelRun.ts` | Async run execution with polling |
| `Errors.ts` | Tagged error types for failure handling |

## Usage Patterns

### Basic Search

import * as Parallel from "@/packages/parallel" import { Effect } from "effect"

const program = Effect.gen(function* () { const client = yield* Parallel.ParallelClient const results = yield* client.search({ query: "Effect TypeScript" }) return results })

const runnable = program.pipe( Effect.provide(Parallel.Live) )


### Error Handling

import * as Parallel from "@/packages/parallel" import { Effect } from "effect"

const safe = program.pipe( Effect.catchTag("ParallelApiError", (e) => Effect.succeed({ error: e.message }) ), Effect.catchTag("ParallelNetworkError", () => Effect.succeed({ error: "Network unavailable" }) ) )


## Design Decisions

**AD-1: Inject HttpClient via Layer**
Enables testing with mock HTTP responses. Production uses FetchHttpClient,
tests use a custom client that returns canned responses.

**AD-2: Tagged errors for all failure modes**
ParallelApiError, ParallelNetworkError, ParallelTimeoutError. Enables
precise error handling with catchTag.

## Dependencies

- `effect` - Core runtime
- `@effect/platform` - HttpClient abstraction
- `parallel-sdk` - Underlying SDK (via .context/parallel-sdk-typescript)

## Spec Reference

- [specs/parallel/DESIGN.md](../../specs/parallel/DESIGN.md)

When to Use This Skill

  • Adding a new package or app that should be discoverable
  • Documenting an existing module for AI assistants
  • Creating context for external libraries added as submodules
  • Updating documentation after significant refactoring
  • Ensuring modules appear in /modules listings

Key Principles

  1. Frontmatter is required - path and summary enable indexing
  2. Summary is critical - appears in all module listings
  3. Architecture diagrams - visual overview aids understanding
  4. Usage patterns with imports - show how to actually use the module
  5. Design decisions - explain why, not just what
  6. Code examples compile - include all necessary imports
  7. Namespace imports - always import * as X from

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.03%
按下载量换算42

windsurf

20.5%
按下载量换算29

trae

17.4%
按下载量换算24

OpenCode

11.2%
按下载量换算16

Codex

8%
按下载量换算11

Antigravity

3.59%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add front-depiction/claude-setup --skill "ai-context-writer" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills