ln-301-task-creator by levnikolaevich/claude-code-skills
npx skills add https://github.com/levnikolaevich/claude-code-skills --skill ln-301-task-creator路径说明: 文件路径(
shared/、references/、../ln-*)是相对于技能仓库根目录的。如果在当前工作目录下未找到,请定位此 SKILL.md 文件所在的目录,然后向上返回一级以找到仓库根目录。如果缺少shared/目录,请通过 WebFetch 从https://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}获取文件。
一个根据协调器指令生成任务文档并为实现、重构或测试任务创建 Linear 问题的工作器。
必读: 加载 shared/references/tools_config_guide.md 和
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
shared/references/storage_mode_detection.md提取:task_provider = 任务管理 → 提供者 (linear | file)。
taskType、teamId、Story 数据(包含 AC、技术说明、上下文的 id/标题/描述)。必读: 加载 shared/references/creation_quality_checklist.md §任务创建检查清单,以获取 ln-310 将强制执行的有效性标准。加载 shared/references/destructive_operation_safety.md 以获取破坏性操作关键词和严重性分类。
从任务描述中提取关键词:函数类型、组件名称、领域
扫描代码库:Grep(pattern="[keyword]", path="src/", output_mode="files_with_matches") 以查找类似功能
如果找到类似代码(关键词匹配度 ≥70%):
在任务描述的"实施计划"部分之前添加 ⚠️ DRY 警告 部分:
> [!WARNING]
DRY 检查: 在代码库中检测到类似功能
- 现有代码:src/services/auth/validateToken.ts:15-42
- 相似度:85%(函数名、领域匹配)
- 建议: 在创建新代码前审查现有实现
- 选项 1:重用现有函数(导入并调用)
- 选项 2:使用新参数扩展现有函数
- 选项 3:论证为何需要重新实现(在技术方案中记录)
如果没有重复 → 继续执行,不添加警告
原理:在实施开始前防止代码重复
A{N} ({CATEGORY}) 格式。| taskType | 硬性规则 | 需要验证的内容 |
|---|---|---|
| implementation | 不创建新测试 | 扫描文本中是否有"编写/创建/添加测试"等字样;仅允许更新现有测试 |
| refactoring | 需要回归策略 | 列出问题及其严重性;分 3 个阶段的计划;回归策略(基线/验证/失败);保留功能 |
| test | 需要基于风险的计划 | 覆盖优先级 ≥15 的场景;每个测试都通过有用性标准;不进行框架/库/数据库测试 |
state: "Backlog"。如果未指定,Linear 默认使用团队的默认状态(通常是"Postponed")。⚠️ DRY 警告 部分。对测试任务跳过扫描(无实施代码)。DRY 警告示例:
Example 1: Email validation (HIGH similarity - 90%)
> [!WARNING]
> **DRY 检查:** 检测到类似功能
> - 现有代码:src/utils/validators/email.ts:validateEmail()
> - 相似度:90%(完全相同的函数名 + 领域匹配)
> - **建议:** 重用现有函数(选项 1)
Example 2: User authentication (MEDIUM similarity - 75%)
> [!WARNING]
> **DRY 检查:** 存在部分功能
> - 现有代码:src/services/auth/login.ts:authenticateUser()
> - 相似度:75%(领域匹配,范围不同)
> - **建议:** 审查现有代码,考虑扩展(选项 2)或论证新实现(选项 3)
Example 3: No duplication (skip warning)
- 未找到类似代码 → 继续执行,不添加 DRY 警告
必读: 加载 shared/references/template_loading_pattern.md 以了解模板复制工作流程。
根据 taskType 选择模板:
implementation → task_template_implementation.mdrefactoring → refactoring_task_template.mdtest → test_task_template.md本地副本: docs/templates/*.md(在目标项目中)
shared/references/tools_config_guide.mdshared/references/storage_mode_detection.mdshared/references/kanban_update_algorithm.mdshared/references/template_loading_pattern.mdshared/references/linear_creation_workflow.mdshared/templates/task_template_implementation.md、shared/templates/refactoring_task_template.md、shared/templates/test_task_template.mddocs/templates/*.md(在目标项目中)docs/tasks/kanban_board.md版本: 3.0.0 最后更新: 2025-12-23
每周安装次数
153
仓库
GitHub 星标数
245
首次出现
2026年1月24日
安全审计
安装于
claude-code140
codex138
gemini-cli138
opencode138
cursor136
github-copilot133
Paths: File paths (
shared/,references/,../ln-*) are relative to skills repo root. If not found at CWD, locate this SKILL.md directory and go up one level for repo root. Ifshared/is missing, fetch files via WebFetch fromhttps://raw.githubusercontent.com/levnikolaevich/claude-code-skills/master/skills/{path}.
Worker that generates task documents and creates Linear issues for implementation, refactoring, or test tasks as instructed by orchestrators.
MANDATORY READ: Load shared/references/tools_config_guide.md and shared/references/storage_mode_detection.md
Extract: task_provider = Task Management → Provider (linear | file).
taskType, teamId, Story data (id/title/description with AC, Technical Notes, Context).MANDATORY READ: Load shared/references/creation_quality_checklist.md §Task Creation Checklist for validation criteria that ln-310 will enforce. Load shared/references/destructive_operation_safety.md for destructive operation keywords and severity classification.
Extract keywords: function type, component name, domain from Task description
Scan codebase: Grep(pattern="[keyword]", path="src/", output_mode="files_with_matches") for similar functionality
IF similar code found (≥70% keyword match):
Add ⚠️ DRY Warning section to Task description BEFORE Implementation Plan:
> [!WARNING]
DRY Check: Similar functionality detected in codebase
- Existing: src/services/auth/validateToken.ts:15-42
- Similarity: 85% (function name, domain match)
- Recommendation: Review existing implementation before creating new code
- Option 1: Reuse existing function (import and call)
- Option 2: Extend existing function with new parameters
- Option 3: Justify why reimplementation needed (document in Technical Approach)
→ Proceed without warning
| taskType | Hard rule | What to verify |
|---|---|---|
| implementation | No new test creation | Scan text for "write/create/add tests" etc.; allow only updating existing tests |
| refactoring | Regression strategy required | Issues listed with severity; plan in 3 phases; regression strategy (Baseline/Verify/Failure); preserve functionality |
| test | Risk-based plan required | Priority ≥15 scenarios covered; each test passes Usefulness Criteria; no framework/library/DB tests |
state: "Backlog" when calling create_issue. Linear defaults to team's default status (often "Postponed") if not specified.⚠️ DRY Warning section with 3 options (reuse/extend/justify). Skip scan for test tasks (no implementation code).DRY Warning Examples:
Example 1: Email validation (HIGH similarity - 90%)
> [!WARNING]
> **DRY Check:** Similar functionality detected
> - Existing: src/utils/validators/email.ts:validateEmail()
> - Similarity: 90% (exact function name + domain match)
> - **Recommendation:** REUSE existing function (Option 1)
Example 2: User authentication (MEDIUM similarity - 75%)
> [!WARNING]
> **DRY Check:** Partial functionality exists
> - Existing: src/services/auth/login.ts:authenticateUser()
> - Similarity: 75% (domain match, different scope)
> - **Recommendation:** Review existing code, consider EXTEND (Option 2) or JUSTIFY new implementation (Option 3)
Example 3: No duplication (skip warning)
- No similar code found → Proceed without DRY warning
MANDATORY READ: Load shared/references/template_loading_pattern.md for template copy workflow.
Template Selection by taskType:
implementation → task_template_implementation.mdrefactoring → refactoring_task_template.mdtest → test_task_template.mdLocal copies: docs/templates/*.md (in target project)
shared/references/tools_config_guide.mdshared/references/storage_mode_detection.mdshared/references/kanban_update_algorithm.mdshared/references/template_loading_pattern.mdshared/references/linear_creation_workflow.mdshared/templates/task_template_implementation.md, shared/templates/refactoring_task_template.md, shared/templates/test_task_template.mdVersion: 3.0.0 Last Updated: 2025-12-23
Weekly Installs
153
Repository
GitHub Stars
245
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code140
codex138
gemini-cli138
opencode138
cursor136
github-copilot133
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
36,300 周安装
Rationale: Prevents code duplication BEFORE implementation starts
A{N} ({CATEGORY}) format.docs/templates/*.md (in target project)docs/tasks/kanban_board.md