ai-attestation

作者 Korext已验证

Track AI generated code in your repository. Open standard. Detects 19 AI coding tools. CC0 spec.

153
Stars
12
Forks
JavaScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Korext/ai-attestation

快速入门

使用 ai-attestation 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

AI Attestation

An open standard for tracking AI generated code in your repository.

AI Attestation License: Apache-2.0 Spec: CC0-1.0 npm

AI Attestation is a machine readable YAML file placed in your repository root that tracks which AI coding tools were used, how much code they generated, and whether that code has been governance scanned.

Why

Enterprises, open source maintainers, and compliance teams increasingly need to answer:

  • How much of this codebase was written by AI?
  • Which AI tools were used?
  • Has the AI generated code been reviewed or scanned?

AI Attestation provides a single, standardized file that answers all three.

Quick Start

npx @korext/ai-attestation init

This will:

  1. Scan your git history for AI tool signatures
  2. Create .ai-attestation.yaml in your repo root
  3. Install a post-commit hook to keep it updated

That's it. The file updates automatically on every commit.

What It Detects

AI Attestation identifies tools through publicly observable signals:

MethodDescriptionReliability
Co-author trailerCo-authored-by: Copilot <copilot@github.com>✅ High
Commit message patternGenerated by Copilot, via Cursor⚠️ Medium
Metadata header// @cursor-generated⚠️ Medium
Git configcopilot.enabled = trueℹ️ Low

Supported Tools

ToolIdentifierDetection
GitHub CopilotcopilotCo-author, commit message, config
CursorcursorCo-author, commit message
Claude Codeclaude-codeCo-author, commit message
WindsurfwindsurfCommit message, file header
CodeiumcodeiumCommit message, file header
AideraiderCo-author, commit message
DevindevinCo-author, commit message
OpenHandsopenhandsCo-author, commit message
Amazon Q Developeramazon-qCommit message, file header
OpenAI Codex CLIcodex-cliCommit message, file header
Gemini Code Assistgemini-code-assistCommit message
JetBrains AIjetbrains-aiCommit message, file header
Sourcegraph Codysourcegraph-codyCo-author, commit message
TabninetabnineCommit message, file header
Replit AIreplit-aiCommit message, file header
ClineclineCo-author, commit message
ContinuecontinueCommit message, config
GPT Engineergpt-engineerCo-author, commit message
BoltboltCommit message, file header

Missing a tool? Add it

The File

# AI Attestation
# https://oss.korext.com/ai-attestation

schema: https://oss.korext.com/ai-attestation/schema
version: "1.0"

repo:
  owner: acme
  name: payments-service
  url: https://github.com/acme/payments-service

generated: "2026-04-15T12:00:00Z"

range:
  from: "2025-01-01T00:00:00Z"
  to: "2026-04-15T12:00:00Z"
  commits: 1247

ai:
  assisted_commits: 438
  percentage: 35.1
  tools:
    - name: GitHub Copilot
      identifier: copilot
      first_seen: "2025-09-01"
      last_seen: "2026-04-15"
      commit_count: 312

    - name: Cursor
      identifier: cursor
      first_seen: "2026-01-15"
      last_seen: "2026-04-14"
      commit_count: 89

  detection_methods:
    - co-author-trailer
    - commit-message-pattern

See more examples in examples/.

CLI Commands

# Initialize (scan + create file + install hook)
ai-attestation init

# Re-scan and update
ai-attestation scan

# Print attestation summary
ai-attestation report

# Generate badge markdown
ai-attestation badge

# Manage git hooks
ai-attestation hook install
ai-attestation hook remove
ai-attestation hook install --type pre-commit

GitHub Action

Enforce AI code policies in CI:

# .github/workflows/ai-attestation.yml
name: AI Attestation
on: [push, pull_request]

jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: korext/ai-attestation@v1
        with:
          minimum-governance-score: 80
          block-unscanned: true
          mandatory-packs: security

Action Inputs

InputDefaultDescription
fail-on-missingtrueFail if .ai-attestation.yaml is missing
minimum-governance-scoreMinimum score to pass (0-100)
block-unscannedBlock AI code without governance scan
require-reviewRequire human review for AI code
mandatory-packsComma-separated required governance packs
attestation-path.ai-attestation.yamlPath to attestation file

