An advanced markdown engine
Find a file
tegwick 246decbcac feat: Complete Issue #38 TDD8 Cycle 1 - Content command family implementation
Implemented comprehensive content command family for MarkdownMatters CLI following TDD8 methodology and MarkdownMatters specification.

## TDD8 Cycle 1 - Content Commands

### Core Implementation
- Content parser for extracting main content without matter zones
- Content statistics calculator (words, lines, paragraphs, characters)
- CLI commands: `content-get` and `content-stats`
- Full integration with existing markitect CLI

### MarkdownMatters Compliance
- Correctly removes YAML/TOML/JSON frontmatter
- Correctly removes tailmatter blocks (`yaml tailmatter`, `json tailmatter`)
- Preserves contentmatter (MultiMarkdown key-value pairs within content)
- Follows three-zone specification from wiki/MarkdownMatters.md

### Module Structure
```
markitect/content/
├── __init__.py          # Module exports
├── parser.py           # ContentParser with matter zone removal
├── stats.py            # ContentStats data class
└── commands.py         # CLI commands implementation
```

### CLI Commands Added
- `markitect content-get --file [path]` - Extract pure content
- `markitect content-stats --file [path]` - Calculate content statistics

### Test Coverage
- 16 comprehensive tests covering all scenarios
- Test fixtures for different document types
- CLI integration tests with Click testing
- Edge case handling (file not found, empty content, etc.)

### Validation Results
- All tests pass (16/16)
- Manual CLI testing confirmed
- Proper matter zone separation validated
- Statistics calculation accuracy verified

## Technical Architecture

### ContentParser Class
- `extract_content()` - Remove frontmatter and tailmatter
- `calculate_stats()` - Generate comprehensive statistics
- `_remove_frontmatter()` - YAML frontmatter removal
- `_remove_tailmatter()` - Tailmatter block removal

### ContentStats Data Class
- word_count, line_count, paragraph_count, character_count
- JSON serialization support via `to_dict()`

## GAMEPLAN Progress
-  TDD8 Cycle 1: Content Commands (COMPLETE)
- 🔄 Next: Cycle 2 - Frontmatter Commands
- Remaining: Contentmatter, Tailmatter command families

