Markdown Converter
Agent skill for markdown-converter
**Repository**: GiantCroissant Lunar Dev Rule
Sign in to like and favorite skills
Repository: GiantCroissant Lunar Dev Rule Purpose: Develop and maintain reusable agent rules and pre-commit hooks
This is a meta-repository - we develop the rule system that other projects use.
templates/ directoryThis repository must be:
giantcroissant-lunar-dev-rule/ ├── templates/ # SOURCE OF TRUTH │ ├── base/ # Base rules (installed to all projects) │ ├── stacks/ # Stack-specific rules (dotnet, nodejs, etc.) │ ├── hooks/ # Pre-commit configurations │ └── meta/ # Versioning docs │ ├── cli/ # Installation tooling │ └── install.sh # Main installer script │ ├── docs/ # User-facing documentation ├── examples/ # Example configurations │ ├── .agent/ # MINIMAL rules for THIS repo only └── .github/ # CI/CD and issue templates
This repo has TWO sets of rules:
templates/ - Full rule system we ship to users (THE PRODUCT).agent/ - Minimal rules for developing this repo (NOT THE PRODUCT)When working on this repo:
templates/ thinking you're configuring this repo./cli/install.sh on this repo (circular confusion)templates/ when improving the rules we ship.agent/README.md for development guidelinesScenario: Syncing changes from Winged Bean or adding new rules
Steps:
templates/base/20-rules.mdtemplates/base/00-index.mdCHANGELOG.md./cli/install.sh --stack dotnet --dry-run in a clean projectExample:
# Edit rules vim templates/base/20-rules.md # Update version vim templates/base/00-index.md # Change: "Version: 1.1.0" → "Version: 1.2.0" # Document change vim CHANGELOG.md # Add: "## [1.2.0] - 2025-XX-XX" # "### Added" # "- R-NEW-010: New rule description"
Scenario: Adding Python or Node.js support
Steps:
mkdir -p templates/stacks/{stack-name}templates/stacks/{stack-name}/rules.mdtemplates/hooks/{stack-name}/pre-commit-config.yamltemplates/stacks/{stack-name}/adapters/examples/{stack-name}/README.mdREADME.mdCHANGELOG.mdTemplate for new stack rules.md:
# {Stack Name} Stack Rules Version: 1.0.0 Last Updated: YYYY-MM-DD ## {Category} Conventions ### R-{STACK}-010: {Rule Title} - **What**: Description - **Why**: Rationale - **How**: Implementation
Scenario: Improving
cli/install.sh
Steps:
cli/install.shshellcheck cli/install.sh./cli/install.sh --stack dotnet --dry-runTesting:
# Create test project mkdir -p /tmp/test-project cd /tmp/test-project git init # Test installer /path/to/giantcroissant-lunar-dev-rule/cli/install.sh --stack dotnet # Verify ls -la .agent/ cat .pre-commit-config.yaml
Scenario: Adding new validation to templates
Steps:
templates/hooks/base/pre-commit-config.yamltemplates/hooks/{stack}/pre-commit-config.yamltemplates/hooks/python/validators/docs/quickstart.mdScenario: Improving user-facing docs
Files to update:
README.md - Main overview and quick startdocs/quickstart.md - Step-by-step tutorialdocs/customization.md - Customization guideCHANGELOG.md - Version historyexamples/*/README.md - Example configurationsDocumentation style:
Run all checks:
# Pre-commit hooks pre-commit run --all-files # Shellcheck shellcheck cli/install.sh # Test installer (dry run) ./cli/install.sh --stack dotnet --dry-run # Test installer (actual, in clean project) cd /tmp/test-project && git init /path/to/repo/cli/install.sh --stack dotnet
Update versions:
templates/base/00-index.md (base version)templates/stacks/*/rules.md (stack versions if changed)CHANGELOG.md (new version entry)README.md (update version references)Test thoroughly:
# Test all stacks ./cli/install.sh --stack dotnet --dry-run # (Add more stacks when available)
Commit and tag:
git commit -m "chore: Release v1.1.0" git tag -a v1.1.0 -m "Release v1.1.0 See CHANGELOG.md for details" git push origin main --tags
Create GitHub release with CHANGELOG excerpt
.gitignoreinstall.shset -e - Fail fast in shell scripts#!/usr/bin/env bashset -e at top"$VARIABLE"--dry-run flag.github/workflows/# This creates circular confusion ./cli/install.sh --stack dotnet # ❌ DON'T DO THIS
Don't copy rules from
templates/base/ into .agent/ here.
templates/ is what we ship, not our config.
Always test installation in a separate project.
Document all changes for users.
Avoid breaking changes when possible.
.agent/README.mdEXTRACTION_SUMMARY.mdREADME.md, docs/examples/templates/base/20-rules.md.agent/README.md for development guidelinestemplates/ and cli/examples/EXTRACTION_SUMMARY.md for design decisionsVersion: 1.0.0 Last Updated: 2025-10-08 Maintained By: apprenticegc