Skip to content

About

🛡️ 合规护盾 Agent - 为所有 git 项目提供 ICP备案/许可证/算法备案/商标/软著/防抄袭 等防御型合规事务的自动化管理

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

🛡️ Compliance Shield(合规护盾)

Node.js TypeScript License

为 DDT 系列及活跃自有项目提供 ICP备案/许可证/算法备案/商标/软著/防抄袭 等防御型合规事务的自动化管理。

Features

  • 项目扫描 — 自动发现 Git 仓库,检测技术栈、AI 使用、支付集成、小程序等
  • 合规看板 — 终端表格 + Markdown 输出,一览所有项目合规状态
  • 智能初始化 — 根据技术栈自动生成 compliance.yaml 配置
  • 6 大合规模块 — ICP备案、ICP许可证、算法备案、小程序备案、商标、软著

Installation

git clone https://github.com/HenryT2023/compliance-shield.git
cd compliance-shield
npm install

Usage

# 扫描所有项目
npm run shield scan

# 查看合规状态看板
npm run shield status

# 查看单个项目详情
npm run shield status -p Themepicker

# 输出 Markdown 格式
npm run shield status --md

# 为当前项目生成 compliance.yaml
npm run shield init

Architecture

CLI (Commander.js)
    │
    ├── scan     → 扫描 ~/home 下所有 Git 仓库
    ├── status   → 读取 compliance.yaml,渲染看板
    └── init     → 检测技术栈,生成配置

计划中:

  • Phase 2: 代码安全检查(secrets/prompts/deps/license)
  • Phase 3: LLM 辅助文档生成(通义千问)
  • Phase 4: MCP Server 集成(Windsurf 对话调用)
  • Phase 5: 持续监控 + Codex CLI 集成

Project Structure

compliance-shield/
├── src/
│   ├── cli/              # CLI 入口 + 命令
│   │   ├── index.ts
│   │   └── commands/
│   │       ├── scan.ts   # 扫描项目
│   │       ├── status.ts # 状态看板
│   │       └── init.ts   # 初始化项目配置
│   ├── core/             # 核心类型 + 配置管理
│   │   ├── types.ts
│   │   ├── config.ts
│   │   └── registry.ts
│   └── scanner/          # 项目扫描 + 技术栈检测
│       ├── repo-scanner.ts
│       └── tech-detector.ts
├── package.json
└── tsconfig.json

Configuration

Global Config

配置文件位于 ~/.shield/config.yaml,首次运行时自动创建:

scan_root: /Users/hal
exclude_patterns:
  - "*/node_modules/*"
  - "*/.git/*"
exclude_repos:
  - gpt-researcher
  - OpenManus
  # ... fork 项目

Per-Project Config

每个项目根目录的 compliance.yaml:

project:
  name: Themepicker
  type: web-app
  domain: themepicker.cn
  has_ai: true
  has_payment: false

compliance:
  icp_filing:
    status: done
    number: 粤ICP备2026017040号-2
  algo_filing:
    status: docs-ready
    algo_name: Themepicker漫剧选题生成合成算法
  # ...

Compliance Modules

模块 触发条件 说明
ICP 备案 有域名 网站必须,已有域名自动检测
ICP 经营许可证 有收费业务 商业运营必须
算法备案 使用生成式 AI 生成合成类算法需备案
小程序备案 有小程序 微信/支付宝小程序
商标注册 所有项目 品牌保护(第9、42类)
软件著作权 所有项目 代码保护

Contributing

  1. Fork 本仓库
  2. 创建特性分支 (git checkout -b feature/amazing-feature)
  3. 提交更改 (git commit -m 'feat: add amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 创建 Pull Request

License

MIT License - see LICENSE for details.

Author

Henry T - GitHub

About

🛡️ 合规护盾 Agent - 为所有 git 项目提供 ICP备案/许可证/算法备案/商标/软著/防抄袭 等防御型合规事务的自动化管理

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages