Migration update
qmims has been migrated from Amazon Q CLI to Kiro CLI. These docs reflect the current install, authentication, and command workflows.
Best Practices
Practical guidance for getting high-quality results from qmims and Kiro CLI
qmims works best when you treat README generation as an iterative workflow rather than a one-click final step. Use Kiro-backed generation to create a strong draft, then refine structure, instructions, and examples until the documentation matches the real behavior of your project.
Core idea
generate for the first pass, templates for structure, and embedded instructions for precision.Build a Strong README Structure
A useful README usually answers these questions quickly:
- Project title
- Concise summary
- Main use case
- Key features
- Prerequisites
- Installation steps
- Commands or examples
- Common workflows
- Configuration
- Contributing notes
- License
- Troubleshooting links
Choose the Right qmims Workflow
Start with Auto Mode
Use auto mode when you want qmims and Kiro to inspect the project and produce a full README draft quickly.
qmims generate --mode auto
Use Templates for Consistency
If you want a predictable structure across multiple repositories, generate from a built-in or custom template.
qmims generate --mode template:detailed
Use Embedded Instructions for Precision
Once the document exists, add targeted <!-- qmims: ... --> comments to control exactly what specific sections should say.
qmims edit
Write Better Embedded Instructions
Kiro can only be as specific as the instruction you provide. The more grounded your instruction is in your project context and desired format, the better the output tends to be.
1. Be specific about the task
Less effective
<!-- qmims: Write about installation -->
More effective
<!-- qmims: Provide step-by-step installation instructions using the detected package manager, including prerequisites and a verification command. -->
2. Add project context
Less effective
<!-- qmims: List the features -->
More effective
<!-- qmims: List the main user-facing features of this CLI tool based on the commands, options, and workflows implemented in the src directory. -->
3. Ask for a format when it matters
Less effective
<!-- qmims: Document the API -->
More effective
<!-- qmims: Document the exported API as a table with columns for name, purpose, parameters, and return value. -->
Review AI-Generated Output Carefully
qmims helps you move faster, but you should still review the generated content before treating it as final documentation.
- Check installation commands against the actual package manager and runtime
- Verify code examples still match the current API
- Remove claims that are too broad or speculative
- Make sure feature lists reflect real implemented behavior
- Confirm links, filenames, and command names are correct
Especially important after major changes
Use Dry Runs and Verbose Output
Before changing important documentation, preview the workflow and use diagnostic output when you need more visibility.
qmims generate --dry-run qmims edit --dry-run qmims generate --verbose
- Use
--dry-runto confirm the planned action and target file - Use
--verbosewhen debugging auth, file resolution, or generation behavior - Prefer previewing before overwriting existing docs
Keep Kiro Ready
Since qmims depends on Kiro CLI, a good documentation workflow also means keeping your Kiro setup healthy.
kiro-cli whoami kiro-cli login kiro-cli doctor
For automation or CI, prefer a headless setup using KIRO_API_KEY rather than relying on an interactive login session.
Prefer Explicit Git Workflows
qmims does not currently expose Git auto-commit as a supported feature. If you want generated documentation committed, do it explicitly in your normal workflow.
qmims generate git add README.md git commit -m "docs: update README"
This keeps generated documentation changes visible and reviewable instead of hiding them behind an automatic commit step.
Suggested Documentation Workflow
- Generate a first draft
qmims generate --dry-run qmims generate
- Improve structure if needed
qmims generate --mode template:detailed
- Add targeted embedded instructions
<!-- qmims: Update this section based on the latest CLI behavior. -->
- Process those instructions
qmims edit
- Review and commit the result