CLAUDE.mdA

CLAUDE.md from tw2066/api-docs is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add tw2066/api-docs/CLAUDE.md@git:20261031.a21cbe0

Pins git:20261031.a21cbe0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
CLAUDE.md file
Repository
tw2066/api-docs
Path
CLAUDE.md
Versions recorded
4
Latest version
git:20261031.a21cbe0, committed Oct 31, 2026
First version recorded
Jul 23, 2026
Size
5,339 bytes
Repository stars
50
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## 项目概述

`tangwei/apidocs` — 基于 Hyperf 的 Swagger/OpenAPI 3.x 文档自动生成组件。通过 PHP 8 Attributes 扫描控制器路由,在应用启动时生成 OpenAPI 描述文件,并内置多种文档 UI(Swagger UI、Knife4j、Redoc、RapiDoc、Scalar)及 llms.txt 输出。支持 Swoole / Swow / phar 部署。

## 常用命令

```bash
composer test                  # 运行全部测试(phpunit -c phpunit.xml)
vendor/bin/phpunit -c phpunit.xml --filter testMethodName tests/SwaggerPathsTest.php   # 运行单个测试
composer analyse               # PHPStan 静态分析(-l 0,仅 src/)
composer cs-fix                # php-cs-fixer 格式化 src 和 tests
```

CI 矩阵覆盖 PHP 8.1/8.2/8.3/8.4 + Hyperf 3.1,以及 PHP 8.2/8.3/8.4 + Hyperf 3.2(pin 对应 `hyperf/di` + `tangwei/dto:dev-master`)。本包通过 `tangwei/dto ~4.0.0` 传递依赖 Hyperf 3.1/3.2。

## 架构核心

### 启动期生成流水线(理解本组件的关键)

OpenAPI 文件**不是请求时生成的**,而是在应用启动时由事件监听器驱动:

1. `BootAppRouteListener`(BootApplication 事件)— 在第一个 HTTP server 的路由上注册 `{prefix_url}` 路由组(UI 页面、`/webjars/*`、`{httpName}.json/yaml`、llms.txt 等),并把文档访问 URL 写入静态属性供 `AfterWorkerStartListener` 打印。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add tw2066/api-docs/CLAUDE.md@sha256:c632c35c87013ba6

The line at the top of this page pins the label git:20261031.a21cbe0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_bsmwlhugm7w4dme5.svg)](https://markdownregistry.com/a/art_bsmwlhugm7w4dme5)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 4 versions of this file, between Jul 23, 2026 and Oct 31, 2026, about one every 34 days.

versioncommittedcommitsizeaudit
git:20261031.a21cbe0 latest2026-10-31 a21cbe0 5,339 BA view · diff
git:20261031.88700a02026-10-31 88700a0 5,337 BA view · diff
git:20260915.e0c123f2026-09-15 e0c123f 5,311 BA view · diff
git:20260723.98764562026-07-23 9876456 5,138 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (5339 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

tw2066/api-docs · 50 stars · license MIT · pushed 2026-11-05 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_bsmwlhugm7w4dme5
GET https://markdownregistry.com/api/v1/resolve?ref=tw2066/api-docs/CLAUDE.md
GET https://markdownregistry.com/api/v1/blob/c632c35c87013ba6be465b550a39008295eda8b2a1cb6235aa7079836ae79af0

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.

More from tw2066/api-docs

api-docs SKILL.md skill
tw2066/api-docs · publish/skills/api-docs/SKILL.md · tangwei/apidocs 组件(Hyperf Swagger/OpenAPI 文档自动生成)使用指南。内容包括注解编写(#[Api]、#[ApiOperation]、#[ApiResponse]、#[ApiModelProperty]…
git:20261031.a21cbe0 · audit B · 50 stars

Every file in tw2066/api-docs

Other files named CLAUDE.md

CLAUDE.md CLAUDE.md file
affaan-m/ecc · CLAUDE.md
git:20261020.9471ef4 · audit A · 299,696 stars
CLAUDE.md CLAUDE.md file
firecrawl/firecrawl · CLAUDE.md
git:20261008.5a75dca · audit A · 199,595 stars
CLAUDE.md CLAUDE.md file
garrytan/gstack · CLAUDE.md
git:20261107.ef99eb5 · audit A · 140,694 stars
CLAUDE.md CLAUDE.md file
juliusbrussee/caveman · CLAUDE.md
git:20261106.af560e1 · audit B · 118,366 stars
CLAUDE.md CLAUDE.md file
addyosmani/agent-skills · CLAUDE.md
git:20260720.8fd2081 · audit A · 113,383 stars
CLAUDE.md CLAUDE.md file
nexu-io/open-design · CLAUDE.md
git:20260430.9b57c22 · audit B · 106,541 stars
CLAUDE.md CLAUDE.md file
pbakaus/impeccable · CLAUDE.md
git:20261105.71dfd50 · audit A · 106,186 stars
CLAUDE.md CLAUDE.md file
debpalash/voicestudio · CLAUDE.md
git:20261104.c2998f6 · audit A · 102,675 stars

Browse by kind, by grade A, or by owner.