oh-my-openidea 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 (122) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +130 -0
  3. package/dist/agents/architect.d.ts +2 -0
  4. package/dist/agents/critic.d.ts +2 -0
  5. package/dist/agents/designer.d.ts +2 -0
  6. package/dist/agents/explorer.d.ts +2 -0
  7. package/dist/agents/fixer.d.ts +2 -0
  8. package/dist/agents/index.d.ts +22 -0
  9. package/dist/agents/librarian.d.ts +2 -0
  10. package/dist/agents/oracle.d.ts +2 -0
  11. package/dist/agents/orchestrator.d.ts +15 -0
  12. package/dist/agents/surveyor.d.ts +2 -0
  13. package/dist/agents/synthesizer.d.ts +2 -0
  14. package/dist/agents/writer.d.ts +2 -0
  15. package/dist/background/background-manager.d.ts +175 -0
  16. package/dist/background/index.d.ts +2 -0
  17. package/dist/background/tmux-session-manager.d.ts +63 -0
  18. package/dist/cli/chutes-selection.d.ts +3 -0
  19. package/dist/cli/config-io.d.ts +26 -0
  20. package/dist/cli/config-manager.d.ts +12 -0
  21. package/dist/cli/custom-skills.d.ts +29 -0
  22. package/dist/cli/dynamic-model-selection.d.ts +14 -0
  23. package/dist/cli/external-rankings.d.ts +8 -0
  24. package/dist/cli/index.d.ts +2 -0
  25. package/dist/cli/index.js +17102 -0
  26. package/dist/cli/install.d.ts +2 -0
  27. package/dist/cli/model-key-normalization.d.ts +1 -0
  28. package/dist/cli/model-selection.d.ts +30 -0
  29. package/dist/cli/opencode-models.d.ts +18 -0
  30. package/dist/cli/opencode-selection.d.ts +3 -0
  31. package/dist/cli/paths.d.ts +9 -0
  32. package/dist/cli/precedence-resolver.d.ts +16 -0
  33. package/dist/cli/providers.d.ts +204 -0
  34. package/dist/cli/research.d.ts +2 -0
  35. package/dist/cli/scoring-v2/engine.d.ts +4 -0
  36. package/dist/cli/scoring-v2/features.d.ts +3 -0
  37. package/dist/cli/scoring-v2/index.d.ts +4 -0
  38. package/dist/cli/scoring-v2/types.d.ts +17 -0
  39. package/dist/cli/scoring-v2/weights.d.ts +2 -0
  40. package/dist/cli/skills.d.ts +52 -0
  41. package/dist/cli/system.d.ts +6 -0
  42. package/dist/cli/types.d.ts +140 -0
  43. package/dist/config/agent-mcps.d.ts +15 -0
  44. package/dist/config/constants.d.ts +14 -0
  45. package/dist/config/index.d.ts +4 -0
  46. package/dist/config/loader.d.ts +30 -0
  47. package/dist/config/schema.d.ts +218 -0
  48. package/dist/config/utils.d.ts +10 -0
  49. package/dist/hooks/auto-update-checker/cache.d.ts +6 -0
  50. package/dist/hooks/auto-update-checker/checker.d.ts +28 -0
  51. package/dist/hooks/auto-update-checker/constants.d.ts +11 -0
  52. package/dist/hooks/auto-update-checker/index.d.ts +17 -0
  53. package/dist/hooks/auto-update-checker/types.d.ts +23 -0
  54. package/dist/hooks/delegate-task-retry/guidance.d.ts +2 -0
  55. package/dist/hooks/delegate-task-retry/hook.d.ts +8 -0
  56. package/dist/hooks/delegate-task-retry/index.d.ts +4 -0
  57. package/dist/hooks/delegate-task-retry/patterns.d.ts +11 -0
  58. package/dist/hooks/idea-quality-gate/index.d.ts +22 -0
  59. package/dist/hooks/index.d.ts +7 -0
  60. package/dist/hooks/json-error-recovery/hook.d.ts +18 -0
  61. package/dist/hooks/json-error-recovery/index.d.ts +1 -0
  62. package/dist/hooks/phase-reminder/index.d.ts +25 -0
  63. package/dist/hooks/post-read-nudge/index.d.ts +18 -0
  64. package/dist/index.d.ts +5 -0
  65. package/dist/index.js +29330 -0
  66. package/dist/mcp/arxiv.d.ts +10 -0
  67. package/dist/mcp/context7.d.ts +6 -0
  68. package/dist/mcp/google-scholar.d.ts +10 -0
  69. package/dist/mcp/grep-app.d.ts +6 -0
  70. package/dist/mcp/index.d.ts +6 -0
  71. package/dist/mcp/semantic-scholar.d.ts +12 -0
  72. package/dist/mcp/types.d.ts +12 -0
  73. package/dist/mcp/websearch.d.ts +6 -0
  74. package/dist/research/connectors.d.ts +6 -0
  75. package/dist/research/defaults.d.ts +2 -0
  76. package/dist/research/index.d.ts +4 -0
  77. package/dist/research/pipeline.d.ts +9 -0
  78. package/dist/research/store.d.ts +31 -0
  79. package/dist/research/text.d.ts +8 -0
  80. package/dist/research/types.d.ts +194 -0
  81. package/dist/tools/arxiv/index.d.ts +7 -0
  82. package/dist/tools/ast-grep/cli.d.ts +15 -0
  83. package/dist/tools/ast-grep/constants.d.ts +25 -0
  84. package/dist/tools/ast-grep/downloader.d.ts +5 -0
  85. package/dist/tools/ast-grep/index.d.ts +10 -0
  86. package/dist/tools/ast-grep/tools.d.ts +3 -0
  87. package/dist/tools/ast-grep/types.d.ts +30 -0
  88. package/dist/tools/ast-grep/utils.d.ts +4 -0
  89. package/dist/tools/background.d.ts +13 -0
  90. package/dist/tools/google-scholar/index.d.ts +8 -0
  91. package/dist/tools/grep/cli.d.ts +3 -0
  92. package/dist/tools/grep/constants.d.ts +18 -0
  93. package/dist/tools/grep/downloader.d.ts +3 -0
  94. package/dist/tools/grep/index.d.ts +5 -0
  95. package/dist/tools/grep/tools.d.ts +2 -0
  96. package/dist/tools/grep/types.d.ts +35 -0
  97. package/dist/tools/grep/utils.d.ts +2 -0
  98. package/dist/tools/idea-store/index.d.ts +7 -0
  99. package/dist/tools/index.d.ts +6 -0
  100. package/dist/tools/lsp/client.d.ts +42 -0
  101. package/dist/tools/lsp/config.d.ts +4 -0
  102. package/dist/tools/lsp/constants.d.ts +8 -0
  103. package/dist/tools/lsp/index.d.ts +3 -0
  104. package/dist/tools/lsp/tools.d.ts +5 -0
  105. package/dist/tools/lsp/types.d.ts +28 -0
  106. package/dist/tools/lsp/utils.d.ts +21 -0
  107. package/dist/tools/paper-reader/index.d.ts +8 -0
  108. package/dist/tools/research.d.ts +3 -0
  109. package/dist/tools/semantic-scholar/index.d.ts +12 -0
  110. package/dist/utils/agent-variant.d.ts +47 -0
  111. package/dist/utils/env.d.ts +1 -0
  112. package/dist/utils/index.d.ts +6 -0
  113. package/dist/utils/logger.d.ts +1 -0
  114. package/dist/utils/polling.d.ts +21 -0
  115. package/dist/utils/tmux.d.ts +32 -0
  116. package/dist/utils/zip-extractor.d.ts +1 -0
  117. package/package.json +66 -0
  118. package/src/skills/experiment-design/SKILL.md +153 -0
  119. package/src/skills/hypothesis-generation/SKILL.md +102 -0
  120. package/src/skills/idea-critique/SKILL.md +129 -0
  121. package/src/skills/literature-review/SKILL.md +95 -0
  122. package/src/skills/paper-outline/SKILL.md +137 -0
