一键导入
agent-docs-publish
A Gradle plugin that packages library documentation into an agent-docs sidecar zip for distribution alongside Maven artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
A Gradle plugin that packages library documentation into an agent-docs sidecar zip for distribution alongside Maven artifacts.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | agent-docs-publish |
| description | A Gradle plugin that packages library documentation into an agent-docs sidecar zip for distribution alongside Maven artifacts. |
Plugin ID: io.github.duckasteroid.agent-docs.publish
Validates and packages a docs directory into a sidecar zip artifact with classifier agent-docs. When maven-publish is also applied, the zip is attached to every MavenPublication automatically.
validateAgentDocs — validates the docs directory against the Agent Skills specpackageAgentDocs — packages docs into build/agent-docs/<project-name>-agent-docs.zip; runs validation first and is wired to assembleinstallAgentDocsPublishSkill — writes this file into the local agent skills folderCreate docs under src/agent-docs/ (default):
src/agent-docs/
SKILL.md ← required; must contain YAML frontmatter with `description`
references/ ← optional reference docs
assets/ ← optional assets
scripts/ ← optional scripts
SKILL.md must open with YAML frontmatter:
---
description: Short description of this library for agents.
---
Do not include a name: field — the resolver overwrites names from GAV coordinates at extraction time.
agentDocs {
docsDirectory = file('src/agent-docs') // default
disabledValidationRules = ['skill-name'] // optional; list of rule IDs to skip
}
Disable rules from the CLI: ./gradlew validateAgentDocs -PagentDocs.disabledValidationRules=skill-name,skill-compatibility
| Rule ID | What it checks |
|---|---|
docs-directory-exists | Docs directory is present |
skill-entrypoint | Exactly one root-level SKILL.md (case-insensitive) |
standard-directories | scripts, references, assets are directories if present |
skill-frontmatter-structure | SKILL.md opens with valid YAML frontmatter delimiters |
skill-description | Non-empty description with valid length |
skill-name | Warning-only: publisher name is ignored at packaging time |
skill-compatibility | Optional compatibility frontmatter field has valid length |