Action Outputs

OutputDescription
resultPASS, WARN, or FAIL
ai-percentagePercentage of AI assisted commits
governance-scoreCurrent governance score
tools-detectedComma separated list of tools
summaryHuman readable summary

Governance

The governance section is designed to be populated by any governance engine. When configured, a governance engine reads the attestation file, scans the AI generated code, and writes its results back:

governance:
  engine: KOREXT
  last_scan: "2026-04-15T10:00:00Z"
  result: PASS
  score: 94
  packs:
    - security
    - modernization
  findings:
    critical: 0
    high: 1
    medium: 3
    low: 7

The governance section is engine-agnostic. Any tool can populate it.

Privacy

AI Attestation processes git metadata only:

  • Commit messages
  • Author names and emails
  • Commit dates

It never reads source code. All processing happens locally. No network calls. No telemetry. The output file contains only aggregate counts.

Specification

The full specification is available at SPEC.md. The JSON Schema is available at schema.json.

Both are released under CC0 1.0 Universal (public domain).

Badge

Add a badge to your README after running ai-attestation init:

ai-attestation badge

This outputs markdown you can paste into your README:

[![AI Attestation](https://oss.korext.com/api/badge/owner/repo)](https://oss.korext.com/ai-attestation/report/owner/repo)

Contributing

See CONTRIBUTING.md for guidelines on adding new tools, reporting false positives, and proposing spec changes.

License

Related Projects

ProjectDescription
AI License NoticeDeclare AI provenance in open source projects
Supply Chain AttestationAI provenance across your dependency tree
AI Incident RegistryPublic registry for AI code failures

Built by Korext | oss.korext.com/ai-attestation

常见问题

What is ai-attestation?

ai-attestation is an open-source testing skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Korext. Track AI generated code in your repository. Open standard. Detects 19 AI coding tools. CC0 spec. It has 153 GitHub stars.

Is ai-attestation safe to use?

Yes. ai-attestation passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install ai-attestation?

Clone the repository with "git clone https://github.com/Korext/ai-attestation" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is ai-attestation written in?

ai-attestation is primarily written in JavaScript. It is open-source under Korext on GitHub, so you can review or fork the full source.

Are there alternatives to ai-attestation?

Yes. SkillsLLM lists many other Testing skills you can browse and compare side by side. Open the Testing category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh ai-attestation against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

Claude-BugHunter

by elementalsouls

A Claude Code skill bundle for bug hunting and external red-team work - 82 skills, 15 slash commands, 681 disclosed-report patterns curated across 24 core vulnerability classes, plus enterprise identity + infrastructure attack matrices.

3,740578Python
Testing
查看详情

Rapid-MLX

by raullenchai

The fastest local AI engine for Apple Silicon. 4.2x faster than Ollama, 0.08s cached TTFT, 100% tool calling. 17 tool parsers, prompt cache, reasoning separation, cloud routing. Drop-in OpenAI replacement. Works with Claude Code, Cursor, Aider.

3,530401Python
Testing
查看详情

playwright-skill

by lackeyjb

Claude Code Skill for browser automation with Playwright. Model-invoked - Claude autonomously writes and executes custom automation for testing and validation.

3,014229JavaScript
Testing
查看详情

src-hunter-skill

by MyuriKanao

实战 SRC / 众测 / Bug bounty 漏洞挖掘 Claude Code skill — 19 个攻击类 playbook、305 个结构化 payload、263 个 WAF/EDR 绕过、2887 份 HackerOne 真实案例、88,636 WooYun 案例统计

60187
Testing
查看详情

100 field-tested Claude Code recipes for knowledge workers — prompts, steps, and 6 installable graded skills.

38048
Testing
查看详情

Claude Code Skill that turns any idea into a cinematic, model-ready video prompt — Sora · Kling · Veo · Seedance. 21 genre templates, 5-stage structure, eval-tested. Distilled from the AI short Hollywood director PJ Ace called "one of the best short films I've seen in years."

36869Python
Testing
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情