Skip to content
Back to skills

Lark Agent

ASecurity

Create hierarchical Lark tasks from markdown test plans. ACTIVATE THIS SKILL when user: - Says "create lark tasks" or "process test file" or "convert test plan" - Mentions "lark" + "test" or "test scenarios" or "test cases" - Wants to convert markdown test documentation into Lark tasks - Has a test file and wants it in Lark WORKFLOW: 1. Ask user for test file path (required) 2. Ask for owner, priority, target date (optional) 3. Execute: python .claude/skills/lark-agent/run.py [file] --owner...

  • 17 stars
  • 0 votes
  • 2 copies
  • 319 views
  • Added December 19, 2025
developmentpythonbashtestingapidocumentation

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned February 10, 2026

npx -y skills add Interstellar-code/claud-skills --skill lark-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lark Agent?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lark Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/interstellar-code-lark-agent/badge)](https://www.skillsdirectory.com/skills/interstellar-code-lark-agent)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lark-agent
description: |
  Create hierarchical Lark tasks from markdown test plans.

  ACTIVATE THIS SKILL when user:
  - Says "create lark tasks" or "process test file" or "convert test plan"
  - Mentions "lark" + "test" or "test scenarios" or "test cases"
  - Wants to convert markdown test documentation into Lark tasks
  - Has a test file and wants it in Lark

  WORKFLOW:
  1. Ask user for test file path (required)
  2. Ask for owner, priority, target date (optional)
  3. Execute: python .claude/skills/lark-agent/run.py [file] --owner="[name]" --priority=[1-3] --target-date="YYYY-MM-DD"
  4. Parse JSON output
  5. Execute Lark MCP workflow to create tasks
  6. Report results

  DO NOT create test plans yourself - only process existing markdown files unless explicitly asked.

## šŸŽØ **VISUAL OUTPUT FORMATTING**

**CRITICAL: All lark-agent output MUST use the colored-output formatter skill!**

```bash
bash .claude/skills/colored-output/color.sh skill-header "lark-agent" "Creating Lark tasks..."
bash .claude/skills/colored-output/color.sh progress "" "Processing test file"
bash .claude/skills/colored-output/color.sh success "" "Tasks created successfully"
```

---
version: 1.0.0
author: Claude Code
tags: [lark, testing, automation, markdown, json, task-management]
---

# Lark Agent Skill

Create structured Lark tasks from markdown test documentation with proper hierarchy and verification.

## Overview

The Lark Agent skill provides a complete end-to-end workflow for:
1. **Parsing** markdown test files with clear structure
2. **Generating** structured JSON with test hierarchy
3. **Preparing** Lark task creation workflow (3-level hierarchy)
4. **Preparing** verification workflow
5. **Outputting** complete workflow plan for execution

This skill is designed for teams that maintain test documentation in markdown format and need to convert them into trackable Lark tasks automatically.

## When to Use This Skill

Activate this skill when user:
- Wants to create Lark tasks from test plans
- Mentions "lark", "test cases", "test planning", "test scenarios"
- Has a markdown file with test documentation
- Needs to convert test documentation into Lark tasks
- Wants to process test files into structured tasks

## Workflow

### 1. Markdown Input Processing

The skill accepts markdown files with the following structure:

```markdown
# Test Title
Test description

## Test Scenario: Scenario Name
Scenario description

### Task: Task Name
1. Step one
2. Step two
Expected Result: What should happen
```

### 2. JSON Generation

Converts markdown into structured JSON:

```json
{
  "testOverview": {
    "title": "Test Title",
    "description": "Test description",
    "owner": "Assigned User",
    "targetDate": "2025-11-02",
    "status": "pending"
  },
  "scenarios": [
    {
      "scenarioId": "scenario-0-timestamp",
      "title": "Scenario Name",
      "description": "Scenario description",
      "tasks": [
        {
          "taskId": "task-0-0-timestamp",
          "title": "Task Name",
          "description": "Steps",
          "expectedResult": "Expected outcome",
          "status": "pending"
        }
      ]
    }
  ]
}
```

### 3. Lark Task Creation

Creates hierarchical tasks in Lark via MCP:
- **Level 1**: Parent task (test overview)
- **Level 2**: Scenario tasks (marked as milestones)
- **Level 3**: Individual test tasks

Uses Lark MCP tools:
- `task_v2_tasklist_create` - Create task list
- `task_v2_task_create` - Create parent task
- `task_v2_taskSubtask_create` - Create scenario and individual tasks
- `task_v2_task_addMembers` - Assign users

### 4. Verification & Reporting

After task creation, the skill verifies:
- āœ… Parent task created with correct details
- āœ… All scenario tasks created as milestones
- āœ… All individual tasks created with test steps
- āœ… Task hierarchy is correct (parent → scenarios → tasks)
- āœ… User assignments are correct
- āœ… Dates and priorities match specifications

Generates a comprehensive report showing:
- Number of tasks created at each level
- Any failures or issues encountered
- Confirmation that structure matches requirements
- Recommendations for any issues found

## Usage

### āš ļø Important: Interactive Mode Not Supported

**Interactive mode (stdin prompts) does NOT work in Claude Code's environment.**

The skill works via **conversational approach with visual indicators**.

### šŸŽÆ How It Works

When user requests Lark task creation:

#### 1ļøāƒ£ Show Activation Banner

Display:
```
╔══════════════════════════════════════════════════════════════════╗
ā•‘              šŸš€ LARK AGENT SKILL ACTIVATED šŸš€                   ā•‘
ā•‘      Converting Test Plans → Structured Lark Tasks              ā•‘
ā•šā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•
```

#### 2ļøāƒ£ Collect Parameters with Emojis

- **šŸ“„ Test file path** (required): "šŸ“„ Which test file would you like to process?"
- **šŸ‘¤ Owner name** (optional): "šŸ‘¤ Who should be the task owner? (default: QA Team)"
- **⚔ Priority** (optional): "⚔ What priority? (1=low, 2=medium, 3=high, default: 2)"
- **šŸ“… Target date** (optional): "šŸ“… What's the target completion date? (YYYY-MM-DD)"

#### 3ļøāƒ£ Execute Skill with Progress Indicators

Show:
```
šŸ”„ Executing Lark Agent skill...
šŸ“‚ File: [file-path]
šŸ‘¤ Owner: [owner]
⚔ Priority: [priority]
šŸ“… Target: [date]
```

Execute:
```bash
python .claude/skills/lark-agent/run.py [file-path] \
  --owner="[name]" \
  --priority=[1-3] \
  --target-date="YYYY-MM-DD"
```

#### 4ļøāƒ£ Parse Output

Show: `šŸ“Š Parsing workflow output...`

#### 5ļøāƒ£ Execute Lark MCP Workflow

Show progress:
```
šŸ—ļø Creating Lark tasks...
   āœ… Step 1: Creating task list
   āœ… Step 2: Creating parent task
   āœ… Step 3: Creating scenario tasks
   āœ… Step 4: Creating individual tasks
```

#### 6ļøāƒ£ Report Results

Show completion banner:
```
╔══════════════════════════════════════════════════════════════════╗
ā•‘              āœ… LARK AGENT WORKFLOW COMPLETED! āœ…               ā•‘
ā•šā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•ā•

šŸ“Š Summary:
   šŸ“‹ Test: [test title]
   šŸŽÆ Scenarios: [count]
   šŸ“ Total Tasks: [count]
```

### Direct Mode (Only Working Mode)

```bash
python .claude/skills/lark-agent/run.py [file-path] --owner="name" --priority=2 --target-date="YYYY-MM-DD"
```

### Available Options

- `file-path` (required): Path to markdown test file
- `--owner` (optional): Task owner name (default: "QA Team")
- `--priority` (optional): 1=low, 2=medium, 3=high (default: 2)
- `--target-date` (optional): Target date YYYY-MM-DD (default: 7 days from today)
- `--task-list-id` (optional): Existing Lark task list ID

### Example Conversation

```
User: Create Lark tasks from tests/manual/login-test.md
Claude: I'll help you create Lark tasks. Who should be the owner?
User: QA Team
Claude: What priority? (1=low, 2=medium, 3=high)
User: 2
Claude: What's the target date? (YYYY-MM-DD)
User: 2025-12-31
Claude: [Executes skill and creates tasks]
```

## Implementation Details

### Scripts

The skill uses the following Python scripts located in `scripts/`:

1. **lark_agent.py** - Main entry point and workflow orchestrator
2. **markdown_parser.py** - Parses markdown and extracts test structure
3. **lark_task_creator.py** - Creates hierarchical Lark tasks via MCP
4. **lark_task_verifier.py** - Verifies task creation and generates reports

These scripts are designed to work with Claude Code's tool calling capabilities for Lark MCP integration.

### References

Documentation in `references/`:

1. **usage-guide.md** - Detailed usage instructions and examples
2. **json-schema.md** - Complete JSON structure specification
3. **markdown-format.md** - Markdown format requirements

### Templates

Example files in `assets/templates/`:

1. **test-template.md** - Template for creating new test files
2. **output-template.json** - Example JSON output structure

## Integration with Lark MCP

This skill uses the following Lark MCP tools:

- `task_v2_task_create` - Create tasks
- `task_v2_tasklist_create` - Create task lists
- `task_v2_taskSubtask_create` - Create subtasks
- `task_v2_task_addMembers` - Assign users
- `timezone` tools - Handle date calculations

## Error Handling

The skill handles common errors:

- **File not found**: Validates file path before processing
- **Invalid markdown structure**: Reports parsing errors with line numbers
- **Lark API errors**: Retries failed task creation and reports issues
- **Date validation**: Ensures dates are valid and in the future

## Best Practices

### Markdown File Structure

- Use clear heading hierarchy (H1 for title, H2 for scenarios, H3 for tasks)
- Include expected results for each task
- Keep task descriptions concise but complete
- Use consistent naming conventions

### Task Organization

- Group related tests into scenarios
- Set realistic target dates
- Assign appropriate owners
- Use meaningful task titles

## Examples

See `references/usage-guide.md` for detailed examples and `assets/templates/` for template files.

## Troubleshooting

### Markdown Parsing Issues

If markdown parsing fails:
1. Check heading hierarchy (H1 > H2 > H3)
2. Ensure proper markdown syntax
3. Verify file encoding (UTF-8)

### Lark Task Creation Issues

If task creation fails:
1. Verify Lark MCP server is running
2. Check user permissions in Lark
3. Validate date formats
4. Review error messages in output

## Version History

### v1.0.0
- Initial release
- Markdown parsing and JSON generation
- Hierarchical Lark task creation
- Basic error handling and validation

Files in this skill

  • .mcp.json650 B
  • BATCH-EXECUTION-MODE.md6.5 KB
  • CLAUDE-CODE-INSTRUCTIONS.md6.5 KB
  • INSTALLATION.md8.2 KB
  • README.md2.2 KB
  • SKILL.md10 KB
  • USAGE-GUIDE.md4 KB
  • VISUAL-ENHANCEMENTS.md8.8 KB
  • assets/templates/output-template.json1 KB
  • assets/templates/test-template.md743 B
  • references/json-schema.md9.9 KB
  • references/markdown-format.md6.6 KB
  • references/usage-guide.md7.8 KB
  • run.py3.1 KB
  • scripts/__pycache__/lark_agent.cpython-313.pyc13.1 KB
  • scripts/__pycache__/lark_agent_interactive.cpython-313.pyc13.5 KB
  • scripts/__pycache__/lark_batch_executor.cpython-313.pyc8.7 KB
  • scripts/__pycache__/lark_task_creator.cpython-313.pyc12.8 KB
  • scripts/__pycache__/lark_task_verifier.cpython-313.pyc13.3 KB
  • scripts/__pycache__/markdown_parser.cpython-313.pyc7.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.