Skip to main content
Glama

AIDA

AI 工具资产治理层 — 规则、技能、决策记忆、插件

version license node tests aida MCP server


三大能力

1. 资产治理

扫描 .claude/rules/、.cursor/rules/、.codex/、.aida/ 等目录,找出重复、矛盾、失效的规则和技能。所有写操作走 aida_apply_governance MCP 工具,每批 journal 一次,可通过 aida_undo 一键回滚。

核心 skill: /aida-govern(一站式)

2. 分层决策记忆

用 MADR 格式把 "为什么这段代码这么写" 记录到 .claude/rules/decisions/。Claude Code 通过 paths 前置元数据在相关文件打开时自动加载,无需手动召回。

核心 skill: /aida-remember、/aida-remember-branch

3. AI 资产总览

本地 Dashboard(aida dashboard)提供 package.json 风格的资产清单:规则/技能/决策/MCP 配置/插件,一屏看完。

核心 skill: /aida-audit


Related MCP server: ctxray

30 秒上手(Claude Code Plugin)

/plugin marketplace add LWTlong/aida
/plugin install aida@aida

重启 Claude Code。12 个 aida-* skill 会立刻可用。

升级:

/plugin update aida

Cursor / Codex / VS Code(可选,走 MCP)

在项目根 .mcp.json 加入:

{ "mcpServers": { "aida": { "command": "npx", "args": ["-y", "aida", "mcp"] } } }

或用一键脚本:

npx aida init

Skill 一览

类别

Skill

用途

治理

/aida-govern

一站式:扫描 → 分析 → 确认 → 一次落盘(覆盖规则过载/任务型规则/文档冗余/跨工具重复/冲突/聚合镜像/2.x 遗留物)

/aida-resolve

解决 AI 资产文件的 git 合并冲突

/aida-sync

跨工具同步:Claude ↔ Cursor ↔ Codex(你选源→目标)

/aida-import

从本地目录路径安全导入外部 Claude Plugin(先审计风险)

只读

/aida-audit

扫描并梳理项目所有 AI 资产

记忆

/aida-remember

记一条决策为 MADR,Claude Code 自动加载

/aida-remember-branch

从当前分支的 diff 批量提取决策

/aida-recall

召回之前沉淀的模块记忆

/aida-analyze

分支/功能开发完后沉淀"改了什么、为什么"

/aida-undo

回滚最近一次 AIDA 写操作

分享

/aida-pkg

打包资产为 Claude Plugin

/aida-ui

打开本地 Dashboard(检查 npm 包 → 引导安装 → 给出启动命令)

/aida-help

显示 skill 参考卡片


MCP 工具清单

工具

作用

aida_bootstrap

初始化 / 状态检查 / 工具授权清单

aida_scan_assets

扫描所有 AI 资产

aida_list_assets / aida_get_asset

浏览资产

aida_apply_governance

执行治理动作(create/modify/delete/remove-lines),全部 journaled

aida_undo

撤销上一次治理操作

aida_write_analysis

写分析报告

aida_memory / aida_remember / aida_recall

读写决策记忆

aida_build_plugin

打包项目资产为 Claude Plugin

aida_build_self_plugin

打包 AIDA 自身为 Plugin

aida_parse_plugin / aida_audit_plugin_risk

解析/审计外部 Plugin


项目结构

.claude-plugin/
  plugin.json           # Claude Plugin 清单(本仓库本身就是 plugin)
  marketplace.json      # Marketplace 清单
src/
  assets/skills/        # 12 个 aida-* skill 源(plugin skills 字段指过来)
  core/                 # 扫描、治理、undo、memory、plugin builder
  mcp/server.ts         # MCP server
  cli/                  # aida CLI
  dashboard/            # Dashboard 前端产物
.claude/
  rules/decisions/      # MADR 决策记忆(Claude Code 自动加载)
.aida/
  cache/                # 扫描结果 + undo journal

