tapd-ai-cli: Instructions file for Codex

AGENTS.md

tapd-ai-cli AGENTS.md is an instructions file for Codex, OpenCode from studyzy/tapd-ai-cli. It costs 1,859 tokens per session, scanned A, original, Apache-2.0.

Instructions for an AI-focused Go command-line tool that connects to TAPD, Tencent’s platform for managing software projects and agile work. It covers authentication, building, testing, formatting, and linting.

In plain words
What is it for?
Building and testing the CLI, accessing TAPD through its API, converting between HTML and Markdown, and checking Go code quality.
Why use it?
It tells an agent how to work on the tool and how to keep its output concise for other agents.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is studyzy/tapd-ai-cli's own configuration. It tells Codex and OpenCode how to work on tapd-ai-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tapd-ai-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to studyzy/tapd-ai-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/studyzy/tapd-ai-cli/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/studyzy/tapd-ai-cli

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tapd-ai-cli AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/studyzy/tapd-ai-cli/agents-md/github.svg)](https://agentmods.dev/instructions/studyzy/tapd-ai-cli/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/studyzy/tapd-ai-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/studyzy/tapd-ai-cli/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tapd-ai-cli AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/studyzy/tapd-ai-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/studyzy/tapd-ai-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,859 This file is loaded in full into every session.
When invoked 1,859 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01859 $0.01859
Opus 5.5 $0.00744 $0.00744
Sonnet 5.5 $0.00372 $0.00372
Haiku 4.5 $0.00186 $0.00186

Measured 2mo ago against content hash a558642eb516, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tapd-ai-cli AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

本文件为 AI 编码助手在此仓库中工作时提供指导。

项目简介

tapd-ai-cli 是一个 Go CLI 工具,通过 TAPD(腾讯敏捷产品研发平台)Open API 与 TAPD 平台交互。目标用户是 AI Agent(Claude Code、GPT-4o 等),而非人类用户。所有输出均针对最小 token 消耗进行优化。

技术栈

  • Go 1.24+,CLI 框架:spf13/cobra
  • SDK:github.com/studyzy/tapd-sdk-go(独立仓库,仅依赖标准库)
  • HTML→Markdown:github.com/JohannesKaufmann/html-to-markdown/v2(CLI 层,SDK 返回原始 HTML)
  • Markdown→HTML:github.com/gomarkdown/markdown(create/update 时将用户输入转为 TAPD 所需的 HTML)
  • 认证:TAPD_ACCESS_TOKEN(Bearer,推荐)或 TAPD_API_USER/TAPD_API_PASSWORD(Basic Auth)
  • 许可证:Apache 2.0

构建与开发命令

# 构建(版本号从 git tag 注入)
make build          # go build -ldflags "-X ...Version=$(git describe)" -o tapd ./cmd/tapd/
make build-cross    # 交叉编译,需设 GOOS/GOARCH

# 安装到 $GOPATH/bin
make install

# 测试
make test           # go test -race ./...
go test ./internal/cmd -run TestStoryList   # 运行单个测试
make test-integration                       # go test ./... -v -run "TestIntegration" -count=1

# 覆盖率(目标 >= 60%)
make coverage       # test-coverage + go tool cover -func

# 代码格式化与检查
make fmt            # gofmt -w . && goimports -w .
make lint           # go vet ./... && goimports -l .

# 安装开发工具
make tools          # go install goimports

# 清理
make clean

架构

目录结构

cmd/tapd/           # 入口 main.go
internal/
  cmd/              # Cobra 命令定义(每个资源一个文件),消费 SDK
    root.go         # 根命令、全局标志、客户端初始化、通用 helpers
    story.go        # 需求 CRUD 命令(典型命令模板)
    bug.go          # 缺陷管理
    task.go         # 任务管理
    launch.go       # 发布评审
    help.go         # --help 输出紧凑参考卡生成逻辑
    markdown.go     # htmlToMarkdown / markdownToHTML 双向转换
    id_expand.go    # 短 ID → TAPD 长 ID 自动展开
    url.go          # 从 TAPD URL 解析条目类型并查询详情
    ...
  config/           # 凭据管理(CLI flags > env > ./.tapd.json > ~/.tapd.json)
  output/           # JSON/Markdown 输出格式化、退出码常量

SDK 独立仓库:github.com/studyzy/tapd-sdk-go,本地联调可用 go.work(已 gitignore)。

命令树

tapd
├── auth      login
├── workspace list | switch <id> | info
├── story     list | show <id> | create | update <id> | count | todo
├── task      list | show <id> | create | update <id> | count | todo
├── bug       list | show <id> | create | update <id> | count | todo
├── wiki      list | show <id> | create | update
├── iteration list | create | update | count
├── comment   list | add | update | count
├── tcase     list | create | batch-create
├── timesheet list | add | update
├── launch    list | count | create | update <id> | templates | fields | logs
├── workflow  transitions | status-map | last-steps
├── relation  bugs | create
├── url       <tapd-url>
├── skill     init
└── ...       release, attachment, category, custom-field, label, module, user, report 等

全局标志:--workspace-id <id>, --json, --pretty, --no-comments

Read the full file on GitHub · 156 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 156 lines · 1,859 tokens per session scan A a558642eb516

Subscribe to this mod's changes

tapd-ai-cli AGENTS.md is an instructions file published in the GitHub repository studyzy/tapd-ai-cli (61 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 1,859 tokens to every session, about $0.0074 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

tapd-ai-cli AGENTS.md compared with instructions from other repositories

tapd-ai-cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tapd-ai-cli AGENTS.mdstudyzy/tapd-ai-cliInstructions file613mo agoApache-2.0A1,859Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode