jupytermind 0.3.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 (193) hide show
  1. package/.github/skills/ai-chemistry-scientist/SKILL.md +97 -0
  2. package/.github/skills/ai-chemistry-scientist/manifest.json +156 -0
  3. package/.github/skills/ai-data-scientist/SKILL.md +330 -0
  4. package/.github/skills/ai-genomics-scientist/SKILL.md +98 -0
  5. package/.github/skills/ai-genomics-scientist/manifest.json +93 -0
  6. package/.github/skills/ai-materials-scientist/SKILL.md +51 -0
  7. package/.github/skills/ai-materials-scientist/manifest.json +58 -0
  8. package/.github/skills/ai-scientist/SKILL.md +69 -0
  9. package/.github/skills/ai-scientist/manifest.json +61 -0
  10. package/.github/skills/ai-structural-biology-scientist/SKILL.md +67 -0
  11. package/.github/skills/ai-structural-biology-scientist/manifest.json +72 -0
  12. package/.github/skills/japanese-prose/NOTICE.md +17 -0
  13. package/.github/skills/japanese-prose/SKILL.md +111 -0
  14. package/.github/skills/japanese-prose/references/review-workflow.md +50 -0
  15. package/.github/skills/japanese-prose/references/scoring.md +24 -0
  16. package/.github/skills/japanese-prose/references/writing-guidelines.md +60 -0
  17. package/.github/skills/japanese-prose/scripts/core.py +192 -0
  18. package/.github/skills/japanese-prose/scripts/fixtures/natural.md +5 -0
  19. package/.github/skills/japanese-prose/scripts/fixtures/unnatural.md +5 -0
  20. package/.github/skills/japanese-prose/scripts/lint.py +378 -0
  21. package/.github/skills/japanese-prose/scripts/outline.py +68 -0
  22. package/.github/skills/japanese-prose/scripts/terms.py +112 -0
  23. package/.github/skills/japanese-prose/scripts/test_engine.py +117 -0
  24. package/.github/skills/presentation-planner/SKILL.md +257 -0
  25. package/.github/skills/presentation-planner/assets/design-templates/data-report.yaml +97 -0
  26. package/.github/skills/presentation-planner/assets/design-templates/executive-proposal.yaml +92 -0
  27. package/.github/skills/presentation-planner/assets/design-templates/technical-briefing.yaml +96 -0
  28. package/.github/skills/presentation-planner/assets/scenario-templates/data-report.md +47 -0
  29. package/.github/skills/presentation-planner/assets/scenario-templates/executive-decision.md +43 -0
  30. package/.github/skills/presentation-planner/assets/scenario-templates/technical-briefing.md +45 -0
  31. package/.github/skills/presentation-planner/references/customizing-design-templates.md +160 -0
  32. package/.github/skills/presentation-planner/references/design-spec-schema.md +72 -0
  33. package/.github/skills/presentation-planner/references/handoff-contract.md +49 -0
  34. package/.github/skills/presentation-planner/references/responsibility-boundary.md +32 -0
  35. package/.github/skills/presentation-planner/references/scenario-templates.md +55 -0
  36. package/.github/skills/tech-writer/SKILL.md +434 -0
  37. package/.github/skills/tech-writer/assets/templates/blueprint.md +187 -0
  38. package/.github/skills/tech-writer/assets/templates/design-doc.md +29 -0
  39. package/.github/skills/tech-writer/assets/templates/migration-plan.md +173 -0
  40. package/.github/skills/tech-writer/assets/templates/operations-runbook.md +202 -0
  41. package/.github/skills/tech-writer/assets/templates/pr-description.md +23 -0
  42. package/.github/skills/tech-writer/assets/templates/qiita.md +44 -0
  43. package/.github/skills/tech-writer/assets/templates/readme.md +38 -0
  44. package/.github/skills/tech-writer/assets/templates/requirements-definition.md +170 -0
  45. package/.github/skills/tech-writer/assets/templates/rfi.md +113 -0
  46. package/.github/skills/tech-writer/assets/templates/rfp.md +180 -0
  47. package/.github/skills/tech-writer/assets/templates/security-design.md +167 -0
  48. package/.github/skills/tech-writer/assets/templates/system-design.md +220 -0
  49. package/.github/skills/tech-writer/assets/templates/technical-proposal.md +112 -0
  50. package/.github/skills/tech-writer/assets/templates/test-plan.md +153 -0
  51. package/.github/skills/tech-writer/assets/templates/user-manual.md +22 -0
  52. package/.github/skills/tech-writer/assets/templates/white-paper.md +192 -0
  53. package/.github/skills/tech-writer/references/doctypes/api-docs.md +33 -0
  54. package/.github/skills/tech-writer/references/doctypes/blueprint.md +81 -0
  55. package/.github/skills/tech-writer/references/doctypes/code-comments.md +39 -0
  56. package/.github/skills/tech-writer/references/doctypes/design-doc.md +42 -0
  57. package/.github/skills/tech-writer/references/doctypes/migration-plan.md +63 -0
  58. package/.github/skills/tech-writer/references/doctypes/operations-runbook.md +63 -0
  59. package/.github/skills/tech-writer/references/doctypes/pr-commit.md +82 -0
  60. package/.github/skills/tech-writer/references/doctypes/qiita.md +75 -0
  61. package/.github/skills/tech-writer/references/doctypes/readme.md +43 -0
  62. package/.github/skills/tech-writer/references/doctypes/release-notes.md +30 -0
  63. package/.github/skills/tech-writer/references/doctypes/requirements-definition.md +61 -0
  64. package/.github/skills/tech-writer/references/doctypes/rfi.md +43 -0
  65. package/.github/skills/tech-writer/references/doctypes/rfp.md +46 -0
  66. package/.github/skills/tech-writer/references/doctypes/security-design.md +71 -0
  67. package/.github/skills/tech-writer/references/doctypes/system-design.md +74 -0
  68. package/.github/skills/tech-writer/references/doctypes/technical-proposal.md +49 -0
  69. package/.github/skills/tech-writer/references/doctypes/test-plan.md +67 -0
  70. package/.github/skills/tech-writer/references/doctypes/user-manual.md +58 -0
  71. package/.github/skills/tech-writer/references/doctypes/white-paper.md +84 -0
  72. package/.github/skills/tech-writer/references/doctypes/zenn.md +66 -0
  73. package/.github/skills/tech-writer/references/japanese-prose-optimization.md +110 -0
  74. package/.github/skills/tech-writer/references/style-constitution.md +104 -0
  75. package/.github/skills/tech-writer/scripts/lint.py +412 -0
  76. package/LICENSE +21 -0
  77. package/README.md +92 -0
  78. package/bin/ai-data-scientist.js +123 -0
  79. package/package.json +41 -0
  80. package/pyproject.toml +45 -0
  81. package/src/ai_chemistry_scientist/__init__.py +0 -0
  82. package/src/ai_chemistry_scientist/admet_prediction.py +71 -0
  83. package/src/ai_chemistry_scientist/bioactivity_classification.py +73 -0
  84. package/src/ai_chemistry_scientist/data/sample_molecules.csv +21 -0
  85. package/src/ai_chemistry_scientist/dispatch.py +369 -0
  86. package/src/ai_chemistry_scientist/docking_score.py +97 -0
  87. package/src/ai_chemistry_scientist/drug_likeness_rules.py +84 -0
  88. package/src/ai_chemistry_scientist/evidence.py +41 -0
  89. package/src/ai_chemistry_scientist/molecular_descriptors.py +97 -0
  90. package/src/ai_chemistry_scientist/molecular_formula_mass.py +40 -0
  91. package/src/ai_chemistry_scientist/molecular_similarity.py +78 -0
  92. package/src/ai_chemistry_scientist/qsar_modeling.py +105 -0
  93. package/src/ai_chemistry_scientist/salt_standardization.py +81 -0
  94. package/src/ai_chemistry_scientist/structural_alerts.py +76 -0
  95. package/src/ai_chemistry_scientist/structure_format_conversion.py +84 -0
  96. package/src/ai_chemistry_scientist/validation.py +70 -0
  97. package/src/ai_data_scientist/__init__.py +0 -0
  98. package/src/ai_data_scientist/analysis_assumptions.py +121 -0
  99. package/src/ai_data_scientist/anomaly_detection.py +39 -0
  100. package/src/ai_data_scientist/automl.py +109 -0
  101. package/src/ai_data_scientist/cleaning.py +56 -0
  102. package/src/ai_data_scientist/cli.py +90 -0
  103. package/src/ai_data_scientist/clustering.py +54 -0
  104. package/src/ai_data_scientist/dashboard.py +33 -0
  105. package/src/ai_data_scientist/data_definition.py +100 -0
  106. package/src/ai_data_scientist/data_quality.py +164 -0
  107. package/src/ai_data_scientist/dataset_validation.py +135 -0
  108. package/src/ai_data_scientist/dependency_pins.py +60 -0
  109. package/src/ai_data_scientist/eda.py +82 -0
  110. package/src/ai_data_scientist/experiment_evaluation.py +635 -0
  111. package/src/ai_data_scientist/explainability.py +340 -0
  112. package/src/ai_data_scientist/feature_engineering.py +163 -0
  113. package/src/ai_data_scientist/gate_config.py +32 -0
  114. package/src/ai_data_scientist/ingestion.py +127 -0
  115. package/src/ai_data_scientist/insight_engine.py +180 -0
  116. package/src/ai_data_scientist/japanese_nlp.py +43 -0
  117. package/src/ai_data_scientist/jupyter_launcher.py +137 -0
  118. package/src/ai_data_scientist/jupyter_mcp_client.py +94 -0
  119. package/src/ai_data_scientist/language_router.py +28 -0
  120. package/src/ai_data_scientist/lifecycle.py +221 -0
  121. package/src/ai_data_scientist/mcp_gateway.py +113 -0
  122. package/src/ai_data_scientist/mcp_runtime.py +194 -0
  123. package/src/ai_data_scientist/mcp_transport.py +53 -0
  124. package/src/ai_data_scientist/ml_modeling.py +451 -0
  125. package/src/ai_data_scientist/model_tuning.py +104 -0
  126. package/src/ai_data_scientist/notebook_audit.py +574 -0
  127. package/src/ai_data_scientist/project_manager.py +243 -0
  128. package/src/ai_data_scientist/report_export.py +73 -0
  129. package/src/ai_data_scientist/sensitivity.py +445 -0
  130. package/src/ai_data_scientist/signal_analysis.py +201 -0
  131. package/src/ai_data_scientist/skill_packaging.py +40 -0
  132. package/src/ai_data_scientist/stats_analysis.py +88 -0
  133. package/src/ai_data_scientist/text_nlp.py +44 -0
  134. package/src/ai_data_scientist/timeseries.py +68 -0
  135. package/src/ai_data_scientist/visualization.py +708 -0
  136. package/src/ai_genomics_scientist/__init__.py +1 -0
  137. package/src/ai_genomics_scientist/differential_expression.py +147 -0
  138. package/src/ai_genomics_scientist/dispatch.py +267 -0
  139. package/src/ai_genomics_scientist/evidence.py +45 -0
  140. package/src/ai_genomics_scientist/gene_set_enrichment.py +76 -0
  141. package/src/ai_genomics_scientist/sequence_alignment.py +97 -0
  142. package/src/ai_genomics_scientist/sequence_features.py +111 -0
  143. package/src/ai_genomics_scientist/splice_site_scoring.py +66 -0
  144. package/src/ai_genomics_scientist/validation.py +83 -0
  145. package/src/ai_genomics_scientist/variant_effect.py +147 -0
  146. package/src/ai_genomics_scientist/variant_pathogenicity.py +125 -0
  147. package/src/ai_materials_scientist/__init__.py +0 -0
  148. package/src/ai_materials_scientist/calphad.py +117 -0
  149. package/src/ai_materials_scientist/classical_monte_carlo.py +165 -0
  150. package/src/ai_materials_scientist/crystal_plasticity.py +184 -0
  151. package/src/ai_materials_scientist/dispatch.py +100 -0
  152. package/src/ai_materials_scientist/evidence.py +84 -0
  153. package/src/ai_materials_scientist/fem.py +279 -0
  154. package/src/ai_materials_scientist/kinetic_monte_carlo.py +145 -0
  155. package/src/ai_materials_scientist/molecular_dynamics.py +240 -0
  156. package/src/ai_materials_scientist/phase_field.py +167 -0
  157. package/src/ai_materials_scientist/validation.py +70 -0
  158. package/src/ai_scientist/__init__.py +1 -0
  159. package/src/ai_scientist/completion_gate.py +15 -0
  160. package/src/ai_scientist/data_analysis.py +46 -0
  161. package/src/ai_scientist/evidence_registry.py +99 -0
  162. package/src/ai_scientist/experimental_design.py +20 -0
  163. package/src/ai_scientist/language.py +14 -0
  164. package/src/ai_scientist/latex_renderer.py +41 -0
  165. package/src/ai_scientist/literature_review.py +37 -0
  166. package/src/ai_scientist/manifest.py +87 -0
  167. package/src/ai_scientist/manuscript.py +94 -0
  168. package/src/ai_scientist/mcp_config.py +76 -0
  169. package/src/ai_scientist/mcp_external.py +42 -0
  170. package/src/ai_scientist/mcp_failures.py +23 -0
  171. package/src/ai_scientist/mcp_gateway.py +38 -0
  172. package/src/ai_scientist/mcp_managed.py +180 -0
  173. package/src/ai_scientist/npm_packaging.py +49 -0
  174. package/src/ai_scientist/orchestrator.py +133 -0
  175. package/src/ai_scientist/peer_review.py +60 -0
  176. package/src/ai_scientist/phase_gate.py +74 -0
  177. package/src/ai_scientist/phase_state.py +230 -0
  178. package/src/ai_scientist/presentation.py +56 -0
  179. package/src/ai_scientist/project_config.py +31 -0
  180. package/src/ai_scientist/project_handle.py +74 -0
  181. package/src/ai_scientist/reproducibility.py +20 -0
  182. package/src/ai_scientist/research_planning.py +20 -0
  183. package/src/ai_scientist/skill_invocation.py +21 -0
  184. package/src/ai_scientist/tdd_gate.py +99 -0
  185. package/src/ai_structural_biology_scientist/__init__.py +0 -0
  186. package/src/ai_structural_biology_scientist/contact_map.py +87 -0
  187. package/src/ai_structural_biology_scientist/dispatch.py +269 -0
  188. package/src/ai_structural_biology_scientist/evidence.py +43 -0
  189. package/src/ai_structural_biology_scientist/hydrophobicity.py +101 -0
  190. package/src/ai_structural_biology_scientist/protein_docking_score.py +104 -0
  191. package/src/ai_structural_biology_scientist/secondary_structure.py +95 -0
  192. package/src/ai_structural_biology_scientist/structural_similarity.py +74 -0
  193. package/src/ai_structural_biology_scientist/validation.py +100 -0