验证

npm test
npm run build

Available Tools

10 tools
aida_bug_fixB

当你修复了一个 bug 后调用。标记 bug 为已修复。

Inputs: bugId (required), fix.

aida_highlightB

记录值得关注的亮点,如性能提升、架构优化等。

Inputs: content (required).

aida_log_bugB

当你在开发或测试中发现 bug 时调用。记录 bug 信息。

Inputs: title (required), severity, source.

aida_log_deviationB

当 AI 产出与用户预期不符时调用。记录偏差用于后续分析。当 rootCause 为 rule-missing 时,修复后如果属于项目级技术规范(非业务逻辑),应询问用户是否沉淀为规则。

Inputs: title (required), rootCause, category.

aida_log_filesA

记录文件变更。无需传参,自动扫描 git diff 获取变更文件列表和行数。在完成一轮代码修改后调用。

Inputs: no named parameters.

aida_log_reviewB

当你完成一轮代码审查后调用。记录审查结果。

Inputs: result (required), taskId, issues, scope.

aida_log_ruleA

沉淀项目规则。当偏差的 rootCause 为 rule-missing 且修复方案属于项目级技术规范(非业务逻辑)时,询问用户同意后调用此工具沉淀规则。仅限:公共组件使用规范、API 调用规范、参数传递规范、代码风格/架构规范。禁止沉淀业务逻辑。

Inputs: content (required), category (required), sourceDeviation.

aida_statusA

查看当前开发运行的状态:任务列表、bug 数量、进度等。在需要了解当前进度时调用。

Inputs: no named parameters.

aida_task_doneA

当你完成一个任务后调用。标记任务为已完成,自动计算耗时。

Inputs: taskId (required).

aida_task_startA

当你开始一个新任务或功能开发时调用。在接到用户需求、开始编码前调用。每个任务的完整数据采集流程:1) aida_task_start 2) 编码 3) aida_log_files 4) aida_log_review 5) aida_task_done。多个子任务必须每个都单独 start/done。

Inputs: title (required), stage.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap: bug fixing, highlighting achievements, logging bugs/deviations/files/reviews/rules, checking status, and managing tasks. The descriptions explicitly define when to use each tool, eliminating any ambiguity.

    Naming Consistency5/5

    All tools follow a consistent 'aida_' prefix with descriptive snake_case names (e.g., aida_log_bug, aida_task_start). The naming pattern is uniform throughout, making it easy to predict and understand tool functions.

    Tool Count5/5

    With 10 tools, the server is well-scoped for AI development analytics, covering key aspects like bug tracking, task management, file logging, and rule documentation. Each tool serves a specific, necessary function without bloat.

    Completeness5/5

    The tool set provides complete coverage for the AI development lifecycle, including task initiation/completion, bug logging/fixing, file change tracking, code review logging, deviation analysis, rule documentation, status checks, and highlighting achievements. No obvious gaps exist for this domain.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A 100% local development monitoring tool that captures browser console logs, network requests, and backend server output for analysis by AI assistants via MCP. It enables LLMs to debug applications by providing structured, real-time access to full-stack log data and persistent local storage.
      7
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Context intelligence for AI coding sessions. 7 MCP tools to score, compare, compress, build, and scan prompts across 9 AI tools. Rule-based, <5ms/prompt, all analysis runs locally.
      47
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      A local-first MCP server that gives AI coding agents runtime visibility and AI-managed debug logging. It replaces blind print() debugging by turning runtime execution into causal chains, allowing agents to instantly locate bugs by finding missing .success events in Python and TypeScript code. Single binary with MCP, CLI, and HTTP interfaces.
      -
    • A
      license
      Not graded
      quality
      A
      maintenance
      AI-native developer observability MCP (Model Context Protocol) server that gives AI agents full-stack visibility into your development environment — browser, terminal, and processes — all in one unified interface.
      1
      MIT