@tmddev/tmd 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +424 -0
  3. package/bin/tmd.js +3 -0
  4. package/dist/cli.d.ts +3 -0
  5. package/dist/cli.js +92 -0
  6. package/dist/commands/act.d.ts +3 -0
  7. package/dist/commands/act.js +210 -0
  8. package/dist/commands/check.d.ts +3 -0
  9. package/dist/commands/check.js +183 -0
  10. package/dist/commands/do.d.ts +3 -0
  11. package/dist/commands/do.js +310 -0
  12. package/dist/commands/list.d.ts +3 -0
  13. package/dist/commands/list.js +56 -0
  14. package/dist/commands/plan.d.ts +3 -0
  15. package/dist/commands/plan.js +89 -0
  16. package/dist/commands/show.d.ts +2 -0
  17. package/dist/commands/show.js +69 -0
  18. package/dist/commands/skills.d.ts +3 -0
  19. package/dist/commands/skills.js +243 -0
  20. package/dist/types.d.ts +79 -0
  21. package/dist/types.js +5 -0
  22. package/dist/utils/act-processing.d.ts +64 -0
  23. package/dist/utils/act-processing.js +222 -0
  24. package/dist/utils/analysis.d.ts +34 -0
  25. package/dist/utils/analysis.js +159 -0
  26. package/dist/utils/comparison.d.ts +34 -0
  27. package/dist/utils/comparison.js +217 -0
  28. package/dist/utils/language-validator.d.ts +11 -0
  29. package/dist/utils/language-validator.js +39 -0
  30. package/dist/utils/openspec.d.ts +5 -0
  31. package/dist/utils/openspec.js +91 -0
  32. package/dist/utils/paths.d.ts +10 -0
  33. package/dist/utils/paths.js +33 -0
  34. package/dist/utils/skills.d.ts +3 -0
  35. package/dist/utils/skills.js +248 -0
  36. package/dist/utils/skillssh.d.ts +12 -0
  37. package/dist/utils/skillssh.js +135 -0
  38. package/dist/utils/standardization.d.ts +26 -0
  39. package/dist/utils/standardization.js +106 -0
  40. package/dist/utils/task-chain.d.ts +35 -0
  41. package/dist/utils/task-chain.js +146 -0
  42. package/dist/utils/task-id.d.ts +5 -0
  43. package/dist/utils/task-id.js +15 -0
  44. package/dist/utils/task-status.d.ts +6 -0
  45. package/dist/utils/task-status.js +61 -0
  46. package/dist/utils/task-validator.d.ts +42 -0
  47. package/dist/utils/task-validator.js +178 -0
  48. package/dist/utils/tasks.d.ts +27 -0
  49. package/dist/utils/tasks.js +125 -0
  50. package/dist/utils/templates.d.ts +12 -0
  51. package/dist/utils/templates.js +143 -0
  52. package/package.json +84 -0
  53. package/scripts/postinstall.js +92 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,424 @@
1
+ <p align="center">
2
+ <strong>TMD - Task Markdown Driven</strong>
3
+ </p>
4
+
5
+ <p align="center">
6
+ <strong>Ten seconds to Ten minutes Task Markdown Driven Development!</strong>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://tmdd.dev"><img alt="Website" src="https://img.shields.io/badge/Website-tmdd.dev-blue?style=flat-square" /></a>
11
+ <a href="https://github.com/sdd330/tmd/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/sdd330/tmd/actions/workflows/ci.yml/badge.svg" /></a>
12
+ <a href="./LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" /></a>
13
+ <a href="https://conventionalcommits.org"><img alt="Conventional Commits" src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square" /></a>
14
+ </p>
15
+
16
+ # TMD - Task Markdown Driven
17
+
18
+ **Ten seconds to Ten minutes Task Markdown Driven Development!**
19
+
20
+ A lightweight PDCA cycle management framework integrated with OpenSpec for specification-driven development.
21
+
22
+ ## 🌐 Website
23
+
24
+ This project is available at: **[https://tmdd.dev](https://tmdd.dev)**
25
+
26
+ ## Overview
27
+
28
+ **Ten seconds to Ten minutes Task Markdown Driven Development!**
29
+
30
+ TMD (Task Markdown Driven) combines OpenSpec's specification-driven development with the PDCA (Plan-Do-Check-Act) continuous improvement methodology. It provides a structured, traceable development management tool that ensures transparency and traceability through documentation-driven processes.
31
+
32
+ At the core of TMD is the principle that tasks should be **pee-break (10 seconds to 10 minutes)** sized - small, atomic, and completable in a single focused session.
33
+
34
+ ## Features
35
+
36
+ - **PDCA Cycle Management**: Four-phase commands for Plan, Do, Check, and Act
37
+ - **Ten sec to Ten min Task!**: Tasks are designed to be pee-break (10 seconds to 10 minutes) sized for quick completion
38
+ - **OpenSpec Integration**: Automatic creation and linking of OpenSpec change proposals
39
+ - **Skills System**: Reusable capabilities for AI agents with cross-agent invocation support
40
+ - **English Language Standard**: All documents and specifications use English
41
+ - **Markdown-Based**: All documentation stored in Markdown format
42
+ - **CLI Interface**: Simple command-line interface with aliases
43
+
44
+ ## Installation
45
+
46
+ ### Prerequisites
47
+ - **Node.js >= 20.19.0** - Check your version with `node --version`
48
+
49
+ ### Install the CLI globally
50
+
51
+ **Option A: Using npm**
52
+ ```bash
53
+ npm install -g @tmddev/tmd@latest
54
+ ```
55
+
56
+ Verify installation:
57
+ ```bash
58
+ tmd --version
59
+ ```
60
+
61
+ **Option B: Using pnpm**
62
+ ```bash
63
+ pnpm install -g @tmddev/tmd@latest
64
+ ```
65
+
66
+ **Option C: Use locally**
67
+ ```bash
68
+ git clone https://github.com/sdd330/tmd.git
69
+ cd tmd
70
+ pnpm install
71
+ pnpm run build
72
+ pnpm link --global # Optional: link for local development
73
+ ```
74
+
75
+ ## Quick Start
76
+
77
+ ### 1. Create a Plan
78
+
79
+ ```bash
80
+ tmd plan "Generate README in different languages"
81
+ # or use alias
82
+ tmdp "Generate README in different languages"
83
+ ```
84
+
85
+ This creates:
86
+ - Task directory structure
87
+ - Plan document template
88
+ - Resources document
89
+
90
+ **Important: Task Size Guidelines - Ten sec to Ten min Task!**
91
+
92
+ Tasks in the plan should be atomic and completable in **pee-break (10 seconds to 10 minutes)** sized tasks. This ensures:
93
+ - Tasks are actionable and completable by AI agents or humans
94
+ - Progress tracking is meaningful (tasks are either done or not done)
95
+ - No task requires complex multi-step coordination
96
+ - Agent Skills can be designed to complete individual tasks
97
+
98
+ **Good atomic tasks:**
99
+ - "Add import statement"
100
+ - "Update function signature"
101
+ - "Create test file"
102
+ - "Fix typo in documentation"
103
+
104
+ **Tasks to break down:**
105
+ - "Implement authentication and authorization" → Break into: "Add auth middleware", "Create login endpoint", "Add password validation"
106
+ - "Create API and update frontend" → Break into: "Create API endpoint", "Update frontend component", "Add API integration"
107
+
108
+ ### 2. Execute (Do Phase)
109
+
110
+ ```bash
111
+ tmd do <task-id>
112
+ # or use alias
113
+ tmdd <task-id>
114
+ ```
115
+
116
+ This creates:
117
+ - Execution document
118
+ - Data collection document
119
+
120
+ ### 3. Check Results
121
+
122
+ ```bash
123
+ tmd check <task-id>
124
+ # or use alias
125
+ tmdc <task-id>
126
+ ```
127
+
128
+ This creates:
129
+ - Evaluation document
130
+ - Deviation analysis document
131
+
132
+ ### 4. Act on Results
133
+
134
+ ```bash
135
+ tmd act <task-id>
136
+ # or use alias
137
+ tmda <task-id>
138
+ ```
139
+
140
+ This creates:
141
+ - Improvement actions document
142
+ - Standardization document (if `--standardize` flag is used)
143
+
144
+ ## Task Size Principle
145
+
146
+ **Ten seconds to Ten minutes Task Markdown Driven Development!**
147
+
148
+ Tasks should be **pee-break (10 seconds to 10 minutes)** sized.
149
+
150
+ This principle ensures tasks are:
151
+ - **Atomic**: Cannot be meaningfully broken down further
152
+ - **Actionable**: Clear single action that can be completed
153
+ - **Trackable**: Either done or not done (no partial states)
154
+ - **Agent-friendly**: Suitable for AI agent autonomous execution
155
+ - **Skill-compatible**: Can be completed by a single Agent Skill
156
+
157
+ ### Guidelines
158
+
159
+ - ✅ **Good**: "Add import statement", "Update function signature", "Create test file"
160
+ - ❌ **Too large**: "Implement authentication and authorization", "Create API and update frontend"
161
+ - 💡 **Break down large tasks** into smaller atomic tasks before planning
162
+
163
+ ## Commands
164
+
165
+ ### PDCA Commands
166
+
167
+ - `tmd plan <description>` / `tmdp` - Create a new plan
168
+ - `--openspec` - Create or link OpenSpec change proposal
169
+ - `--skill` - Create skill definition
170
+ - `--use-skill <skill-name>` - Use existing skill
171
+ - `--validate-tasks` - Validate task size: pee-break (10 seconds to 10 minutes)
172
+
173
+ - `tmd do <task-id>` / `tmdd` - Execute actions
174
+ - `--data <key=value>` - Record data
175
+ - `--skill <skill-name>` - Execute skill
176
+
177
+ - `tmd check <task-id>` / `tmdc` - Evaluate results
178
+ - `--compare` - Automatic comparison
179
+ - `--validate-skill` - Validate skill execution
180
+
181
+ - `tmd act <task-id>` / `tmda` - Take improvement actions
182
+ - `--standardize` - Generate standardization document
183
+ - `--complete` - Mark task as completed
184
+
185
+ ### Task Management
186
+
187
+ - `tmd list` - List all tasks
188
+ - `--status <status>` - Filter by status
189
+ - `--phase <phase>` - Filter by phase
190
+
191
+ - `tmd show <task-id>` - Show task details
192
+
193
+ ### Skills Management
194
+
195
+ - `tmd skills list` - List all available skills
196
+ - `tmd skills search <query>` - Search skills
197
+ - `tmd skills show <skill-name>` - Show skill details
198
+ - `tmd skills invoke <skill-name> --input <params>` - Invoke a skill
199
+
200
+ ## Skills System
201
+
202
+ Skills are reusable capabilities for AI agents that can be defined, shared, and executed within PDCA cycles.
203
+
204
+ ### Creating a Skill
205
+
206
+ ```bash
207
+ tmd plan "As a developer, I want to generate README files in multiple languages, so as to make the project accessible to international contributors" --skill
208
+ ```
209
+
210
+ This creates a skill with:
211
+ - User story format
212
+ - Executable steps definition
213
+ - Configuration
214
+ - Metadata for AI agent discovery
215
+
216
+ ### Example: README Generation Skill
217
+
218
+ ```yaml
219
+ # tmd/skills/generate-readme-multilang/metadata.yaml
220
+ name: generate-readme-multilang
221
+ version: 1.0.0
222
+ description: Generate README files in multiple languages
223
+ interface:
224
+ input:
225
+ - name: template_path
226
+ type: string
227
+ required: true
228
+ description: Path to README.md template
229
+ - name: target_languages
230
+ type: array
231
+ required: true
232
+ description: List of target languages (e.g., ["zh", "es", "fr"])
233
+ output:
234
+ generated_files: array of file paths
235
+ validation_status: enum (passed/failed)
236
+ language_index_updated: boolean
237
+ ```
238
+
239
+ ### Cross-Agent Invocation
240
+
241
+ Skills can be invoked by any AI agent:
242
+
243
+ ```bash
244
+ tmd skill invoke generate-readme-multilang --input "template_path=README.md target_languages=[zh,es,fr]"
245
+ ```
246
+
247
+ ## OpenSpec Integration
248
+
249
+ TMD automatically integrates with OpenSpec projects:
250
+
251
+ ```bash
252
+ tmd plan "Description" --openspec
253
+ ```
254
+
255
+ This:
256
+ - Detects OpenSpec project structure
257
+ - Creates OpenSpec change proposal
258
+ - Links TMD task to OpenSpec change
259
+ - Maintains bidirectional traceability
260
+
261
+ ## Directory Structure
262
+
263
+ ```
264
+ tmd/
265
+ ├── plan/
266
+ │ └── [task-id]/
267
+ │ ├── plan.md
268
+ │ └── resources.md
269
+ ├── do/
270
+ │ └── [task-id]/
271
+ │ ├── execution.md
272
+ │ └── data.md
273
+ ├── check/
274
+ │ └── [task-id]/
275
+ │ ├── evaluation.md
276
+ │ └── deviation.md
277
+ ├── act/
278
+ │ └── [task-id]/
279
+ │ ├── improvement.md
280
+ │ └── standardization.md
281
+ └── skills/
282
+ └── [skill-name]/
283
+ ├── skill.md
284
+ ├── steps.yaml
285
+ ├── config.yaml
286
+ └── metadata.yaml
287
+ ```
288
+
289
+ ## Examples
290
+
291
+ ### Example 1: Generate README in Different Languages
292
+
293
+ ```bash
294
+ # Plan (with atomic tasks in plan.md)
295
+ tmd plan "Generate README in different languages"
296
+ # Tasks in plan.md should be broken down, e.g.:
297
+ # - [ ] Read README.md template file
298
+ # - [ ] Extract translatable sections
299
+ # - [ ] Translate content to Chinese
300
+ # - [ ] Translate content to Spanish
301
+ # - [ ] Generate README.zh.md
302
+ # - [ ] Generate README.es.md
303
+ # - [ ] Validate markdown syntax
304
+ # - [ ] Update language index in main README
305
+
306
+ # Do
307
+ tmd do 20240115-generate-readme-different-languages
308
+
309
+ # Check
310
+ tmd check 20240115-generate-readme-different-languages --compare
311
+
312
+ # Act
313
+ tmd act 20240115-generate-readme-different-languages --standardize --complete
314
+ ```
315
+
316
+ **Note**: The plan should break down the high-level goal into atomic pee-break (10 seconds to 10 minutes) sized tasks (**Ten sec to Ten min Task!**) in the Tasks section of plan.md.
317
+
318
+ ### Example 2: Using Skills
319
+
320
+ ```bash
321
+ # Create a skill
322
+ tmd plan "As a developer, I want to generate README files in multiple languages, so as to make the project accessible to international contributors" --skill
323
+
324
+ # Use the skill in a new task
325
+ tmd plan "Generate README for new project" --use-skill generate-readme-multilang
326
+
327
+ # Execute the skill
328
+ tmd do <task-id> --skill generate-readme-multilang
329
+ ```
330
+
331
+ ## Language Standard
332
+
333
+ All documents and specifications use English. The system:
334
+ - Generates all templates in English
335
+ - Validates user input (warns if non-English detected)
336
+ - Enforces English for OpenSpec specifications
337
+
338
+ ## Development
339
+
340
+ ```bash
341
+ # Install dependencies
342
+ pnpm install
343
+
344
+ # Build
345
+ pnpm run build
346
+
347
+ # Development mode (watch)
348
+ pnpm run dev
349
+
350
+ # Test
351
+ pnpm test
352
+ ```
353
+
354
+ ## How It Works
355
+
356
+ TMD follows the PDCA (Plan-Do-Check-Act) cycle:
357
+
358
+ ```
359
+ ┌────────────────────┐
360
+ │ Plan │
361
+ │ Define objectives │
362
+ │ Set goals & tasks │
363
+ └────────┬───────────┘
364
+
365
+
366
+ ┌────────────────────┐
367
+ │ Do │
368
+ │ Execute tasks │
369
+ │ Collect data │
370
+ └────────┬───────────┘
371
+
372
+
373
+ ┌────────────────────┐
374
+ │ Check │
375
+ │ Evaluate results │
376
+ │ Analyze deviations │
377
+ └────────┬───────────┘
378
+
379
+
380
+ ┌────────────────────┐
381
+ │ Act │
382
+ │ Improve & │
383
+ │ Standardize │
384
+ └────────────────────┘
385
+ ```
386
+
387
+ ## Task Size Principle
388
+
389
+ **Ten seconds to Ten minutes Task Markdown Driven Development!**
390
+
391
+ Tasks should be **pee-break (10 seconds to 10 minutes)** sized. This ensures:
392
+ - Tasks are atomic and completable
393
+ - Progress tracking is meaningful
394
+ - No complex multi-step coordination required
395
+ - Agent-friendly for AI autonomous execution
396
+
397
+ ## Contributing
398
+
399
+ Contributions are welcome! Please ensure all documentation follows the English language standard.
400
+
401
+ ### Development
402
+
403
+ ```bash
404
+ # Install dependencies
405
+ pnpm install
406
+
407
+ # Build
408
+ pnpm run build
409
+
410
+ # Test
411
+ pnpm test
412
+
413
+ # Development mode (watch)
414
+ pnpm run dev
415
+
416
+ # Lint
417
+ pnpm lint
418
+ ```
419
+
420
+ See [MAINTAINERS.md](MAINTAINERS.md) for maintainer information.
421
+
422
+ ## License
423
+
424
+ MIT
package/bin/tmd.js ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+
3
+ import '../dist/cli.js';
package/dist/cli.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map