jiangzhe/doradb/tasks
Claude Code and agent skill by jiangzhe/doradb
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install jiangzhe/doradb/tasksSKILL.md
Task: Support Metadata-Derived Labels in Issue Skill
Summary
Add optional metadata-derived labeling to tools/issue.rs create-issue-from-doc so issue labels can come from planning documents when --labels is omitted, while preserving explicit CLI override behavior and enforcing a strict repository label taxonomy.
Context
Current create-issue-from-doc requires --labels and fails if labels are not provided. It only validates label shape at a coarse level (type:* required, auto-add priority:medium), and does not validate an allowed-label set.
Backlog 000015 requests optional metadata-derived labels from task/RFC docs with deterministic conflict behavior and explicit override support.
Source Backlogs:
docs/backlogs/000015-issue-skill-auto-derived-labels-from-doc-metadata.md
Goals
- Support issue-label derivation from planning doc metadata when
--labelsis omitted. - Keep explicit CLI labels as deterministic overrides of metadata-derived labels.
- Enforce strict allowed labels:
- type:
type:doc,type:perf,type:feature,type:question,type:bug,type:chore,type:epic,type:task - priority:
priority:low,priority:medium,priority:high,priority:critical - special:
codex
- Keep command behavior non-interactive and deterministic.
- Update workflow/docs/templates so metadata input format is clear and consistent.
Non-Goals
- Changing GitHub issue lifecycle semantics beyond label derivation/validation in create flow.
- Introducing new issue fields outside labels.
- Retrofitting all historical task/RFC documents with new metadata entries.
- Implementing broader label inference heuristics from free-form document text.
Unsafe Considerations (If Applicable)
Not applicable. The task changes repository tooling and docs only; no storage-engine unsafe code is touched.
Reference:
docs/unsafe-usage-principles.mddocs/process/unsafe-review-checklist.md
Plan
- Extend label input model in
tools/issue.rs create-issue-from-doc.
- Make
--labelsoptional. - Parse optional planning-doc metadata block:
Issue Labels:- <label>- Support this for both task docs and RFC docs.
- Implement deterministic merge/override rules.
- Inputs: metadata labels + CLI labels.
type:*andpriority:*:- If provided by CLI, CLI value wins.
- Else use metadata value when present.
- Else apply defaults:
- task doc:
type:task - RFC doc:
type:epic - priority default:
priority:medium codex: union from both sources and deduplicate.
- Enforce strict taxonomy validation in creation flow.
- Reject unknown labels.
- Reject multiple type labels after merge.
- Reject multiple priority labels after merge.
- Emit deterministic errors and stable final label ordering.
- Update docs and command usage.
- Update
tools/issue.rsusage/help text and JSON error messages where needed. - Update
.codex/skills/issue/SKILL.mdexamples to cover metadata-derived mode. - Update
docs/process/issue-tracking.mdtaxonomy and metadata-derived label guidance. - Add optional
Issue Labels:guidance to: docs/tasks/000000-template.mddocs/rfcs/0000-template.md
Implementation Notes
- Implemented optional metadata-derived labels in
tools/issue.rs create-issue-from-doc.
--labelsis now optional.- Added planning-doc metadata parsing for an
Issue Labels:block with bullet entries (- <label>). - Added deterministic merge behavior:
- CLI
type:*/priority:*overrides metadata values. codexis unioned across sources.- Defaults when unset in both sources:
- task docs:
type:task - RFC docs:
type:epic - priority:
priority:medium
- Added strict label taxonomy enforcement in
tools/issue.rs.
- Allowed
type:*:type:doc,type:perf,type:feature,type:question,type:bug,type:chore,type:epic,type:task. - Allowed
priority:*:priority:low,priority:medium,priority:high,priority:critical. - Allowed special label:
codex. - Rejected unknown labels and multiple type/priority labels per source (
cliormetadata) with deterministic error messages.
- Updated issue workflow documentation to match implementation.
.codex/skills/issue/SKILL.md.codex/skills/issue/references/workflow.mddocs/process/issue-tracking.mddocs/tasks/000000-template.md(optionalIssue Labels:guidance)docs/rfcs/0000-template.md(optionalIssue Labels:guidance)
- Verification performed.
tools/issue.rs --help(pass)tools/issue.rs create-issue-from-doc --help(pass)tools/issue.rs validate-doc-path --path docs/tasks/000045-support-metadata-derived-labels-in-issue-skill.md(pass)- Negative-path checks (all expected failures before
gh issue create): - invalid CLI type label (
type:maintenance) rejected - unknown CLI label (
foo) rejected - unknown metadata label rejected
- malformed metadata entry (missing list marker) rejected
- duplicate metadata type labels rejected
- Script/toolchain compile smoke:
cargo +nightly test -Zscript tools/issue.rs -- --nocapture(pass; no dedicated tests executed fortools/issue.rs)
- Source backlog resolution.
- Ran
tools/task.rs resolve-task-backlogs --task docs/tasks/000045-support-metadata-derived-labels-in-issue-skill.md. - Source backlog moved to:
docs/backlogs/closed/000015-issue-skill-auto-derived-labels-from-doc-metadata.md
Impacts
tools/issue.rs.codex/skills/issue/SKILL.mddocs/process/issue-tracking.mddocs/tasks/000000-template.mddocs/rfcs/0000-template.md
Test Cases
create-issue-from-docsucceeds with CLI labels only and valid taxonomy labels.create-issue-from-docsucceeds with metadata labels only when--labelsis omitted.- CLI + metadata merge respects deterministic precedence for
type:*andpriority:*. codexis preserved when provided by either CLI or metadata.- Unknown label is rejected with a clear error.
- Multiple type labels are rejected.
- Multiple priority labels are rejected.
- Missing type in both sources defaults by doc type (
task -> type:task,rfc -> type:epic). - Missing priority in both sources defaults to
priority:medium. - Path validation remains unchanged for supported planning doc patterns.
Open Questions
None for this task scope.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/tasks/000045-support-metadata-derived-labels-in-issue-skill.md
Popularity
- Repository stars
- 119
- Repository forks
- 3
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jiangzhe/doradb/tasks)