opencode-writer-swarm 1.0.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 (47) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -0
  3. package/dist/agents/copy-editor.d.ts +2 -0
  4. package/dist/agents/definitions.d.ts +2 -0
  5. package/dist/agents/editor-in-chief.d.ts +2 -0
  6. package/dist/agents/fact-checker.d.ts +2 -0
  7. package/dist/agents/index.d.ts +12 -0
  8. package/dist/agents/index.test.d.ts +1 -0
  9. package/dist/agents/reader-advocate.d.ts +2 -0
  10. package/dist/agents/researcher.d.ts +2 -0
  11. package/dist/agents/section-editor.d.ts +2 -0
  12. package/dist/agents/types.d.ts +11 -0
  13. package/dist/agents/writer.d.ts +2 -0
  14. package/dist/config/constants.d.ts +3 -0
  15. package/dist/config/index.d.ts +3 -0
  16. package/dist/config/loader.d.ts +49 -0
  17. package/dist/config/loader.test.d.ts +1 -0
  18. package/dist/config/schema.d.ts +22 -0
  19. package/dist/hooks/delegation-tracker.d.ts +5 -0
  20. package/dist/hooks/extractors.d.ts +3 -0
  21. package/dist/hooks/extractors.test.d.ts +1 -0
  22. package/dist/hooks/index.d.ts +4 -0
  23. package/dist/hooks/system-enhancer.d.ts +3 -0
  24. package/dist/hooks/utils.d.ts +37 -0
  25. package/dist/hooks/utils.test.d.ts +1 -0
  26. package/dist/index.d.ts +11 -0
  27. package/dist/index.js +26618 -0
  28. package/dist/state.d.ts +24 -0
  29. package/dist/tools/file-manager.d.ts +35 -0
  30. package/dist/tools/index.d.ts +1 -0
  31. package/dist/utils/errors.d.ts +5 -0
  32. package/dist/utils/index.d.ts +2 -0
  33. package/dist/utils/logger.d.ts +3 -0
  34. package/package.json +53 -0
  35. package/prompts/copy-editor.md +100 -0
  36. package/prompts/editor-in-chief.md +112 -0
  37. package/prompts/fact-checker.md +52 -0
  38. package/prompts/reader-advocate.md +64 -0
  39. package/prompts/researcher.md +49 -0
  40. package/prompts/section-editor.md +67 -0
  41. package/prompts/writer.md +59 -0
  42. package/references/quality-rubric.md +40 -0
  43. package/references/slop-dictionary.md +118 -0
  44. package/references/style-guide.md +54 -0
  45. package/templates/brief-template.md +10 -0
  46. package/templates/context-template.md +7 -0
  47. package/templates/plan-template.md +18 -0
