经 AI Skill Hub 精选评估,NGINX Markdown 获评「强烈推荐」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 8.0 分,适合有一定技术背景的用户使用。
为AI代理提供Markdown内容的NGINX模块
NGINX Markdown 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
为AI代理提供Markdown内容的NGINX模块
NGINX Markdown 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 克隆仓库 git clone https://github.com/cnkang/nginx-markdown-for-agents cd nginx-markdown-for-agents # 查看安装说明 cat README.md # 按 README 完成环境依赖安装后即可使用
# 查看帮助 nginx-markdown-for-agents --help # 基本运行 nginx-markdown-for-agents [options] <input> # 详细使用说明请查阅文档 # https://github.com/cnkang/nginx-markdown-for-agents
# nginx-markdown-for-agents 配置说明 # 查看配置选项 nginx-markdown-for-agents --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export NGINX_MARKDOWN_FOR_AGENTS_CONFIG="/path/to/config.yml"
English | Simplified Chinese
Add a machine-friendly Markdown variant to the HTML pages you already serve through NGINX.
HTML in. Markdown out. When the client asks for it, or when you decide to serve it.
Clients that send Accept: text/markdown get Markdown. Browsers and normal clients keep getting the original HTML. You can also target specific bots by User-Agent — NGINX rewrites the Accept header for matching crawlers so they receive Markdown automatically, even if they never ask for it. You do not need to rewrite your application, build a parallel API, or run a scraper beside your site.
This is a practical way to make existing sites easier for agents to consume while keeping deployment, caching, and rollback in the NGINX layer your team already operates.
Inspired by Cloudflare's Markdown for Agents. This project brings the same operational idea to NGINX deployments you already control, closer to the origin server where you have more control over content semantics.
v0.7.0 is a correctness, distribution, and operability release:
markdown_decompress_max_size limits decompressed output independently, preventing zip-bomb attacks (error code 9: DecompressionBudgetExceeded)text/markdown and text/html (with §12.4.2 quality value semantics) determines conversion eligibilitymarkdown_parse_timeout (default 30s) and markdown_parser_budget (default 64m) prevent runaway parsing (error codes 10, 11)markdown.loadModule/nginx-markdown/diagnostics endpoint exposes config snapshot, recent decisions, and metricsAdditional changes:
curl -sSL https://raw.githubusercontent.com/cnkang/nginx-markdown-for-agents/main/tools/install.sh | sudo bash
sudo nginx -t && sudo nginx -s reload
The install script auto-detects the local NGINX version, downloads the matching module artifact, and wires up load_module and markdown_filter on — no manual configuration editing required. It also enforces SHA-256 artifact integrity checks by default.
For alternative installation methods (source builds, Docker, custom NGINX builds), troubleshooting, and detailed instructions, see the Installation Guide.
For macOS package-manager installation through the project Homebrew tap (release-tag artifact):
brew tap cnkang/nginx-markdown
brew install cnkang/nginx-markdown/nginx-markdown-module
Tap publication and macOS post-release verification workflows are documented in docs/guides/HOMEBREW_TAP_RELEASE.md.
make test
Three steps are enough for a first trial:
make test-nginx-unit
make test-nginx-integration make test-e2e-rust make test-e2e make test-rust-fuzz-smoke
`make test-nginx-integration` and `make test-e2e` require a real `nginx` runtime. If `nginx` is not on `PATH`, use `NGINX_BIN=/absolute/path/to/nginx`.
See [docs/testing/README.md](docs/testing/README.md) and [docs/testing/E2E_TESTS.md](docs/testing/E2E_TESTS.md) for integration, E2E, and performance-oriented test references.
If you are changing repo contracts, docs validators, or agent workflow rules,
run the harness checks as well:
bash
If you are changing runtime behavior, use the existing test commands.
If you are changing repo contracts, validation tooling, or agent-facing docs, add the harness workflow to your default path:
1. Update repo-owned truth first: AGENTS.md, docs/harness/, tools/harness/, Makefile, CI wiring 2. Run make harness-check 3. Run make harness-check-full before closing broader docs or release-gate work
Cloudflare's Markdown for Agents converts already-rendered HTML at the CDN edge. That approach is effective for lowering adoption friction — site operators can enable it without touching their origin infrastructure.
This project serves text/markdown closer to the origin server, typically at the reverse-proxy layer where NGINX sits in front of your application. The practical differences:
Neither approach is universally better. Edge-layer conversion is a good fit when you want zero-touch enablement across many sites. Origin-near conversion is a better fit when you want tighter control over what gets converted, how it gets converted, and where the conversion runs.
高质量的AI工作流Markdown内容服务
该工具使用 BSD-2-Clause 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ BSD 2-Clause — 极度宽松,几乎可以任意使用,仅需保留版权声明。
AI Skill Hub 点评:NGINX Markdown 的核心功能完整,质量优秀。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | nginx-markdown-for-agents |
| 原始描述 | 开源AI工作流:Self-hostable NGINX module that serves Markdown to AI agents via HTTP content ne。⭐22 · C |
| Topics | ai-agentscontent-negotiationhtml-to-markdown |
| GitHub | https://github.com/cnkang/nginx-markdown-for-agents |
| License | BSD-2-Clause |
| 语言 | C |
收录时间:2026-05-29 · 更新时间:2026-05-30 · License:BSD-2-Clause · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端