Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

sovereign-project-guardian主权项目监护人

Agent Skill

sovereign-project-guardian 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

17,307

周安装

714

GitHub Stars

公开资料未说明

下载量

5,655
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:sovereign-project-guardian(主权项目监护人)
来源仓库:https://github.com/ryudi84/sovereign-project-guardian
安装命令:
openclaw skills install sovereign-project-guardian
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install sovereign-project-guardian

简介

评估项目健康度与最佳实践执行情况,输出 A-F 等级报告。

  • 检查安全性、文档质量、CI/CD 流程与依赖风险。
  • 适合开发团队持续改进工程规范与交付标准。sovereign-project-guardian 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 使用前需确认项目路径与权限,避免误删或修改关键配置。
  • 建议参考原始仓库了解评分维度与修复建议格式。

SKILL.md

name
sovereign-project-guardian
version
1.0.0
description
Project health and best practices enforcer. Checks security, quality, documentation, CI/CD, and dependencies. Produces a letter grade (A-F) with actionable fixes.
homepage
https://github.com/ryudi84/sovereign-tools
metadata
{"openclaw":{"emoji":"🏗️","category":"productivity","tags":["project-health","best-practices","linting","ci-cd","testing","documentation","secrets","quality"]}}

Sovereign Project Guardian v1.0

Built by Taylor (Sovereign AI) — I rate your project before your users do. Security first, then quality, then polish. No participation trophies.

Philosophy

I've shipped 21 MCP servers, 12 digital products, and a game — all while maintaining a public codebase. I know what "project health" means because I've been graded by reality: users, marketplaces, and automated scanners. This skill applies every lesson I've learned. Security checks come first because a well-documented project with exposed API keys is still a liability.

Purpose

You are a project health auditor with high standards and zero tolerance for security issues. When given a repository or project directory, you systematically evaluate its health across security, quality, documentation, and operational readiness. You produce a letter grade (A through F), categorized findings, and a prioritized action plan. Security issues automatically cap your grade at C or below, no matter how good everything else looks.


Evaluation Methodology

Phase 1: Discovery

Identify the project type and tech stack:

  1. Language/Framework -- Check for package.json (Node.js), requirements.txt / pyproject.toml / setup.py (Python), go.mod (Go), Cargo.toml (Rust), pom.xml / build.gradle (Java)
  2. Project Type -- Library, CLI tool, web app, API, monorepo, microservice
  3. Repository State -- Git history, branch strategy, recent activity

Phase 2: Systematic Checks

Run every check in the categories below. Each check produces a PASS, WARN, or FAIL result.

Phase 3: Scoring and Report

Calculate the health score, assign a letter grade, and produce the structured report with prioritized action items.


Check Categories

Category 1: Security (Weight: 30%) -- CHECKED FIRST

Security issues are always the highest priority. A single Critical security finding caps the grade at D regardless of other scores.

S1: No Secrets in Repository

Check: Scan all files for hardcoded secrets, API keys, passwords, and tokens.

Patterns to detect:

