AI-Enhanced Software Engineering plugin for OpenSpec and Compound Engineering workflows.
Project description
Aisee Plugin
English | 简体中文
Aisee 是 AI-Enhanced Software Engineering 的缩写。
Aisee Plugin 是一个面向 OpenSpec 工作流的 AI 软件工程插件。它帮助团队把模糊想法整理成可审查的需求、UI 内容规格、技术架构上下文、schema-aware OpenSpec changes、实现交接 brief、验证检查和归档门禁。
Aisee 不替代 OpenSpec。OpenSpec 仍然是规范状态机和 baseline 事实源。Aisee 在 OpenSpec 周围补充结构化 skills、schema packs、JSON context tooling、稳定 ID 追踪和工程交接规则。
当前状态:early alpha。
0.1.1已发布到正式 PyPI,并通过 TestPyPI、venv 安装和隔离 pipx 安装验证;持续兼容治理仍在完善中。
为什么需要 Aisee?
AI coding assistant 很有用,但当需求、UI 说明、技术约束和实现证据长期停留在聊天记录里时,项目很容易上下文漂移。
Aisee 的目标是让这些上下文显式化:
- 在实现前澄清业务需求;
- 分离需求、UI 内容、技术架构和 change planning;
- 以 schema-aware 的方式创建和补齐 OpenSpec changes;
- 保持 OpenSpec 作为唯一持久规范事实源;
- 为实现、验证和审查生成机器可读的 context pack;
- 追踪需求、页面、契约、任务、代码和证据 ID;
- 检查 artifacts、tasks、source-map、测试和 review evidence 是否闭环。
工作流定位
用户意图
↓
Aisee skills
澄清需求、UI 内容、架构和 change 边界
↓
OpenSpec
管理 active changes、baseline specs、validate、apply 和 archive
↓
Aisee CLI
读取 OpenSpec/Aisee metadata,输出 JSON context packs
↓
Compound Engineering 或其它 coding agent
实现、审查、测试并产出 evidence
↓
Aisee verify / archive guard
检查当前 change 是否可以进入归档
核心边界:
OpenSpec = 规范状态机和 baseline 事实源
Aisee = 规划、上下文、schema、追踪和工作流 guardrails
Aisee CLI = JSON context bus,不是第二份事实源
Compound Engineering = 可选的执行 / 审查 / 测试消费方
功能特性
- 结构化需求澄清:
aisee:srs通过对话澄清业务需求,并生成规划级 SRS。 - UI 内容规格:
aisee:ui-content将已确认需求转换为页面内容、状态、流程、权限可见性和平台差异,不写视觉设计。 - 技术架构上下文:
aisee:architecture记录技术事实、约束、可复用能力、全局工程约定和 artifact hints。 - Schema-aware change planning:
aisee:change-plan将已确认输入映射为可独立交付的 OpenSpec changes。 - OpenSpec schema pack:提供 app、device、docsite、infra、security、quick-fix、quick-research、collaboration 等 schema。
- Context packs:
aisee context pack为实现、验证和 review 生成 JSON 上下文。 - 契约上下文服务:
aisee contract以 manifest-first、section 级读取方式暴露服务契约,支持前后端跨仓库协作。 - 团队知识 Guardrails:
aisee knowledge基于 pack/card 协议按需检索少量已审查工程经验,不把知识库变成第二份规范事实源。 - ID registry 与 traceability:
aisee id、aisee get、aisee trace连接上游文档、OpenSpec artifacts、tasks、代码路径、测试和 evidence。 - 验证与归档门禁:
aisee:verify和aisee:archive-guard在 archive 前诊断缺口和风险。 - Harness 设计:通过 CLI contract tests 和规范化 skill eval cases 保持工作流稳定。
环境要求
- Python 3.10+
- Git
- Node.js 和 OpenSpec CLI
OpenSpec 需要单独安装:
npm install -g @fission-ai/openspec@latest
Compound Engineering 是可选依赖。Aisee 可以通过 aisee doctor --json 检查关键 Compound skills 是否可用。
安装
推荐使用 pipx 安装 CLI:
pipx install aisee-plugin
也可以使用 pip:
python -m pip install aisee-plugin
开发或本地修改时可以从源码安装:
git clone https://github.com/AISEE-LAB/aisee-plugin
cd aisee-plugin
python -m pip install -e .
也可以先构建 wheel,再安装本地包:
python -m pip install build
python -m build
python -m pip install dist/aisee_plugin-*.whl
检查 CLI:
aisee --version
aisee doctor --json
也可以不安装,直接运行仓库内入口:
./bin/aisee doctor --json
插件使用
Python 包会同时携带 Aisee skills、schema pack、references 和 agent plugin metadata。可以先检查包内插件资源:
aisee plugin inspect --json
导出一个可被 agent runtime 加载的插件目录:
aisee plugin export --target codex --dest ./aisee-plugin-bundle --json
当前支持的 target:
codex
claude
cursor
导出后的目录包含:
aisee-plugin-bundle/
.codex-plugin/plugin.json
skills/
references/
如果你的 agent runtime 支持加载本地插件,可以指向导出的目录或对应的 plugin metadata 文件。
手动确认 runtime loading 时,至少检查:
- 导出目录包含目标 runtime 的 metadata 文件;
- agent runtime 能识别导出目录下的
skills/; - 能在 agent 中触发
aisee:srs或aisee:change-plan这类核心 skill。
插件市场是可选的 runtime 发现和分发通道,不替代 PyPI / pipx 安装。Aisee 当前不内置 marketplace.json;团队或个人 marketplace 可以按需引用导出的插件目录。更多说明见 Plugin Marketplace。
源码仓库也包含多个 agent runtime 的插件元数据:
.codex-plugin/plugin.json
.claude-plugin/plugin.json
.cursor-plugin/plugin.json
Codex plugin metadata 会直接声明 skills 目录:
{
"skills": "./skills/"
}
快速开始
在需要使用 OpenSpec 的项目内运行:
aisee doctor --json
aisee bootstrap --plan --json
aisee plugin inspect --json
如果项目还没有初始化 OpenSpec:
aisee openspec ensure --json
该命令使用保守默认值桥接 OpenSpec 初始化:
openspec init . --tools none --profile core
openspec config profile core
然后安装本插件提供的 schemas:
aisee schemas install --all --json
再次检查项目状态:
aisee doctor --json
aisee flow inspect --json
文档
- 文档站:Aisee 使用指南、工作流和发布说明入口。
- Aisee Workflow:端到端说明如何从初始化、需求澄清、change authoring、实现交接、验证到 archive。
- Aisee Best Practices:使用 Aisee 与 OpenSpec 时的事实源、schema、contract、context pack、复用优先、review 和 archive 约定。
- Compatibility Policy:说明 CLI JSON、schema pack、context pack、plugin export 和实验性能力的兼容边界。
- Plugin Marketplace:说明插件 manifest、marketplace listing、PyPI/pipx 和 runtime export 的分工。
- Team Knowledge Guardrails:说明团队共享知识的实验性状态、使用方式和稳定前缺口。
- Aisee Team Knowledge Architecture:说明 team knowledge 的 guardrail retrieval 定位、card/pack 边界和读取模型。
- Schema Packs:说明 schema 选择、app schema artifact DAG、ID/source-map 规则和契约附件边界。
- Aisee / OpenSpec / Compound Engineering 融合方案:高层职责边界和历史决策快照。
- OpenSpec 多 Schema 最佳实践:多 schema 共存、冲突和管理规则。
- Release And Version Governance:版本号单一事实源、发布检查和 tag 规则。
典型流程
1. aisee:srs
2. aisee:ui-content
3. aisee:architecture
4. aisee:change-plan
5. /opsx:new "<change>" --schema <schema>
6. aisee:change-author
7. openspec validate <change>
8. aisee:implementation-bridge
9. implementation / review / test
10. aisee:verify
11. aisee:archive-guard
12. openspec archive <change>
实现前后可按需触发只读 Aisee reviewer role:aisee-change-architect、aisee-spec-reviewer、aisee-implementation-reviewer。触发时机和边界见 Aisee Workflow,复用优先规则见 Aisee Best Practices。
对于已有项目,可使用 aisee:spec-migrate 从代码、测试、文档、路由和已验证行为中整理 OpenSpec baseline specs。
主要 Skills
| Skill | 作用 |
|---|---|
aisee:flow |
检查当前工作流阶段并推荐下一步。 |
aisee:init |
初始化或审计 AGENTS.md、openspec/project.md、Aisee docs、memory 和 Codex hooks。 |
aisee:srs |
澄清软件需求并生成规划级 SRS。 |
aisee:ui-content |
生成页面、元素、状态、流程、权限和平台差异等 UI 内容规格。 |
aisee:architecture |
捕获软件架构上下文、技术约束、可复用能力和 artifact hints。 |
aisee:change-plan |
规划独立 OpenSpec changes 并选择 schema。 |
aisee-schema-pack |
安装和维护 OpenSpec schema packs。 |
aisee:implementation-bridge |
生成单个 change 的实现交接 brief 和 context pack 摘要。 |
aisee:verify |
诊断 artifact、task、source-map、ID 和 evidence 缺口。 |
aisee:archive-guard |
在 openspec archive 前给出最终归档建议。 |
aisee:spec-migrate |
为已有项目整理 OpenSpec baseline specs。 |
aisee:design-spec |
生成设计规范,不重复 UI 内容规格。 |
aisee:design-assets |
生成或提取视觉参考和设计素材。 |
aisee:svg-assets |
生成、矢量化、优化和校验 SVG assets。 |
aisee:image-object |
对象级图片分割、mask、去背景和导出工作流。 |
aisee:reflect |
沉淀可复用项目经验和工作流改进。 |
aisee:knowledge-curate |
批量审查项目内 reusable knowledge candidates,产出可人工提交到 team knowledge 的 card drafts。 |
硬件相关 skills 已保留,但仍在整合到 Aisee 主工作流中:
hw-init
hw-srs
hw-architecture
hw-change-plan
Schema Packs
Schema pack 源位置:
skills/aisee-schema-pack/assets/schema-pack/
当前包含:
| Schema | 适用场景 |
|---|---|
aisee-app-spec-driven |
App / 软件变更,包含 source-map、contracts、specs 和 tasks。 |
aisee-device-spec-driven |
设备、固件、runtime、生产和验证相关变更。 |
aisee-docsite-driven |
文档站变更。 |
infra-change |
基础设施变更。 |
security-audit |
安全审计工作流。 |
quick-fix |
小型、边界清晰的修复。 |
quick-research |
技术调研和建议。 |
opsx-collab-pr-loop |
协作和 PR loop 工作流。 |
安装单个 schema:
aisee schemas install --schema aisee-app-spec-driven --json
安装全部 schemas:
aisee schemas install --all --json
检查 schema pack:
aisee schemas check --json --fail-on-blocker
CLI Reference
aisee doctor --json
aisee bootstrap --plan --json
aisee openspec ensure --json
aisee plugin inspect --json
aisee plugin path --target codex --json
aisee plugin export --target codex --dest ./aisee-plugin-bundle --json
aisee schemas list --json
aisee schemas check --json
aisee schemas install --all --json
aisee sources list --json
aisee sources check --json
aisee index --json
aisee flow inspect --json
aisee flow inspect --change <change> --json
aisee change inspect <change> --json
aisee change author-check <change> --json
aisee gaps --change <change> --json
aisee context pack --change <change> --for ce-work --json
aisee context pack --change <change> --for ce-work --knowledge --json
aisee context pack --change <change> --for aisee-verify --json
aisee knowledge scaffold --dest .aisee/team-knowledge --update-config --json
aisee knowledge inspect --json
aisee knowledge doctor --json
aisee knowledge check --json
aisee knowledge check --team-path .aisee/team-knowledge --json
aisee knowledge install --json
aisee knowledge update --json
aisee knowledge query --phase implementation --surface cli --query "public CLI JSON" --json
aisee knowledge query --from-change <change> --for ce-work --json
aisee knowledge index --json
aisee knowledge index --team-path .aisee/team-knowledge --json
aisee knowledge promote-batch --curation <path> --team-path .aisee/team-knowledge --pack web-app --json
aisee contract manifest --json
aisee contract summary --change <change> --json
aisee contract get --change <change> --artifact service-contract --section 能力契约 --json
aisee contract serve --host 127.0.0.1 --port 8765
aisee change verify-check <change> --json
aisee change archive-check <change> --json
aisee id check --json
aisee id reserve --scope <scope> --type <type> --count 3 --json
aisee get <id> --json
aisee trace <id> --json
CLI 关键规则:
- JSON 输出只是上下文视图,不是事实源。
aisee/cache/context-index.json只是可删除、可重建的 cache。aisee/cache/knowledge-index.json也是可删除、可重建的 cache;team knowledge 的持久来源是已 pin 的 pack/card 文件。aisee knowledge promote-batch只写本地 team knowledge worktree,不自动 commit、push 或创建 PR。aisee/registry/id-registry.json、aisee/registry/sources.json、OpenSpec artifacts 和source-map.md是持久追踪输入。bootstrap --plan是只读计划,不做大而全初始化写入。aisee openspec ensure只桥接 OpenSpec 初始化和 profile 设置,不替代aisee:init。aisee contract serve是只读契约上下文服务,不是 mock backend、API gateway 或第二份接口事实源;默认只监听127.0.0.1,如需局域网访问必须显式传--host 0.0.0.0并承担暴露本地契约文档的风险。aisee knowledge query只返回少量 guardrails;默认只读 pack manifest 和 card frontmatter,--debug才包含命中 card 的正文摘要。
跨仓库接口契约读取
当前后端分离在不同仓库开发时,建议由后端仓库、BFF 仓库或独立契约仓库维护 service-contract.md 与可选的机器可读附件,例如 contracts/openapi.yaml、contracts/events.yaml、contracts/webhooks.yaml 或 contracts/proto/*.proto。
推荐流程:
# 在契约提供方仓库
aisee contract manifest --json
aisee contract summary --change <change> --json
aisee contract serve --host 127.0.0.1 --port 8765
# 在消费方仓库的 AI 上下文中,先读 manifest,再按需读取小 section
curl http://127.0.0.1:8765/manifest
curl http://127.0.0.1:8765/changes/<change>/summary
curl "http://127.0.0.1:8765/changes/<change>/contracts/service-contract/sections/<section>?max_chars=4000"
契约权威来源仍然是 OpenSpec/Aisee artifacts。HTTP 服务只在请求时读取当前文件并返回 JSON 视图,不持久化契约副本,不暴露源码、环境变量、密钥或全仓库搜索结果。
团队知识 Guardrails
团队知识是实验性功能,用于跨项目复用工程经验,但不替代 OpenSpec、source-map.md、contracts、tasks 或 baseline specs。
业务项目可以在 aisee/knowledge.yaml 中 pin 独立知识仓库、本地路径、ref 和 packs:
repo: git@example.com:org/aisee-team-knowledge.git
path: .aisee/team-knowledge
ref: v0.1.0
packs:
- web-app
retrieval:
max_cards: 3
include_project_candidates: true
常用命令:
aisee knowledge inspect --json
aisee knowledge query --phase implementation --surface cli --query "public CLI JSON" --json
aisee knowledge query --from-change <change> --for ce-work --json
aisee context pack --change <change> --for ce-work --knowledge --json
使用原则:
install、update、promote-batch和本地 scaffold 已可用但仍是实验性能力;PR 自动化和 MCP 服务仍未稳定。- 通过 CLI 查询,不让 AI 直接扫描
knowledge/cards/**/*.md。 - 只返回少量带边界的 matches,作为实现、review 或 verify 的提醒。
- 项目内
aisee/docs/reflect/knowledge-candidates/仍是候选区,不自动进入 team knowledge。 aisee:knowledge-curate只生成审查报告和 card drafts;写入 team repo、创建分支、提交、合并或 PR 必须再次获得用户明确授权。
仓库结构
.codex-plugin/ Codex plugin metadata
.claude-plugin/ Claude plugin metadata
.cursor-plugin/ Cursor plugin metadata
bin/ 本地 CLI 入口
src/aisee_cli/ Aisee Python CLI
src/aisee_plugin_assets/
打包进 wheel 的 skills、schemas、references 和 plugin metadata
skills/ Aisee skills 和 skill assets
references/ 跨 skill contracts 和 references
docs/ 用户 workflow、最佳实践、架构、计划和 review 文档
docs/architecture/ 架构与历史决策文档
docs/plans/ 开发计划
docs/reviews/ 审计和 review 记录
scripts/ 开发和发布辅助脚本
tests/ CLI 与 harness 测试
开发
运行测试:
python -m pytest
校验 skill eval JSON:
python -m pytest tests/test_skill_eval_schema.py
查看 CLI help:
python -m aisee_cli.__main__ --help
同步包内插件资源:
python scripts/sync_package_assets.py
检查和同步版本号:
python scripts/check_versions.py
python scripts/sync_versions.py
构建 wheel:
python -m build
运行发布 smoke test:
python scripts/smoke_release.py
发布候选版本建议在本机具备 pipx 时运行隔离安装验证:
python scripts/smoke_release.py --with-pipx
设计原则
- OpenSpec 是 canonical specification source。
- 不在 Aisee docs、CLI cache 或聊天总结中创建平行事实源。
- Skill 保持单一职责:需求、UI 内容、架构、change planning、implementation bridge、verify、archive guard。
- 优先使用 schema-aware 检查,而不是硬编码 artifact 假设。
SKILL.md保持精简,长规则放到 references 或 architecture docs。- 硬件和嵌入式流程作为专用扩展处理,不强行套入 app schema。
相关项目
- OpenSpec — 面向 AI coding assistants 的 spec-driven development 框架。
- OpenSpec documentation — OpenSpec 安装和工作流文档。
- Compound Engineering Plugin — 面向 AI 工程执行、审查、测试、提交和团队知识沉淀的 agent workflow 插件。
Roadmap
持续兼容治理
- 持续维护 CLI JSON、schema packs、context packs、plugin export 和 skill contracts 的兼容边界。
- 持续维护破坏性变更的弃用、迁移和版本升级规则。
- 明确哪些硬件和嵌入式工作流继续保持实验性,哪些进入 Aisee 主工作流。
- 增加 app 场景之外的真实生命周期 fixtures。
后续
- 扩展跨仓库契约协作示例。
- 稳定 team knowledge 远程同步、promote workflow、生命周期管理和可选 MCP 包装。
License
MIT。详见 LICENSE。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aisee_plugin-0.1.2.tar.gz.
File metadata
- Download URL: aisee_plugin-0.1.2.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
de741efc9a5a5a850ca2865af705475a92981cb26fb37ce761e1046ab10c7e1a
|
|
| MD5 |
9e589510ee955bd877d4c55a7da18500
|
|
| BLAKE2b-256 |
9619a8fa08e181981e983817db6e88b014724b568eeaf5a44f041ec2364be3d7
|
Provenance
The following attestation bundles were made for aisee_plugin-0.1.2.tar.gz:
Publisher:
publish-pypi.yml on AISEE-LAB/aisee-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aisee_plugin-0.1.2.tar.gz -
Subject digest:
de741efc9a5a5a850ca2865af705475a92981cb26fb37ce761e1046ab10c7e1a - Sigstore transparency entry: 1754819491
- Sigstore integration time:
-
Permalink:
AISEE-LAB/aisee-plugin@2709270805745327e358b3b8c5a4da347fdc3793 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AISEE-LAB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2709270805745327e358b3b8c5a4da347fdc3793 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aisee_plugin-0.1.2-py3-none-any.whl.
File metadata
- Download URL: aisee_plugin-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16c956ce2280675cc018910c1e357997f5654c261194d85183f785a9cf900690
|
|
| MD5 |
184be55cd2fadbcf8bf40c9cebfaae8b
|
|
| BLAKE2b-256 |
e93c82fd3fe08bbc92d5f3d5a874a7531a9f3b604cf459e006028aeffaa36232
|
Provenance
The following attestation bundles were made for aisee_plugin-0.1.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on AISEE-LAB/aisee-plugin
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aisee_plugin-0.1.2-py3-none-any.whl -
Subject digest:
16c956ce2280675cc018910c1e357997f5654c261194d85183f785a9cf900690 - Sigstore transparency entry: 1754819493
- Sigstore integration time:
-
Permalink:
AISEE-LAB/aisee-plugin@2709270805745327e358b3b8c5a4da347fdc3793 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AISEE-LAB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@2709270805745327e358b3b8c5a4da347fdc3793 -
Trigger Event:
push
-
Statement type: