CS

cxorz/smart-codebase

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

71 stars 品質 61 トレンド 14Apache-2.0

OpenCode 用のプラグイン。 コーディングエージェントを学習し、あらゆるタスクで成長させます.

概要

新しいセッションを始めるたびに、AIはゼロから始まります。 覚えていません: - なぜあなたはそのアーキテクチャを選んだのですか? - あなたのコードベースには何のゲッチャが存在しますか? - チームのパターンは? - 厄介なバグのデバッグから学んだことは何ですか? Smart-Codebase は、SKILL ファイルを介した AI の永続的なメモリを提供します。 AIエージェントを使用して、会話やプロジェクトファイルから知識を自動的にキャプチャします。 1. - ファイルを編集し、問題をデバッグし、建築決定を下す。 2。 - ソースコードをスキャンし、包括的なSKILLファイルを生成するために、/sc-initを実行します。 3. - マイルストーンに到達したら、 /sc-update を実行して、現在のセッションから知識を抽出します。 4。 - 子供のAIセッションは、変更と理由を理解するために、会話やプロジェクトコードを調べます。 5. - エージェントは、標準のOpenCode形式でSKILLファイルを自動で書き出しまたは更新します。 6. - 新しいセッションは、あなたのプロジェクトSKILLを自動検出し、AIを即座にコンテキストにします。 ~/.config/opencode ディレクトリに移動します。 ~/ を作成します.

概要(AI 翻訳)

日本語 | English

OpenCodeをすべてのタスクで学び、成長する上級プロジェクトエキスパートに依頼してください。

お問い合わせ

◀ 痛みのポイント

新しいセッションを始めるたびに、AIはゼロから始まります。 記憶しない:

  • なぜあなたはそのアーキテクチャを選択しましたか?
  • あなたのコードベースには何のゲッチャが存在しますか?
  • チームのパターンは?
  • 厄介なバグのデバッグから学んだことは何ですか?

同じことを何度も説明します。

✨ ソリューション

Smart-Codebase は、SKILL ファイルを介した AI の永続的なメモリを提供します。 AIエージェントを使用して、会話やプロジェクトファイルから知識を自動的にキャプチャします。

お問い合わせ

295 コンテンツの表

  • ✨ 使い方
  • インストール
  • ⚡ コマンド
  • ◀️ 設定
  • 📁 ファイル構造
  • ️️開発

お問い合わせ

̇ 使い方

1。通常、作業 - ファイルを編集し、問題をデバッグし、建築の決定を行います。 2.初回設定 - ソースコードをスキャンし、包括的なSKILLファイルを生成するために一度[[[[T0]を実行します。 3。Ongoing Capture - マイルストーンに達すると、[/sc-updateを実行して、現在のセッションから知識を抽出します。 4.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Smart-Codebase

English | 简体中文

Turn your OpenCode into a senior project expert that learns and grows with every task.


🔥 The Pain Point

Every time you start a new session, AI starts from scratch. It doesn’t remember:

  • Why you chose that architecture?
  • What gotchas exist in your codebase?
  • What patterns your team follows?
  • What you learned from debugging that nasty bug?

You explain the same things over and over.

✨ The Solution

Smart-Codebase gives your AI permanent memory through SKILL files. It uses an AI agent to autonomously capture knowledge from your conversations and project files.

graph TB
    Start([Session Work])
    Init[sc-init command]
    Update[sc-update command]
    InitAgent[AI Scans Source Code]
    UpdateAgent[AI Analyzes Session]
    SkillFile[.opencode/skills/project/SKILL.mdOpenCode Auto-Discovery]
    RefFiles[.opencode/skills/project/reference/*.mdDeep Dive Docs]
    NewSession([New Session Starts])
    Injector[Context Injector]
    
    Start --> Init
    Start --> Update
    Init --> InitAgent
    Update --> UpdateAgent
    InitAgent -->|writes| SkillFile
    InitAgent -->|writes| RefFiles
    UpdateAgent -->|updates| SkillFile
    UpdateAgent -->|updates| RefFiles
    
    NewSession --> Injector
    Injector -->|inject hint| SkillFile

📖 Table of Contents


⚙️ How It Works

  1. You work normally - Edit files, debug issues, and make architectural decisions.
  2. First time setup - Run /sc-init once to scan your source code and generate comprehensive SKILL files.
  3. Ongoing capture - When you reach a milestone, run /sc-update to extract knowledge from the current session.
  4. AI Agent analyzes - A child AI session examines your conversation or project code to understand what changed and why.
  5. Knowledge distilled - The agent autonomously writes or updates SKILL files in standard OpenCode format.
  6. Next session starts - New sessions auto-discover your project SKILLs, giving the AI immediate context.

Manual control means you decide exactly when to preserve knowledge. The AI agent handles the heavy lifting of writing documentation.


📦 Installation

Navigate to your ~/.config/opencode directory:

# Using bun
bun add smart-codebase

# Or using npm
npm install smart-codebase

Add to your opencode.json:

{
  "plugin": ["smart-codebase"]
}

⚡ Commands

Command Description
/sc-init [focus?] Initialize project SKILL files by scanning source code. Run once before your first /sc-update.
/sc-update [focus?] Trigger the AI agent to extract knowledge from the current session.

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add cxorz/smart-codebase
MCP 初心者?mcpskill.org のガイドから始めましょう →