This implements the foundation for Issue #38 with 6 remaining cycles planned for complete MarkdownMatters CLI functionality.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-02 08:14:38 +02:00
.claude/agents feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
.github/workflows feat: Implement comprehensive Testing Architecture Enhancement 2025-09-26 22:36:35 +02:00
.issues feat: Integrate Requirements Engineering Agent and fix Issue #59 test failures 2025-10-02 00:45:06 +02:00
.venv_old chore: Keep old venv from ubuntu 18.04 for now just in case. 2025-09-23 01:16:12 +02:00
application feat: Implement domain logic separation with clean architecture 2025-09-26 22:15:45 +02:00
cli feat: Complete Issue #18 - Configuration and Environment Management CLI 2025-09-29 00:18:27 +02:00
config feat: Implement unified configuration management system 2025-09-26 17:45:56 +02:00
docs feat: Complete Issue #57 - Testing efficiency optimization with TDD8 workflow enhancements 2025-10-02 05:11:25 +02:00
domain fix: Eliminate all 111 test warnings by fixing root causes 2025-09-27 20:14:22 +02:00
examples feat: Integrate Requirements Engineering Agent and fix Issue #59 test failures 2025-10-02 00:45:06 +02:00
gitea feat: Consolidate Gitea API access through unified integration layer 2025-09-28 23:44:51 +02:00
history feat: Complete Issue #47 - Consolidate GAMEPLAN and DIARY files to history/ 2025-10-01 22:24:58 +02:00
infrastructure fix: Eliminate all 111 test warnings by fixing root causes 2025-09-27 20:14:22 +02:00
markitect feat: Complete Issue #38 TDD8 Cycle 1 - Content command family implementation 2025-10-02 08:14:38 +02:00
services feat: Complete type safety improvements for CLI and service layers 2025-09-27 09:02:31 +02:00
tddai feat: Consolidate Gitea API access through unified integration layer 2025-09-28 23:44:51 +02:00
tests feat: Complete Issue #38 TDD8 Cycle 1 - Content command family implementation 2025-10-02 08:14:38 +02:00
tools feat: Complete Issue #57 - Testing efficiency optimization with TDD8 workflow enhancements 2025-10-02 05:11:25 +02:00
wiki@648d8247c4 feat: Update wiki submodule with latest MarkdownMatters specification 2025-09-30 21:02:00 +02:00
.env.tddai refactor: Make tddai framework project-agnostic and fix test configuration 2025-09-24 00:04:54 +02:00
.gitignore refactor: Separate CLI presentation from core business logic 2025-09-26 15:08:54 +02:00
.gitmodules Add wiki as submodule tracking main 2025-09-16 23:28:11 +02:00
AGENT_TOOLING_OPTIMIZATION_REPORT.md feat: Complete Issue #61 - Agent Tooling Optimizer implementation 2025-10-02 04:50:55 +02:00
ARCHITECTURAL_CHAOS_TESTING_ISSUE.md feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
ARCHITECTURE.md feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
AUTONOMOUS_WORK_REMINDER.md feat: Add GAMEPLAN.md and autonomous work protocols 2025-10-01 02:20:47 +02:00
CAPABILITIES.md feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
CONFIG.md feat: Enhance tddai configuration with auto-loading .env files 2025-09-24 22:53:27 +02:00
DOMAIN_LOGIC_SEPARATION_DEMO.md feat: Implement domain logic separation with clean architecture 2025-09-26 22:15:45 +02:00
ERROR_HANDLING_GUIDE.md docs: Add comprehensive error handling guidelines 2025-09-26 16:54:44 +02:00
FEATURES.md chore: Update features and issue lib 2025-09-26 17:19:16 +02:00
gitea_issue_body.txt feat: Complete gitea integration test consolidation 2025-09-28 23:55:02 +02:00
install-claude.sh agent: Finally found a way to install claude again 2025-09-23 02:24:09 +02:00
install-cursor.sh chore: Try add cursor as alternative coding env 2025-09-25 01:59:11 +02:00
install-depends.sh build: Helpers to initially setup the dev env 2025-09-23 01:23:32 +02:00
install-nvm.sh build: Helpers to initially setup the dev env 2025-09-23 01:23:32 +02:00
install-pip.sh feat: Add Python dependency management and fix test environment 2025-09-23 02:41:32 +02:00
ISSUE_46_COMPLETION.md docs: Consolidate and update development documentation for Issue #59 2025-10-01 22:10:18 +02:00
ISSUE_WORKFLOW_REMINDER.md feat: Issue #46 Decomposition - Schema Generation Capability Outline 2025-10-01 02:13:43 +02:00
LEGACY_AGENT_GUIDE.md feat: Complete Issue #39 - Database CLI Reorganization with Comprehensive Legacy Compatibility System 2025-09-30 17:28:39 +02:00
LEGACY_COMPATIBILITY_SYSTEM.md feat: Complete Issue #39 - Database CLI Reorganization with Comprehensive Legacy Compatibility System 2025-09-30 17:28:39 +02:00
Makefile feat: Complete Issue #57 - Testing efficiency optimization with TDD8 workflow enhancements 2025-10-02 05:11:25 +02:00
NEXT_SESSION_BRIEFING.md fix: Complete LocalPlugin test suite stabilization - achieve 100% test success 2025-10-02 01:12:03 +02:00
ProjectStatusDigest.md docs: Updated project documentation 2025-09-25 23:17:14 +02:00
pyproject.toml feat: Complete type safety improvements for CLI and service layers 2025-09-27 09:02:31 +02:00
pytest-timeout.ini feat: Implement test timeout infrastructure and fix failing tests 2025-10-01 18:07:05 +02:00
pytest.ini feat: Complete Issue #57 - Testing efficiency optimization with TDD8 workflow enhancements 2025-10-02 05:11:25 +02:00
README.md feat: Complete Issue #13 - Cache Management CLI Commands MAJOR MILESTONE 2025-09-25 23:03:03 +02:00
RelevantClaudeIssues.md feat: Issue #46 Decomposition - Schema Generation Capability Outline 2025-10-01 02:13:43 +02:00
retrieved_roundtrip.md feat: Complete Issue #2 - Fast Document Loading & CLI Manipulation 2025-09-25 03:03:04 +02:00
ROADMAP.md feat: Complete Strategic Roadmap Implementation for HolyGrailRequirement 2025-09-25 14:08:42 +02:00
run_architectural_tests.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
run_randomized_tests.py feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
schema_summary.py feat: Complete Issue #3 - Schema Management with Enhanced Format Control 2025-09-30 02:59:43 +02:00
tddai-setup.sh refactor: Make tddai framework project-agnostic and fix test configuration 2025-09-24 00:04:54 +02:00
tddai_cli.py feat: Complete Issue #18 - Configuration and Environment Management CLI 2025-09-29 00:18:27 +02:00
tddai_issue_body.txt feat: Complete gitea integration test consolidation 2025-09-28 23:55:02 +02:00
TEST_ARCHITECTURE.md feat: Revolutionary Test Architecture - 7-Layer Organization with Advanced Testing Capabilities 2025-09-29 12:18:25 +02:00
test_frontmatter.md feat: Complete Issue #2 - Fast Document Loading & CLI Manipulation 2025-09-25 03:03:04 +02:00
test_roundtrip.md feat: Complete Issue #2 - Fast Document Loading & CLI Manipulation 2025-09-25 03:03:04 +02:00
test_status_report.md feat: Add make test-status for quick test overview without re-running 2025-09-23 03:16:50 +02:00
visualize_schema.py feat: Complete Issue #8 - Detailed Validation Error Reporting and CLI Enhancements 2025-09-29 21:21:21 +02:00

MarkiTect - Advanced Markdown Engine

Your Markdown, Redefined.

MarkiTect transforms markdown from plain text into intelligent, structured data with performance optimization, schema validation, and relational querying capabilities. Stop treating documentation as text files—start managing it as a database.

Key Features:

  • Lightning Performance: 60-85% faster document processing through intelligent AST caching
  • Schema Validation: Enforce document structure and consistency
  • Database Integration: Query markdown content with SQL-like operations
  • CLI Tools: Complete command-line interface for automation and workflows

📚 Documentation

Quick Start: Getting Started · Command Reference

Architecture: Caching System · Performance Philosophy

Development: TDD Workflow · Contributing

Project Status: Current Status · Roadmap · Next Actions