@@ -0,0 +1,49 @@
1
+ # Technical proposal type
2
+
3
+ A technical proposal asks decision-makers to approve a technical approach,
4
+ budget, and delivery plan. It is broader than an ADR: it must connect the
5
+ architecture to measurable outcomes, implementation cost, risks, and a
6
+ recorded decision.
7
+
8
+ This doctype is for an internal approval proposal. For a supplier's
9
+ technical bid in response to an RFP, structure the response against the
10
+ RFP's requirement IDs, requested proposal contents, pricing, and contract
11
+ deviations instead of using this template.
12
+
13
+ ## Target reader
14
+
15
+ The person or group accountable for approving the investment, accepting the
16
+ trade-offs, and assigning implementation ownership.
17
+
18
+ ## Settle before writing
19
+
20
+ - The exact decision or approval being requested
21
+ - The current problem and measurable target outcome
22
+ - Budget, deadline, security, compliance, and staffing constraints
23
+ - At least one alternative, including the current-state baseline
24
+ - The evaluation period used for total cost of ownership
25
+
26
+ ## Template
27
+
28
+ Start from `assets/templates/technical-proposal.md`.
29
+ The template is the Japanese-language skeleton; translate its headings when
30
+ the target document is English.
31
+
32
+ ## Recommended skeleton
33
+
34
+ 1. Decision requested and executive summary
35
+ 2. Background, measurable goals, and non-goals
36
+ 3. Proposed architecture, data, and security
37
+ 4. Delivery, rollout, rollback, cost, and staffing
38
+ 5. Alternatives using shared cost, time, effort, and risk axes
39
+ 6. Risks, success metrics, unresolved questions, and decision record
40
+
41
+ ## Checklist
42
+
43
+ - [ ] Is the requested decision stated before the implementation detail?
44
+ - [ ] Are goals measurable, with an action if a target is missed?
45
+ - [ ] Are non-goals, assumptions, and constraints explicit?
46
+ - [ ] Does the comparison include a current-state baseline and shared axes?
47
+ - [ ] Are initial cost, annual recurring cost, and TCO period comparable?
48
+ - [ ] Are rollout, rollback, security, risks, and ownership covered?
49
+ - [ ] Can the final approver, date, and decision be recorded in the document?
@@ -0,0 +1,67 @@
1
+ # Test plan type
2
+
3
+ A test plan defines how requirements and quality risks will be verified,
4
+ which environments and data are needed, and what evidence permits a release
5
+ or acceptance decision. It covers planning and traceability rather than
6
+ replacing executable test code.
7
+
8
+ ## Target reader
9
+
10
+ Test leads, developers, product owners, business acceptance testers,
11
+ operators, security reviewers, and release approvers.
12
+
13
+ ## Settle before writing
14
+
15
+ - The approved requirements and design baselines
16
+ - The approved security-design baseline and security test IDs, when present
17
+ - In-scope systems, environments, platforms, and quality attributes
18
+ - The highest-impact quality risks and required test levels
19
+ - Measurable entry, exit, and release criteria
20
+ - Environment, data, tooling, staffing, and schedule constraints
21
+ - Defect severity definitions and residual-risk approval authority
22
+
23
+ ## Responsibility boundary
24
+
25
+ Define the verification strategy, cases, criteria, ownership, and evidence.
26
+ Keep detailed automation implementation in test code. A test plan must not
27
+ weaken an approved acceptance criterion; record conflicts as open issues and
28
+ resolve them through requirement change control.
29
+
30
+ The test section in `system-design` is sufficient while verification remains
31
+ an integrated design summary. Use a standalone `test-plan` when execution
32
+ needs its own environments, schedule, evidence, release gates, or approvers.
33
+ When both exist, the test plan is authoritative for test execution and
34
+ release evidence, while the system design retains the architectural rationale.
35
+ When a `security-design` exists, import its security test, threat, and control
36
+ IDs. Preserve `SEC-TC-*` as the planned security-test identity and map it to
37
+ the executable `TC-*` case that produces release evidence.
38
+
39
+ ## Template
40
+
41
+ Start from `assets/templates/test-plan.md`.
42
+ The template is the Japanese-language skeleton; translate its headings when
43
+ the target document is English.
44
+
45
+ ## Recommended skeleton
46
+
47
+ 1. Agreement target, baselines, scope, quality goals, and risks
48
+ 2. Test levels, non-functional testing, environment, and data
49
+ 3. Entry, exit, release, and residual-risk criteria
50
+ 4. Requirement-to-test traceability and defect management
51
+ 5. Schedule, ownership, evidence, risks, and approval
52
+
53
+ ## Checklist
54
+
55
+ - [ ] Are the requirement and design baselines uniquely identified?
56
+ - [ ] Are scope, exclusions, environments, platforms, data, and production
57
+ differences explicit?
58
+ - [ ] Does the strategy prioritize tests using concrete quality risks?
59
+ - [ ] Are functional and non-functional criteria measurable?
60
+ - [ ] Can every Must requirement and acceptance condition be traced to tests?
61
+ - [ ] Can every applicable security test, threat, and control be traced from
62
+ the security design to an executable case and its evidence?
63
+ - [ ] Are entry, exit, defect, release, and residual-risk criteria objective?
64
+ - [ ] Are suspension and resumption conditions defined for blocked or invalid
65
+ test cycles?
66
+ - [ ] Are evidence storage, ownership, schedule, and approval defined?
67
+ - [ ] Are test-data privacy, cleanup, and environment reset covered?
@@ -0,0 +1,58 @@
1
+ # User manual / how-to guide / tutorial type
2
+
3
+ For this doctype, quality is almost entirely determined by "can the reader
4
+ actually reproduce this by following it", so apply it more strictly than
5
+ the other types.
6
+
7
+ ## Target reader
8
+
9
+ Someone using the target product/feature for the first time, or after a
10
+ long gap. Assume thin prior knowledge of jargon.
11
+
12
+ ## Settle before writing
13
+
14
+ 1. **Floor of prior knowledge**: state up front "this guide assumes you
15
+ already know X". Without it, the reader pays a recurring cost of
16
+ deciding whether they're the intended audience.
17
+ 2. **Completion condition**: at the end of the steps, state what "success"
18
+ looks like in a verifiable form (a screen shown, a value returned, a
19
+ file produced).
20
+
21
+ ## Recommended skeleton
22
+
23
+ 1. **What this guide gets you**: the first three lines (rule 1 of the
24
+ structure constitution).
25
+ 2. **Prerequisites**: required permissions, installed software, versions.
26
+ A separate section, before the steps.
27
+ 3. **Steps**: one action per numbered step (rule 4). Each step has three
28
+ parts:
29
+ - the action to take (command/click target)
30
+ - how the screen/output changes afterward (so the reader can
31
+ self-verify they're on track)
32
+ - any tricky branch point, noted right there (not collected at the end)
33
+ 4. **Completion check**: a concrete way to verify "if you see this,
34
+ you've succeeded".
35
+ 5. **Troubleshooting**: symptom → cause → fix, as a table. Avoid phrasing
36
+ that just offloads the problem to the reader, like "if you see an
37
+ error, contact your administrator".
38
+
39
+ ## Tutorial-specific notes
40
+
41
+ - A tutorial's goal is "one success experience via the shortest path", not
42
+ exhaustive coverage. Move advanced options to a "further reading"
43
+ section instead of lengthening the main steps.
44
+ - Placing a verification point (screenshot, expected output sample) right
45
+ after each step lets the reader proceed without doubt.
46
+
47
+ ## Checklist
48
+
49
+ - [ ] Are prerequisites (permissions/environment/pre-installs) stated in
50
+ their own section before the steps?
51
+ - [ ] Is each step a single action, with information to confirm the state
52
+ change after executing it?
53
+ - [ ] Is the completion condition stated in a verifiable form (screen,
54
+ output, artifact)?
55
+ - [ ] Is troubleshooting in "symptom → cause → fix" form, without
56
+ offloading action entirely to the reader?
57
+ - [ ] Is jargon given a brief explanation on first use (relative to the
58
+ target reader's prior knowledge)?
@@ -0,0 +1,84 @@
1
+ # White Paper type
2
+
3
+ A White Paper helps a defined audience understand a consequential problem,
4
+ evaluate evidence, and reach an informed conclusion. It may explain an
5
+ emerging topic, establish a point of view, or describe a solution pattern,
6
+ but it must distinguish evidence from interpretation and must not disguise
7
+ marketing claims as independent analysis.
8
+
9
+ ## Target reader
10
+
11
+ Decision-makers, practitioners, evaluators, customers, partners, regulators,
12
+ or industry readers who need a credible explanation and a defensible basis
13
+ for action.
14
+
15
+ ## Settle before writing
16
+
17
+ - The reader's decision, question, or misconception the paper addresses
18
+ - The central claim and what evidence could weaken or disprove it
19
+ - The publication scope, date boundary, geography, and intended longevity
20
+ - The research method and acceptable source quality
21
+ - The publisher's relationship to products, services, sponsors, or cited data
22
+ - The desired next action, without overstating certainty
23
+
24
+ ## Responsibility boundary
25
+
26
+ A White Paper explains and supports a position. It is not a requirements
27
+ specification, implementation design, sales brochure, academic paper, or
28
+ contractual promise. Product examples may illustrate a finding, but factual
29
+ claims, estimates, customer outcomes, and recommendations must remain
30
+ traceable to named evidence and limitations.
31
+
32
+ Use `technical-proposal` for an internal approval request, `blueprint` for a
33
+ future state and transformation roadmap, and `white-paper` for an
34
+ evidence-led public or stakeholder-facing argument.
35
+
36
+ ## Template
37
+
38
+ Start from `assets/templates/white-paper.md`.
39
+ The template is the Japanese-language skeleton; translate its headings when
40
+ the target document is English.
41
+
42
+ ## Recommended skeleton
43
+
44
+ 1. Title, abstract, target reader, central claim, and disclosure
45
+ 2. Problem definition, scope, terminology, and research method
46
+ 3. Evidence-led findings with confidence and limitations
47
+ 4. Options, solution pattern, recommendation, and adoption considerations
48
+ 5. Counterarguments, risks, boundaries, and conclusion
49
+ 6. References, evidence ledger, glossary, authorship, and revision history
50
+
51
+ ## Checklist
52
+
53
+ - [ ] Does the abstract state the problem, conclusion, audience, and practical
54
+ consequence?
55
+ - [ ] Is `Analysis status: Completed / Incomplete / Not performed` recorded
56
+ separately from publication status, with `Evidence gaps` and the analysis
57
+ handoff location (or none)?
58
+ - [ ] For `Incomplete`, are evidence gaps and confidence visible and every
59
+ affected conclusion or recommendation expressed with conditional wording,
60
+ or returned to consulting-analyst? For `Not performed`, are the scope and
61
+ reason explicit without implying completed analysis?
62
+ - [ ] Is the central claim specific enough to challenge with evidence?
63
+ - [ ] Are facts, estimates, interpretations, and recommendations visibly
64
+ distinguished?
65
+ - [ ] Does every consequential claim link to a source or evidence identifier?
66
+ - [ ] Does the evidence ledger keep SRC source records separate from EVD analysis
67
+ evidence, preserving their IDs and meaning?
68
+ - [ ] Do claims and findings link relevant HYP / FND / EVD IDs from the handoff,
69
+ marking inapplicable links `N/A` with a reason without forcing consulting
70
+ IDs when no consulting handoff exists?
71
+ - [ ] Are interpretations preserved without counting as supporting evidence,
72
+ with `Supported` hypotheses backed by relevant Fact / Estimate evidence?
73
+ - [ ] Are source date, scope, method, sample, and limitations available?
74
+ - [ ] Are contradictory evidence and credible alternatives addressed?
75
+ - [ ] Are product, sponsor, author, and data-source relationships disclosed?
76
+ - [ ] Are publication approval and legal, compliance, and claims reviews
77
+ recorded, including approval to use customer names and quantitative
78
+ claims?
79
+ - [ ] Does `Approved for Publication` match a complete approval record, with
80
+ a reason recorded for every review marked not applicable?
81
+ - [ ] Are case studies labeled and prevented from implying universal results?
82
+ - [ ] Does the recommendation state where it does not apply?
83
+ - [ ] Can readers reproduce the source trail and identify the document's
84
+ publication and revision dates?
@@ -0,0 +1,66 @@
1
+ # Zenn article type
2
+
3
+ For this platform, the title lives in YAML frontmatter, not an in-body
4
+ heading, and readers decide whether to keep reading within the first
5
+ screen — apply rule 1 of the structure constitution to the frontmatter
6
+ `title` plus the lead paragraph together, not to an in-body '#'.
7
+
8
+ ## Target reader
9
+
10
+ A developer scanning Zenn's feed or search results, deciding in a few
11
+ seconds whether this article solves their problem right now.
12
+
13
+ ## Format
14
+
15
+ Markdown, with Zenn's frontmatter and a few platform-specific extensions
16
+ on top of GFM. No in-body '#' heading for the article title — sections
17
+ start at '##'.
18
+
19
+ ## Recommended frontmatter
20
+
21
+ ```yaml
22
+ ---
23
+ title: "<Article title>"
24
+ emoji: "<One emoji representing the article>"
25
+ type: "tech" # "tech" for a technical explanation, "idea" for an opinion/experience piece
26
+ topics: ["<1-5 lowercase topics>"]
27
+ published: false # flip to true only when ready to publish
28
+ ---
29
+ ```
30
+
31
+ - `title`, `emoji`, `type`, `topics`, `published` are all required by Zenn;
32
+ a missing or malformed field can silently block publishing.
33
+ - Pick `type: "tech"` vs `"idea"` deliberately — it changes how the
34
+ article is categorized and discovered, not just a label.
35
+
36
+ ## Recommended skeleton
37
+
38
+ 1. **Lead paragraph (right after frontmatter, before any heading)**: what
39
+ this article gets the reader, and why now — this is rule 1's "first
40
+ three lines", since there's no in-body title to carry it.
41
+ 2. **Prerequisites** (if applicable): versions, environment, prior
42
+ knowledge assumed, before any steps.
43
+ 3. **Body sections, one concern per `##` heading**: order them the way the
44
+ reader would naturally need the information (rule 3).
45
+ 4. **Code blocks with both a language tag and, where relevant, a filename**:
46
+ Zenn supports ` ```js:example.js ` — prefer this over a bare language
47
+ tag when the file identity matters to the reader.
48
+ 5. **`:::message` / `:::message alert` boxes for asides**: use these for
49
+ genuinely non-obvious caveats or warnings, not routine notes — overuse
50
+ dilutes their signal.
51
+ 6. **Closing summary or "next steps" section** (if the article is long):
52
+ what the reader should now be able to do, echoing the lead paragraph's
53
+ promise.
54
+
55
+ ## Checklist
56
+
57
+ - [ ] Are all five required frontmatter fields present and non-empty
58
+ (`title`, `emoji`, `type`, `topics`, `published`)?
59
+ - [ ] Does the lead paragraph right after frontmatter state what this
60
+ article gets the reader, since there's no in-body title to do that?
61
+ - [ ] Is `type` ("tech" vs "idea") a deliberate choice, not a default left
62
+ unconsidered?
63
+ - [ ] Do code blocks carry a language tag (and a filename where the file
64
+ identity matters)?
65
+ - [ ] Are `:::message` boxes reserved for genuinely non-obvious asides
66
+ rather than routine notes?
@@ -0,0 +1,110 @@
1
+ # Japanese prose optimization handoff
2
+
3
+ Use this pass after a Japanese document's structure and required information
4
+ are complete. The goal is to remove mechanical or translated-sounding prose
5
+ without changing the document's approved meaning, obligations, evidence, or
6
+ traceability.
7
+
8
+ The optimizer is kotonoha's original bundled `japanese-prose` skill.
9
+ Kotonoha owns document structure and completeness; `japanese-prose` owns
10
+ sentence-level clarity, rhythm, word choice, reading load, terminology, and
11
+ detection of repeated AI-like phrasing through GiNZA analysis.
12
+
13
+ ## Run this pass when
14
+
15
+ - The requested final language is Japanese, including a bilingual document
16
+ whose audience-facing prose is primarily Japanese.
17
+ - The task is `write` mode.
18
+ - The artifact is a living, multi-section document.
19
+ - The bundled `japanese-prose` skill is readable.
20
+
21
+ Skip it for English documents, generated machine-readable files, and source
22
+ code. Also skip atomic artifacts such as commit messages, PR descriptions,
23
+ issue reports, single release-note entries, and code comments/docstrings
24
+ unless the user explicitly requests prose polishing and supplies the prose in
25
+ a standalone file. For in-scope mixed-language documents, optimize only
26
+ Japanese prose.
27
+
28
+ ## Freeze these invariants
29
+
30
+ Give the prose optimizer the target file, doctype, reader, and intended
31
+ outcome. Require it to preserve:
32
+
33
+ - Heading hierarchy, section order, and doctype-required sections
34
+ - Requirement, risk, control, test, interface, and decision IDs
35
+ - Numbers, units, dates, proper nouns, citations, URLs, and source mappings
36
+ - Normative force such as Must / Should / May, approval states, and
37
+ acceptance criteria
38
+ - Tables, code blocks, commands, schemas, frontmatter keys, and placeholders
39
+ - Markdown emphasis spacing: keep ASCII half-width spaces (`U+0020`) between
40
+ surrounding prose and both sides of `**strong emphasis**` delimiters; never
41
+ substitute full-width spaces (`U+3000`), tabs, or non-breaking spaces
42
+ - Explicit assumptions, limitations, residual risks, and unresolved items
43
+
44
+ Heading wording may improve only when its meaning and hierarchy stay intact.
45
+ Never trade technical precision for conversational phrasing.
46
+
47
+ ## Optimization loop
48
+
49
+ 1. Invoke kotonoha's bundled `japanese-prose` through the host's
50
+ skill-loading mechanism. If the host exposes only skill files, resolve
51
+ `<tech-writer-dir>/../japanese-prose/SKILL.md` first, then check
52
+ `.github/skills/japanese-prose/SKILL.md`,
53
+ `.copilot/skills/japanese-prose/SKILL.md`, and
54
+ `$HOME/.copilot/skills/japanese-prose/SKILL.md`; expand `$HOME`, load the
55
+ discovered skill,
56
+ and follow its workflow.
57
+ 2. Ask the loaded skill to review and rewrite only the Japanese prose under
58
+ the frozen invariants.
59
+ 3. Let `<japanese-prose-dir>` be the directory containing the loaded
60
+ optimizer's `SKILL.md`. When its diagnostics are available, run the
61
+ optimizer's scripts with their qualified paths:
62
+
63
+ ```bash
64
+ uv run <japanese-prose-dir>/scripts/lint.py <target-file> --genre tech --json > <workdir>/prose-baseline.json
65
+ uv run <japanese-prose-dir>/scripts/lint.py <target-file> --genre tech --reading-load
66
+ uv run <japanese-prose-dir>/scripts/outline.py <target-file>
67
+ uv run <japanese-prose-dir>/scripts/terms.py <target-file>
68
+ ```
69
+
70
+ Do not substitute `skills/tech-writer/scripts/lint.py`; kotonoha's script
71
+ checks document structure and does not support these prose diagnostics.
72
+ 4. Triage findings in context. Do not perform blind global replacements;
73
+ retain a flagged expression when changing it would weaken precision or
74
+ alter a defined term.
75
+ 5. Re-run the optimizer's rubric and diagnostics after edits. One round is
76
+ one kotonoha-to-optimizer handoff and its returned edits. Allow at most
77
+ three rounds per §5 invocation; stop earlier when no actionable prose
78
+ findings remain. A later rubber-duck edit opens a new invocation limited
79
+ to the changed Japanese prose. Across the complete write workflow, do not
80
+ exceed 15 optimizer handoffs.
81
+ 6. Compare the optimized document against the frozen invariants. Revert any
82
+ violating edit, give the violated invariant back to the optimizer, and
83
+ retry within the round limit. If the violation cannot be resolved, report
84
+ `Japanese prose optimization did not converge`.
85
+ 7. Re-run kotonoha's doctype checklist and structural lint before
86
+ rubber-duck review.
87
+
88
+ ## Required status
89
+
90
+ When this pass is in scope (a living, multi-section document whose requested
91
+ final language is Japanese, in `write` mode), report exactly one status:
92
+
93
+ - `Japanese prose optimization completed`: the registered optimizer ran and
94
+ no actionable prose findings remain. Run diagnostics when available; if
95
+ `uv` or a diagnostic script is unavailable, note that limitation without
96
+ changing this status.
97
+ - `Japanese prose optimization not performed`: the bundled optimizer was
98
+ missing or unreadable, so no prose review or rewrite ran; include the
99
+ concrete reason. A standard `npx kotonoha install` should prevent this
100
+ state.
101
+ - `Japanese prose optimization did not converge`: three rounds completed with
102
+ unresolved actionable findings or invariant violations, or the optimizer
103
+ started but failed before producing a valid result, a required
104
+ post-rubber-duck rerun failed or could not start because all 15 handoffs
105
+ were already used; list the findings, violations, failure, and attempted
106
+ fixes.
107
+
108
+ Do not claim natural-language optimization based only on kotonoha's
109
+ structural lint. Documents outside the scope of this pass require no Japanese
110
+ optimization status.
@@ -0,0 +1,104 @@
1
+ # Technical Document Structure Constitution (8 rules)
2
+
3
+ Constraints to fix a technical document's *structure* before writing.
4
+ Sentence-level naturalness, vocabulary, and rhythm are out of scope here
5
+ (→ the domain of kotonoha's bundled `japanese-prose` skill).
6
+
7
+ ## Scope: living documents vs. atomic artifacts
8
+
9
+ These 8 rules assume a **living, multi-section reference document** —
10
+ README, design doc/ADR, API reference, release notes/CHANGELOG file as a
11
+ whole, user manual, requirements definition, system design, test plan,
12
+ operations runbook, migration plan, security design, technical proposal,
13
+ Blueprint, White Paper, RFI/RFP (including a supplier's RFP response), or
14
+ Zenn/Qiita article. Apply all 8 rules to those doctypes. For Zenn and Qiita,
15
+ rule 1's article title lives in YAML frontmatter — see their
16
+ doctype reference files for the platform-specific fields. Zenn body sections
17
+ start at `##`; Qiita body sections start at `#` and use `##` for subsections.
18
+ Every other rule (code examples, disclosed limitations, etc.) still applies
19
+ verbatim.
20
+
21
+ **Atomic, single-purpose artifacts** — commit messages, PR descriptions,
22
+ issue reports, code comments/docstrings, and a single new entry appended
23
+ to an existing release-notes/CHANGELOG file — have their own skeleton in
24
+ `references/doctypes/pr-commit.md`, `references/doctypes/code-comments.md`,
25
+ and `references/doctypes/release-notes.md` that already encodes the
26
+ equivalent discipline in a form that fits their size (e.g. a PR
27
+ description's What/Why/How opens the same way rule 1 asks a README to; a
28
+ single release-notes entry opens with its version/date heading instead of
29
+ a title-plus-paragraph). Follow that doctype's own skeleton for those
30
+ instead of applying the heading-hierarchy and document-metadata rules
31
+ below verbatim; where the two disagree, the doctype reference wins.
32
+
33
+ ## Markdown emphasis spacing
34
+
35
+ In generated Markdown, add half-width spaces outside strong-emphasis
36
+ delimiters when they touch surrounding prose. Write
37
+ `これは **強調** になる` rather than `これは**強調**にならない`.
38
+ The spaces are unnecessary at a line boundary or next to punctuation, for
39
+ example `**重要**: 設定を確認する`. Use ASCII spaces (`U+0020`), not
40
+ full-width spaces (`U+3000`), tabs, or non-breaking spaces, immediately before
41
+ and after emphasis embedded in prose. Write `これは **「重要」** と説明する`,
42
+ not `これは **「重要」** と説明する`. Never put spaces inside the
43
+ delimiters.
44
+
45
+ ## 1. Say "what this is" and "the outcome" in the first three lines
46
+
47
+ Readers decide "is this relevant to me" within the first three lines. Don't
48
+ open with background or acknowledgments. State up front what the document is
49
+ for and what the reader can do after reading it.
50
+
51
+ - Bad (Japanese example): 「本プロジェクトは日々成長を続けており、多くの貢献者の協力により…」
52
+ - Good (Japanese example): 「kotonoha は技術文書の構成を整えるための Copilot スキルです。README・設計書・PR説明文などを型に沿って書けます。」
53
+
54
+ ## 2. Make headings labels that preview content
55
+
56
+ Generic labels like "Overview", "Usage", "Notes" tell the reader nothing
57
+ until they read the body. Include *what* is being overviewed or used.
58
+
59
+ - Bad: `## Overview` `## Usage` `## Notes`
60
+ - Good: `## What kotonoha solves` `## Installing the skill into .github/skills` `## Behavior without sudachipy installed`
61
+
62
+ ## 3. Order steps as executed, and put prerequisites before the steps
63
+
64
+ Readers execute a document top to bottom. Placing prerequisites
65
+ (dependencies, permissions, prior setup) mid-way or at the end forces
66
+ readers to redo work partway through. Always give prerequisites their own
67
+ section before the steps.
68
+
69
+ ## 4. One action per numbered step
70
+
71
+ Don't pack multiple actions into one numbered item. "Install A, configure B,
72
+ and run C" should be three steps. Numbered steps let readers track exactly
73
+ where they are.
74
+
75
+ ## 5. Put a concrete example or number right after an abstract term
76
+
77
+ Words like "fast", "safe", "flexible", "easy to understand" convey nothing
78
+ by themselves. Follow them immediately with a concrete number, condition, or
79
+ code example.
80
+
81
+ - Bad: "lint.py runs fast."
82
+ - Good: "lint.py processes a 10,000-character document in under 1 second (excluding sudachipy initialization)."
83
+
84
+ ## 6. Keep code examples minimal and runnable; mark omissions explicitly
85
+
86
+ A code example that doesn't run as copy-pasted costs the reader time before
87
+ they realize it's broken. When omitting something, mark it explicitly (e.g.
88
+ `# ...`) and note that the reader should substitute their own values.
89
+
90
+ ## 7. Disclose known limitations and unsupported cases; don't hide them
91
+
92
+ "Not yet supported" or "doesn't work under this condition" doesn't lower a
93
+ document's value — it prevents the reader's wasted effort. State it in its
94
+ own section instead of omitting it.
95
+
96
+ ## 8. Keep a last-updated date or target version/branch where staleness is a real risk
97
+
98
+ A living reference document (README, design doc, API reference, user
99
+ manual) starts going stale the moment it's written. When such a document
100
+ could plausibly be read long after it stops being accurate, state when or
101
+ against what version/branch it was written, so the reader doesn't pay an
102
+ extra verification cost of "is this still accurate?" Skip this rule for
103
+ artifacts whose own metadata already carries that information (a commit
104
+ timestamp, a PR's merge date, a versioned release-notes heading).