@@ -0,0 +1,118 @@
1
+ # AI Slop Dictionary
2
+
3
+ This is the definitive list of patterns that mark text as AI-generated.
4
+ Every pattern here is BANNED from output. No exceptions.
5
+
6
+ ## Banned Punctuation
7
+
8
+ | Pattern | Replacement |
9
+ |---|---|
10
+ | Em dash (---) anywhere | Comma, period, colon, semicolon, or parentheses |
11
+ | Ellipsis (...) for dramatic effect | Period or restructure sentence |
12
+ | Excessive exclamation marks | Period |
13
+
14
+ ## Banned Words
15
+
16
+ These words are statistically overrepresented in LLM output compared
17
+ to human writing. Do not use them.
18
+
19
+ ### Transitional Filler
20
+ delve, moreover, furthermore, additionally, notably, importantly,
21
+ interestingly, significantly, fundamentally, essentially, ultimately,
22
+ consequently, subsequently, nevertheless, nonetheless, notwithstanding,
23
+ henceforth, thereby, wherein, thereof, hereby
24
+
25
+ ### Inflated Adjectives
26
+ comprehensive, robust, cutting-edge, game-changing, groundbreaking,
27
+ innovative, transformative, revolutionary, paradigm-shifting,
28
+ state-of-the-art, world-class, best-in-class, holistic, synergistic,
29
+ dynamic, pivotal, crucial, vital, essential, indispensable, unparalleled,
30
+ unprecedented, remarkable
31
+
32
+ ### Hedging Stack Words (ban clustered use)
33
+ potentially, arguably, perhaps, seemingly, apparently, ostensibly,
34
+ purportedly, conceivably, possibly, presumably, plausibly
35
+
36
+ ### Corporate/Marketing Speak
37
+ leverage (as verb), synergy, optimize, streamline, facilitate,
38
+ implement, utilize (use "use"), ecosystem, landscape, space (as in
39
+ "the AI space"), stakeholder, value proposition, north star, deep dive,
40
+ double down, move the needle, low-hanging fruit, at the end of the day,
41
+ circle back, touch base, take it offline
42
+
43
+ ### Sycophantic Filler
44
+ great question, that's a really important point, absolutely,
45
+ you're absolutely right, I'd be happy to, certainly, of course,
46
+ let me help you with that
47
+
48
+ ## Banned Sentence Openers
49
+
50
+ Do not start any sentence with these phrases:
51
+ - "It's worth noting that..."
52
+ - "It's important to note that..."
53
+ - "In today's [anything] landscape..."
54
+ - "In an era of..."
55
+ - "In the ever-evolving world of..."
56
+ - "When it comes to..."
57
+ - "At its core..."
58
+ - "The reality is..."
59
+ - "The truth is..."
60
+ - "Make no mistake..."
61
+ - "Let's be clear..."
62
+ - "Here's the thing..."
63
+ - "The bottom line is..."
64
+ - "What's more..."
65
+ - "To put it simply..."
66
+ - "Simply put..."
67
+ - "In a nutshell..."
68
+ - "Long story short..."
69
+ - "As we all know..."
70
+ - "There's no denying that..."
71
+
72
+ ## Banned Structural Patterns
73
+
74
+ ### The Triple Pattern
75
+ Three-item lists in the form "X, Y, and Z" appearing more than twice
76
+ in any piece. Vary your list lengths (2 items, 4 items, no list at all).
77
+
78
+ ### The Recap Paragraph
79
+ A paragraph at the end of a section that restates what the section just
80
+ said. Cut it. The reader just read it.
81
+
82
+ ### The Universal Opener
83
+ Starting a piece with a sweeping statement about the world:
84
+ "In today's fast-paced digital world..." or "Technology has transformed
85
+ the way we..." or "The [industry] is experiencing unprecedented change."
86
+ Start with a specific fact, anecdote, question, or claim instead.
87
+
88
+ ### The Uniform Paragraph
89
+ All paragraphs following the pattern: topic sentence, supporting detail,
90
+ supporting detail, wrap-up sentence. Real writing has one-sentence
91
+ paragraphs, three-sentence paragraphs, and six-sentence paragraphs.
92
+ Mix them.
93
+
94
+ ### Hyper-Symmetry
95
+ Sentences and paragraphs of nearly identical length throughout the piece.
96
+ Human writing has natural rhythm variation: short punchy sentences
97
+ followed by longer, more complex ones.
98
+
99
+ ### The Safety Hedge
100
+ Qualifying every claim with "may," "could," "might," "potentially."
101
+ Take a position when the evidence supports one.
102
+
103
+ ## Banned Closing Patterns
104
+
105
+ - "In conclusion..."
106
+ - "To sum up..."
107
+ - "All in all..."
108
+ - "At the end of the day..."
109
+ - "Moving forward..."
110
+ - "The future looks bright..."
111
+ - Any sentence that begins "By [gerund]..." as a call-to-action
112
+ (e.g., "By embracing these strategies, you can...")
113
+ - Restating the thesis word-for-word from the introduction
114
+
115
+ ## Meta-Rule
116
+
117
+ If you read your output aloud and it sounds like a LinkedIn post,
118
+ a corporate blog, or a ChatGPT response, rewrite it.
@@ -0,0 +1,54 @@
1
+ # Writing Style Guide
2
+
3
+ ## Voice
4
+ - Active voice by default
5
+ - First person plural ("we") only if the brief specifies it
6
+ - Second person ("you") only for instructional content
7
+ - Third person for reporting and analysis
8
+
9
+ ## Contractions
10
+ - Use contractions in informal and semi-formal content
11
+ (blog posts, articles, emails)
12
+ - Avoid contractions in formal content (reports, whitepapers, memos)
13
+ - Match the brief's tone setting
14
+
15
+ ## Numbers
16
+ - Spell out one through nine
17
+ - Use numerals for 10 and above
18
+ - Always use numerals for: percentages, measurements, ages, dates, times
19
+ - Use numerals when comparing in the same sentence:
20
+ "We found 3 bugs in module A and 12 in module B"
21
+
22
+ ## Punctuation
23
+ - Oxford comma: YES (always)
24
+ - Em dashes: NEVER. Use commas, colons, semicolons, or parentheses.
25
+ - Semicolons: Allowed but use sparingly (max 2 per piece)
26
+ - Colons: Use to introduce lists or explanations
27
+ - Parentheses: Use for asides, not for critical information
28
+
29
+ ## Capitalization
30
+ - Sentence case for all headings
31
+ - Do not capitalize words for emphasis mid-sentence
32
+ - Proper nouns only
33
+
34
+ ## Attribution
35
+ - Always attribute quotes: [Name], [title at organization]
36
+ - Always cite statistics: [number], according to [source] ([year])
37
+ - "Experts say" without naming experts is not acceptable
38
+
39
+ ## Paragraphs
40
+ - No paragraph longer than 6 sentences
41
+ - Vary paragraph length: mix 1-sentence paragraphs with longer ones
42
+ - Each paragraph should have one main idea
43
+
44
+ ## Sentences
45
+ - Average sentence length: 15-20 words
46
+ - Mix lengths: some at 5-8 words, some at 25-30
47
+ - Never three consecutive sentences within 5 words of each other in length
48
+ - Avoid beginning three consecutive sentences with the same word
49
+
50
+ ## Formatting
51
+ - Use ## for major sections, ### for subsections
52
+ - No bold for emphasis in body text (let the words do the work)
53
+ - Italics sparingly: for titles, foreign words, or genuine emphasis
54
+ - No underline (web convention: underline = link)
@@ -0,0 +1,10 @@
1
+ # Editorial Brief
2
+
3
+ - **TOPIC**:
4
+ - **PURPOSE**:
5
+ - **AUDIENCE**:
6
+ - **FORMAT**:
7
+ - **LENGTH**:
8
+ - **TONE**:
9
+ - **CONSTRAINTS**:
10
+ - **SOURCES**:
@@ -0,0 +1,7 @@
1
+ # Context & Research
2
+
3
+ ## Research
4
+
5
+ ## Decisions
6
+
7
+ ## SME Cache
@@ -0,0 +1,18 @@
1
+ # Content Plan
2
+
3
+ ## Outline
4
+
5
+ ### [Section Title]
6
+ - **Key points**:
7
+ - **Source assignments**:
8
+ - **Target word count**:
9
+
10
+ ## Workflow Status
11
+ - [ ] Phase 1: Brief
12
+ - [ ] Phase 2: Research
13
+ - [ ] Phase 3: Plan
14
+ - [ ] Phase 3.5: Critic Gate
15
+ - [ ] Phase 4: Draft
16
+ - [ ] Phase 5: Editorial Review
17
+ - [ ] Phase 6: Final Polish
18
+ - [ ] Phase 7: Delivery