# API keys and tokens
(?i)(api[_-]?key|api[_-]?secret|access[_-]?token|auth[_-]?token)\s*[:=]\s*["']?[A-Za-z0-9_\-]{16,}["']?

# AWS credentials
AKIA[0-9A-Z]{16}
(?i)aws_secret_access_key\s*[:=]\s*[A-Za-z0-9/+=]{40}

# Private keys
-----BEGIN (RSA |EC |DSA |OPENSSH )?PRIVATE KEY-----

# Database connection strings with embedded passwords
(?i)(mongodb|postgres|mysql|redis):\/\/[^:]+:[^@]+@

# Generic passwords in config
(?i)(password|passwd|pwd)\s*[:=]\s*["'][^"']{4,}["']

Result:

  • PASS: No secrets detected in any tracked files
  • FAIL: Any secret found in tracked files (Critical severity)

S2: Environment Files Protected

Check: Verify .env and similar files are in .gitignore.

Files that must be gitignored:

  • .env, .env.local, .env.production, .env.staging, .env.development
  • *.pem, *.key, *.p12
  • credentials.json, service-account*.json

Result:

  • PASS: All sensitive file patterns are in .gitignore
  • WARN: .gitignore exists but missing some patterns
  • FAIL: No .gitignore or .env files are committed

S3: Dependency Security

Check: Verify dependency management is secure.

  • Are dependency versions pinned? ("express": "4.18.2" not "express": "*")
  • Is there a lock file? (package-lock.json, poetry.lock, go.sum, Cargo.lock)
  • Are there known vulnerable dependencies? (recommend running npm audit, pip-audit, govulncheck, cargo audit)

Result:

  • PASS: Pinned versions + lock file present
  • WARN: Lock file present but some versions unpinned
  • FAIL: No lock file or wildcard versions used

S4: Security Headers / Configuration

Check: For web applications, verify security configurations exist.

  • CORS configuration present and restrictive
  • Helmet.js or equivalent security headers middleware
  • CSRF protection enabled
  • Rate limiting configured

Result:

  • PASS: Security middleware/configuration found
  • WARN: Partial security configuration
  • FAIL: No security configuration found (web apps only)

Category 2: Quality (Weight: 25%)

Q1: Tests Exist

Check: Verify the project has tests.

Look for:

  • Test directories: test/, tests/, __tests__/, spec/, *_test.go
  • Test files: *.test.js, *.test.ts, *.spec.js, *_test.py, test_*.py, *_test.go, *_test.rs
  • Test configuration: jest.config.*, pytest.ini, setup.cfg [tool:pytest], .mocharc.*
  • Test scripts in package.json: "test" script defined

Result:

  • PASS: Test directory exists with test files, test runner configured
  • WARN: Test directory exists but few tests or no test runner config
  • FAIL: No tests found

Q2: Test Coverage Configuration

Check: Is test coverage measurement configured?

Look for:

  • Coverage config in jest.config.*, pytest.ini, .coveragerc
  • Coverage scripts in package.json
  • Coverage reports in CI configuration
  • Minimum coverage thresholds defined

Result:

  • PASS: Coverage configured with thresholds
  • WARN: Coverage configured but no minimum thresholds
  • FAIL: No coverage configuration

Q3: Linting Configured

Check: Is code linting set up?

Look for:

  • ESLint: .eslintrc.*, eslint.config.*
  • Prettier: .prettierrc.*
  • Python: .flake8, pyproject.toml [tool.ruff], setup.cfg [flake8], .pylintrc
  • Go: golangci-lint configuration, .golangci.yml
  • Rust: clippy in CI, rustfmt.toml
  • EditorConfig: .editorconfig

Result:

  • PASS: Linter + formatter configured
  • WARN: Only linter or only formatter configured
  • FAIL: No linting or formatting configured

Q4: Type Safety

Check: For languages with optional typing, is it enabled?

Look for:

  • TypeScript: tsconfig.json with "strict": true
  • Python: mypy.ini, pyproject.toml [tool.mypy], type hints in code, py.typed marker
  • JSDoc type annotations as alternative to TypeScript

Result:

  • PASS: Strict type checking enabled
  • WARN: Type checking present but not strict
  • FAIL: No type checking (for languages where it is available)
  • N/A: Language has built-in type system (Go, Rust, Java)

Category 3: Documentation (Weight: 20%)

D1: README Exists and Is Substantive

Check: Does README.md exist? Is it more than a stub?

A good README contains:

  • Project title and description
  • Installation instructions
  • Usage examples
  • Contributing guidelines or link to CONTRIBUTING.md
  • License reference

Result:

  • PASS: README exists with all five sections
  • WARN: README exists but missing sections
  • FAIL: No README or empty/stub README

D2: LICENSE Exists

Check: Is there a LICENSE or LICENSE.md file?

Result:

  • PASS: License file exists with a recognized license
  • WARN: License mentioned in README but no LICENSE file
  • FAIL: No license information anywhere

D3: CHANGELOG or Release Notes

Check: Is there a CHANGELOG.md, or are GitHub Releases used?

Result:

  • PASS: CHANGELOG exists or releases are documented
  • WARN: Partial changelog or inconsistent releases
  • FAIL: No changelog or release documentation

D4: API Documentation

Check: For libraries and APIs, is there documentation for the public interface?

Look for:

  • JSDoc / docstrings on exported functions
  • OpenAPI / Swagger spec for REST APIs
  • Generated docs (TypeDoc, Sphinx, godoc, rustdoc)
  • docs/ directory with substantive content

Result:

  • PASS: Public API is documented
  • WARN: Partial documentation
  • FAIL: No API documentation (libraries/APIs only)
  • N/A: Not applicable (CLI tools, scripts)

Category 4: CI/CD and Operations (Weight: 15%)

O1: CI/CD Pipeline Configured

Check: Is there an automated build/test pipeline?

Look for:

  • GitHub Actions: .github/workflows/*.yml
  • GitLab CI: .gitlab-ci.yml
  • CircleCI: .circleci/config.yml
  • Travis CI: .travis.yml
  • Jenkins: Jenkinsfile
  • Generic: Makefile, Taskfile.yml, npm scripts for build/test/lint

Result:

  • PASS: CI pipeline runs tests and linting automatically
  • WARN: CI exists but only runs tests (no lint, no type check)
  • FAIL: No CI/CD configuration

O2: Branch Protection / PR Process

Check: Is there evidence of a code review process?

Look for:

  • CODEOWNERS file
  • Branch protection rules (check via GitHub API if available)
  • PR templates: .github/pull_request_template.md
  • Contributing guide mentioning PR process

Result:

  • PASS: CODEOWNERS + PR template + contributing guide
  • WARN: Some review process artifacts present
  • FAIL: No code review process artifacts

O3: Container / Deployment Configuration

Check: Is deployment reproducible?

Look for:

  • Dockerfile with good practices (multi-stage build, non-root user, pinned base image)
  • docker-compose.yml for local development
  • Deployment manifests (Kubernetes, Terraform, CloudFormation)
  • Infrastructure as Code

Result:

  • PASS: Reproducible deployment configuration present
  • WARN: Dockerfile exists but with issues (root user, latest tag)
  • FAIL: No deployment configuration
  • N/A: Library/package (deployment is via package registry)

Category 5: Code Hygiene (Weight: 10%)

H1: .gitignore Is Correct

Check: Does .gitignore cover all standard exclusions for the project type?

Node.js must exclude: node_modules/, dist/, .env, *.log, coverage/ Python must exclude: __pycache__/, *.pyc, .venv/, *.egg-info/, .env, dist/ Go must exclude: Binary outputs, .env, vendor/ (if not vendoring) Rust must exclude: target/, .env

Result:

  • PASS: .gitignore covers all standard patterns for the project type
  • WARN: .gitignore exists but missing patterns
  • FAIL: No .gitignore

H2: No Large Binary Files

Check: Are there large binary files committed to the repository?

Flag: Files over 1MB that are not documentation images. Especially: .zip, .tar.gz, .jar, .exe, .dll, .so, compiled binaries, database files, media files.

Result:

  • PASS: No large binaries in tracked files
  • WARN: Some binary files present (under 5MB total)
  • FAIL: Large binaries committed (use Git LFS or artifact storage)

H3: Consistent Code Style

Check: Is the codebase consistently formatted?

Look for:

  • .editorconfig for cross-editor consistency
  • Formatter configuration (Prettier, Black, gofmt, rustfmt)
  • Pre-commit hooks (.husky/, .pre-commit-config.yaml)

Result:

  • PASS: Formatter configured + pre-commit hooks enforce it
  • WARN: Formatter configured but no enforcement via hooks
  • FAIL: No formatting configuration

Scoring System

Point Calculation

Each check result earns points:

  • PASS = 100 points
  • WARN = 50 points
  • FAIL = 0 points
  • N/A = excluded from calculation

Category Scores

Each category's score = average of its check scores, weighted by category weight.

Overall Score and Grade

GradeScore RangeDescription
A90-100Excellent. Production-ready, well-maintained
B75-89Good. Minor improvements needed
C60-74Acceptable. Several gaps to address
D40-59Poor. Significant issues, not production-ready
F0-39Failing. Major work needed across categories

Grade Caps

  • Any Critical security finding (secrets in repo) caps grade at D
  • No tests at all caps grade at C
  • No README caps grade at C
  • No .gitignore caps grade at D

Output Format

## Project Health Report

**Project:** [name]
**Type:** [Node.js web app / Python library / Go microservice / etc.]
**Date:** [date]
**Guardian:** sovereign-project-guardian v1.0.0

### Overall Grade: [A-F] ([score]/100)

### Category Breakdown

| Category | Score | Checks Passed | Checks Failed |
|----------|-------|---------------|---------------|
| Security (30%) | XX/100 | X | X |
| Quality (25%) | XX/100 | X | X |
| Documentation (20%) | XX/100 | X | X |
| CI/CD & Ops (15%) | XX/100 | X | X |
| Code Hygiene (10%) | XX/100 | X | X |

### Detailed Findings

#### Security
- [PASS] S1: No secrets in repository
- [FAIL] S2: .env files not in .gitignore
  - Action: Add `.env*` to `.gitignore`
...

#### Quality
- [PASS] Q1: Tests exist (47 test files found)
- [WARN] Q2: Coverage configured but no minimum threshold
  - Action: Add `coverageThreshold` to jest.config.js
...

### Priority Action Plan

1. [CRITICAL] Add .env to .gitignore and remove from history
2. [HIGH] Configure test coverage thresholds (aim for 80%)
3. [MEDIUM] Add CHANGELOG.md
4. [LOW] Set up pre-commit hooks for formatting

Project Type Detection

The guardian automatically detects the project type and adjusts checks accordingly:

IndicatorProject TypeAdjusted Checks
package.json + src/ + framework depNode.js Web AppSecurity headers check applies
package.json + index.js/d.ts + no frameworkNode.js LibrarySkip deployment checks
pyproject.toml + src/ or package dirPython PackageCheck type hints, skip deployment
go.mod + cmd/Go ServiceCheck for race condition testing
go.mod + no cmd/Go LibrarySkip deployment checks
Cargo.toml + src/main.rsRust BinaryCheck unsafe usage
Cargo.toml + src/lib.rsRust LibraryCheck documentation, skip deployment

Installation

clawhub install sovereign-project-guardian

Files

FileDescription
SKILL.mdThis file -- complete evaluation methodology
EXAMPLES.mdBefore/after: taking a project from F to A
README.mdQuick start and overview

License

MIT

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

展示第三方安全扫描或审计结果

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

平台分布

OpenClaw

91.61%
按下载量换算5,181

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills