Render agent guideline markdown files across platforms
Project description
Agent MD Manager
一个用来批量渲染 AGENT 操作规约的简单构建脚本。通过外部 TOML 配置文件定义多套 CLI、目标平台和输出路径,脚本会把 template.j2 渲染成对应的 Markdown 文档。
快速开始
- 安装依赖:
uv sync或使用你偏好的方式安装jinja2。 - 复制并调整
config.toml,把windows_base、wsl_base和tools列表改成自己的路径。 - 运行
uv run build.py(默认真实写入文件)。如果只想预览结果,带上-s/--stdout。
作为 uvx 工具
项目已提供 project.scripts 入口 agent-md-manager,发布到 PyPI(或使用 --from <repo-url>)后即可直接运行:
uvx --from isyuah/agent-md-manager agent-md-manager -c config.toml
常用参数保持一致,可搭配 -s、-l 等选项。若你通过 pip install agent-md-manager 安装,也可以直接执行 agent-md-manager ...。
配置文件说明
config.toml 字段:
windows_base/wsl_base:各平台的家目录根路径,可为空(为空时跳过该平台)。template_file:模板文件路径,默认template.j2。tools:数组,每个元素包含id(命令行参数用)、name(模板中的cli_name)、folder、file_name、platforms(如["win", "wsl"])。
使用命令
uv run build.py或agent-md-manager:按照配置写入所有工具。agent-md-manager codex qwen:仅同步指定工具。agent-md-manager -s:Dry-run,只在终端输出预览。agent-md-manager -l:列出所有工具及平台。agent-md-manager -c other.toml:使用其他配置文件。
约定
- 默认执行真实写入,Dry-run 需要显式传入
-s。 - 渲染模板时会自动注入
cli_name、platform、is_win、is_wsl等上下文。 - 当前项目不包含单元测试,后续可按需补充。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent_md_manager-0.1.0.tar.gz.
File metadata
- Download URL: agent_md_manager-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8919da8f3027f76e167b93838f1665bc6fdbcd615a50ec17dec135ea670b2f0
|
|
| MD5 |
846bb4df0548d7475dac27a904da4d37
|
|
| BLAKE2b-256 |
a3854b88e626a9e9d1d3b38cdffa01fffabdfa758cb799e0ade3d673a7d7cc4e
|
File details
Details for the file agent_md_manager-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agent_md_manager-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f0c426a87cf65434500a7be11ca040fefb64ca2248323c0660523e7b02f7b69
|
|
| MD5 |
2a825cd960a7663debec3e42f7b7765f
|
|
| BLAKE2b-256 |
92fd89b135e30418cf8184cf584d3c00d4955413bfc12fc39fb1081b8f595bf5
|