Merged
Conversation
Enhance tool descriptions, CLAUDE.md, and MCP resources with markdown formatting guidance to help AI agents write proper markdown syntax (headings, lists, bold, code blocks, links) when creating sections. Updates: - AddSectionTool.kt: Added "Writing Markdown Content" section with examples - BulkCreateSectionsTool.kt: Added markdown formatting guidance - CLAUDE.md: Added "Section Content Formatting Guidelines" section - TaskOrchestratorResources.kt: Added markdown best practice to guidelines This provides clear before/after examples showing plain text vs proper markdown formatting, ensuring content is directly readable and ready for markdown export features. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Create MarkdownRendererTest with 23 test cases covering:
* Task/Feature/Project rendering with frontmatter
* All ContentFormat types (MARKDOWN, PLAIN_TEXT, JSON, CODE)
* YAML special character escaping (quotes, backslashes, colons, etc.)
* Section ordering by ordinal
* All status types and priority levels
* MarkdownOptions configurations (frontmatter, code language, heading offset, line endings)
* Edge cases (empty tags, multiline content, trailing whitespace)
- Fix MarkdownOptions validation to use isNotEmpty() instead of isNotBlank()
for line ending validation (line endings are intentionally whitespace)
- Fix MarkdownRenderer escapeYamlString to include quotes (") and backslashes (\)
in special characters set for proper YAML escaping
All tests passing (100% success rate)
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
…ools Replace the includeMarkdownView parameter on Get* tools with three dedicated markdown transformation tools for improved use case clarity and separation of concerns. Changes: - Remove includeMarkdownView parameter from GetTaskTool, GetFeatureTool, GetProjectTool - Create TaskToMarkdownTool for transforming tasks to markdown - Create FeatureToMarkdownTool for transforming features to markdown - Create ProjectToMarkdownTool for transforming projects to markdown - Register new tools in McpServer - Update MarkdownResourceProvider documentation to reflect new tools Benefits: - Clear separation between inspection (get_*) and transformation (*_to_markdown) - Avoids content duplication in responses - Better tool naming that indicates transformation intent - More intuitive for AI agents and users to understand use cases All 23 existing tests passing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Update api-reference.md to document the three new markdown transformation tools and their use cases: - Update tool count from 37 to 40 - Update Task Management from 6 to 7 tools - Update Feature Management from 5 to 6 tools - Update Project Management from 5 to 6 tools - Add new "Markdown Transformation" section with usage patterns The documentation now clearly explains: - When to use get_* tools (JSON inspection) vs *_to_markdown (export/rendering) - Use cases for markdown transformation - Pattern for avoiding content duplication 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Add Unreleased section documenting: - Three new markdown transformation tools - Removal of includeMarkdownView parameter - Updated tool counts and category organization - Technical rationale for design decisions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Markdown Transformation Tools for Entity Export
Overview
Adds three new MCP tools for transforming tasks, features, and projects into markdown documents with YAML frontmatter. This enables AI agents to export entities to human-readable,
documentation-friendly formats suitable for file export, wikis, and version control.
Problem Statement
Users need to export task orchestrator entities (tasks, features, projects) to markdown format for:
Initial exploration considered adding an includeMarkdownView parameter to existing Get* tools, but this approach would:
Solution
Added 3 dedicated markdown transformation tools:
Key Design Principles:
What's Included
Core Implementation:
MCP Tools:
MCP Resources:
Documentation:
Markdown Output Format
Each transformation tool produces a markdown document with:
YAML Frontmatter:
id: 550e8400-e29b-41d4-a716-446655440000
type: task
title: Task Title
status: in-progress
priority: high
complexity: 7
tags:
- tag1
- tag2
created: 2025-05-10T14:30:00Z
modified: 2025-05-10T14:30:00Z
Markdown Content:
Task Title
Task summary describing what needs to be done.
Section Title
Section content rendered according to format (markdown, JSON, code, or plain text).
Another Section
More section content...
Testing
Breaking Changes
None. This is a purely additive change:
Tool Count
Future Considerations
The current implementation renders entities as standalone documents without cross-linking to related entities (e.g., projects don't link to features, features don't link to tasks).
This keeps the output format-agnostic and doesn't assume:
Cross-linking could be added in a future enhancement if specific use cases emerge.
Generated with https://claude.com/claude-code
Co-Authored-By: Claude noreply@anthropic.com