@@ -0,0 +1,95 @@
1
+ ```skill
2
+ ---
3
+ name: literature-review
4
+ description: Conduct a structured CS/ML literature survey — searches arXiv and Semantic Scholar, synthesizes findings, and produces an annotated bibliography with a research landscape map.
5
+ ---
6
+ ```
7
+
8
+ # Literature Review Skill
9
+
10
+ This skill orchestrates a **comprehensive literature survey** on a CS/ML topic by coordinating Surveyor and Synthesizer agents through a structured workflow.
11
+
12
+ ## When to Use
13
+
14
+ Use this skill when:
15
+ - Starting research on a new topic and need an overview of the field
16
+ - Building a related work section for a paper
17
+ - Identifying research gaps before generating hypotheses
18
+ - Constructing an annotated bibliography on a specific concept
19
+
20
+ ## Workflow
21
+
22
+ ### Step 1: Define Scope
23
+
24
+ Ask the user (or infer from context):
25
+ - **Topic**: Specific research topic or keyword (e.g., "chain-of-thought prompting", "diffusion models for 3D generation")
26
+ - **Sub-fields**: Which arXiv categories to prioritize (e.g., cs.LG, cs.CL, cs.CV)
27
+ - **Time range**: Default to last 3 years; extend to 5+ for foundational topics
28
+ - **Depth**: Quick overview (10–15 papers) vs. deep survey (30–50 papers)
29
+
30
+ ### Step 2: Initial Search (Surveyor)
31
+
32
+ Launch **@surveyor** with 3 parallel searches:
33
+ 1. Primary query: exact topic keywords on arXiv + Semantic Scholar
34
+ 2. Broad query: related concepts and parent topic
35
+ 3. Survey/review query: `"{topic} survey"` or `"{topic} review"` for overview papers
36
+
37
+ Example delegation:
38
+ ```
39
+ @surveyor: Search arXiv for "mechanistic interpretability transformers" in cs.LG and cs.AI,
40
+ last 3 years, 20 results. Also search Semantic Scholar for highly-cited papers (>50 citations)
41
+ on the same topic.
42
+ ```
43
+
44
+ ### Step 3: Citation Expansion (Surveyor)
45
+
46
+ From the initial results, select 3–5 most relevant papers and use `citation_graph` to find:
47
+ - Influential papers that cite them (forward expansion)
48
+ - Key references they all share (backward expansion to foundational work)
49
+
50
+ ### Step 4: Synthesis (Synthesizer)
51
+
52
+ Launch **@synthesizer** with the full paper corpus to produce:
53
+ - **Landscape map**: Main research threads and how they relate
54
+ - **Timeline**: How the field has evolved year by year
55
+ - **Recurring benchmarks**: Which datasets/tasks are standard
56
+ - **Open problems**: Explicitly mentioned limitations and future work
57
+
58
+ ### Step 5: Output
59
+
60
+ Produce a structured literature review document with:
61
+
62
+ ```markdown
63
+ # Literature Review: [Topic]
64
+
65
+ ## Overview
66
+ [2–3 paragraph summary of the field]
67
+
68
+ ## Paper Categories
69
+ ### [Category 1]
70
+ - [arXiv:XXXX] **Title** — Authors (Year) [N citations]
71
+ *Why relevant*: ...
72
+
73
+ ### [Category 2]
74
+ ...
75
+
76
+ ## Research Landscape
77
+ [Synthesizer's landscape map]
78
+
79
+ ## Open Problems
80
+ [Synthesizer's gap analysis]
81
+
82
+ ## Recommended Starting Papers
83
+ [Top 5 papers for a newcomer, with reading order]
84
+ ```
85
+
86
+ ### Step 6: Save
87
+
88
+ Save the landscape map and paper list to the idea store using `idea_store` with action `save` (status: `draft`) for future reference when generating hypotheses.
89
+
90
+ ## Quality Criteria
91
+
92
+ - Minimum 15 papers for any useful survey
93
+ - Must include at least one survey/review paper if one exists
94
+ - All paper IDs must be verified (arXiv IDs or Semantic Scholar IDs)
95
+ - Open problems must be grounded in specific papers (not assumed)
@@ -0,0 +1,137 @@
1
+ ```skill
2
+ ---
3
+ name: paper-outline
4
+ description: Generate a full publication-ready paper outline with section summaries, abstract, and introduction draft. Designed for ideas that have passed critique and have an experimental plan.
5
+ ---
6
+ ```
7
+
8
+ # Paper Outline Skill
9
+
10
+ This skill produces a **structured, submission-ready paper outline** for a validated research idea with a complete experimental plan. Output is formatted for LaTeX / Overleaf manuscript preparation.
11
+
12
+ ## When to Use
13
+
14
+ Use this skill when:
15
+ - Ready to start writing after idea is validated and experiment plan is complete
16
+ - Preparing a paper proposal for advisor/collaborator review
17
+ - Creating a workshop paper or short submission
18
+ - Generating an outline before running experiments (to align on scope)
19
+
20
+ ## Prerequisites
21
+
22
+ - Validated research idea (status: `validated` or `in_progress` in idea store)
23
+ - Experimental plan (from `experiment-design` skill)
24
+ - Related work list (from `literature-review` skill)
25
+
26
+ ## Workflow
27
+
28
+ ### Step 1: Context Ingestion
29
+
30
+ Collect and structure:
31
+ - Idea: problem statement + core approach
32
+ - Experimental plan: method, baselines, datasets, metrics
33
+ - Related papers: grouped by sub-topic
34
+ - Key claims: what the paper proves (1 main claim + 2–3 supporting claims)
35
+
36
+ ### Step 2: Title and Framing (Self — Orchestrator)
37
+
38
+ Generate 3 candidate titles following these patterns:
39
+ - **Descriptive**: "Method Name: Improving X by Y via Z"
40
+ - **Problem-framing**: "Why Does X Fail? Insights and a Solution via Y"
41
+ - **Results-driven**: "X% Better Y with Simple Z"
42
+
43
+ Select the best one with brief justification.
44
+
45
+ ### Step 3: Outline Generation (Writer)
46
+
47
+ Launch **@writer** with the full context. The writer produces:
48
+
49
+ ```
50
+ Paper: [Title]
51
+
52
+ Abstract (draft):
53
+ [150–250 words covering: motivation → problem → approach → key result → significance]
54
+
55
+ Section 1: Introduction
56
+ - Hook: [what readers care about]
57
+ - Problem statement: [precise formulation with {formal notation placeholder}]
58
+ - Our approach: [brief preview]
59
+ - Contributions: [3–5 bullet points — be specific: "We prove X", "We show Y improves Z by W%"]
60
+ - Organization: [one sentence]
61
+ Estimated length: 1.5–2 pages
62
+
63
+ Section 2: Related Work
64
+ - [Subsection for each related area, 2–4 papers each]
65
+ - Position statement: [explicit contrast with our approach for each subsection]
66
+ Estimated length: 1–1.5 pages
67
+
68
+ Section 3: Method / Approach / Model
69
+ - 3.1 Problem Formulation: [{formal notation} — define all variables]
70
+ - 3.2 [Core component 1]: [description + figure placeholder]
71
+ - 3.3 [Core component 2]: [description + equation placeholders]
72
+ - 3.4 Theoretical Analysis: [if applicable — key theorems/proofs to include]
73
+ Estimated length: 2–3 pages
74
+
75
+ Section 4: Experiments
76
+ - 4.1 Experimental Setup: [datasets, baselines, metrics, hardware, hyperparams]
77
+ - 4.2 Main Results: [table placeholder — rows × columns × expected numbers]
78
+ - 4.3 Ablation Studies: [ablation table placeholder]
79
+ - 4.4 Analysis and Discussion: [key findings to highlight]
80
+ Estimated length: 2.5–3 pages
81
+
82
+ Section 5: Conclusion
83
+ - Summary: [2 sentences on what we showed]
84
+ - Limitations: [3 honest limitations — required by NeurIPS checklist]
85
+ - Future Work: [3 natural extensions]
86
+ Estimated length: 0.5 pages
87
+
88
+ References: [estimated 25–40 citations]
89
+
90
+ Total estimated page count: 8–10 pages (NeurIPS/ICML main track)
91
+ ```
92
+
93
+ ### Step 4: Section Drafts (Writer)
94
+
95
+ Optionally draft prose for:
96
+ - **Introduction** (usually best to draft early)
97
+ - **Abstract** (written last but planned first)
98
+ - **Related Work** (can be templated from literature survey)
99
+
100
+ Launch **@writer** for each section separately for higher quality.
101
+
102
+ ### Step 5: Checklist
103
+
104
+ Run the NeurIPS reproducibility checklist:
105
+ - [ ] All claims in the paper are supported by an experiment or proof
106
+ - [ ] Datasets are publicly available or release plan is described
107
+ - [ ] Compute requirements are stated
108
+ - [ ] All hyperparameters are reported
109
+ - [ ] Code will be released (checkbox required)
110
+ - [ ] Limitations section exists
111
+
112
+ ### Step 6: Save and Output
113
+
114
+ Update idea in `idea_store` (action: `update`):
115
+ - Store outline in `outline` field
116
+ - Update status to `in_progress` (if not already)
117
+
118
+ Produce a final markdown document:
119
+
120
+ ```markdown
121
+ # Paper Outline: [Title]
122
+ [Full structured outline from Step 3]
123
+
124
+ ## Section Drafts
125
+ [If requested]
126
+
127
+ ## NeurIPS Checklist
128
+ [From Step 5]
129
+ ```
130
+
131
+ ## Quality Criteria
132
+
133
+ - Title must avoid hyperbole ("novel", "revolutionary", "unprecedented")
134
+ - Contributions must be specific and verifiable claims (not vague improvements)
135
+ - Abstract must mention the key quantitative result (even if estimated)
136
+ - Limitations section must be honest (not "limited to supervised learning" as the only limitation)
137
+ - Introduction must contrast with the 3 most related papers explicitly