Skip to content

[#184] Document mcs export command and Export/ architecture#191

Merged
bguidolim merged 2 commits intomainfrom
feature/184-document-export-command
Mar 1, 2026
Merged

[#184] Document mcs export command and Export/ architecture#191
bguidolim merged 2 commits intomainfrom
feature/184-document-export-command

Conversation

@bguidolim
Copy link
Copy Markdown
Collaborator

Summary

PR #178 added mcs export but CLAUDE.md was not updated. This adds the missing documentation and promotes the export quick-start guide in the creating-tech-packs doc.

Changes

  • Add mcs export with all flags (--global, --identifier, --non-interactive, --dry-run) to the CLAUDE.md commands block
  • Add ExportCommand.swift bullet to the Commands architecture section
  • Add new ### Export (Sources/mcs/Export/) subsection documenting ConfigurationDiscovery, ManifestBuilder, PackWriter
  • Move "Quick Start with mcs export" from bottom to top of docs/creating-tech-packs.md

Test plan

  • swift build passes locally
  • Docs updated if behavior changed (CLAUDE.md, docs/)

Closes #184

- Add mcs export with all flags to CLAUDE.md commands block
- Add ExportCommand.swift and Export/ subsection to architecture docs
- Move Quick Start with mcs export to top of creating-tech-packs guide
Copilot AI review requested due to automatic review settings March 1, 2026 23:20
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates repository documentation to reflect the mcs export command and the new Sources/mcs/Export/ architecture, and makes the export quick-start more prominent for users authoring tech packs.

Changes:

  • Adds mcs export usage (including flags) to CLAUDE.md and documents the Export/ subsystem files.
  • Promotes the “Quick Start with mcs export” section to the top of docs/creating-tech-packs.md.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/creating-tech-packs.md Moves/export quick-start to the top and describes export behavior.
CLAUDE.md Documents mcs export command/flags and adds Export/ architecture bullets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The export wizard discovers your MCP servers, hooks, skills, commands, plugins, CLAUDE.md sections, gitignore entries, and settings — then generates a complete pack directory with `techpack.yaml` and all supporting files.

**What it handles automatically:**
- Sensitive env vars (API keys, tokens) are replaced with `__PLACEHOLDER__` tokens and corresponding `prompts:` entries are generated
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs say sensitive env vars are replaced with __PLACEHOLDER__, but mcs export actually replaces them with __<ENV_VAR_NAME>__ (e.g., __API_KEY__) and generates matching prompts entries. Update this bullet to match the actual placeholder format so users don't copy the wrong token.

Suggested change
- Sensitive env vars (API keys, tokens) are replaced with `__PLACEHOLDER__` tokens and corresponding `prompts:` entries are generated
- Sensitive env vars (API keys, tokens) are replaced with `__<ENV_VAR_NAME>__` tokens (e.g., `__API_KEY__`) and corresponding `prompts:` entries are generated

Copilot uses AI. Check for mistakes.
mcs export ./my-pack --global --dry-run
```

The export wizard discovers your MCP servers, hooks, skills, commands, plugins, CLAUDE.md sections, gitignore entries, and settings — then generates a complete pack directory with `techpack.yaml` and all supporting files.
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quick-start summary implies mcs export always discovers gitignore entries, but ConfigurationDiscovery only reads gitignore entries for --global exports. Consider clarifying this (e.g., “gitignore entries (global export only)”) to avoid confusing users exporting a project-scoped pack.

Suggested change
The export wizard discovers your MCP servers, hooks, skills, commands, plugins, CLAUDE.md sections, gitignore entries, and settings — then generates a complete pack directory with `techpack.yaml` and all supporting files.
The export wizard discovers your MCP servers, hooks, skills, commands, plugins, CLAUDE.md sections, gitignore entries (global export only), and settings — then generates a complete pack directory with `techpack.yaml` and all supporting files.

Copilot uses AI. Check for mistakes.
- Add "(global export only)" qualifier to gitignore mention in export docs
@bguidolim bguidolim enabled auto-merge (squash) March 1, 2026 23:25
@bguidolim bguidolim merged commit 9413f3c into main Mar 1, 2026
3 checks passed
@bguidolim bguidolim deleted the feature/184-document-export-command branch March 1, 2026 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CLAUDE.md with mcs export command and Export/ architecture

2 participants