@skilldeck/outreach 0.0.0-stage → 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.
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "outreach",
3
+ "version": "1.0.0",
4
+ "description": "Engage on Reddit without spamming: script-app OAuth setup with a doctor check, rule-aware thread search, help-first drafts checked for disclosure and near-duplicates, and posting in review mode (approve each reply) or confirmed auto mode, with daily, per-subreddit, cooldown and one-reply-per-thread caps enforced by the script. Zero-dependency Node.js.",
5
+ "author": {
6
+ "name": "SkillDeck"
7
+ },
8
+ "license": "MIT",
9
+ "keywords": [
10
+ "reddit",
11
+ "community",
12
+ "outreach",
13
+ "human-in-the-loop",
14
+ "rate-limits"
15
+ ]
16
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kitasid
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,68 @@
1
- # Temporary Holding Version
1
+ # outreach
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Help on Reddit without becoming spam.**
4
+
5
+ You build something and the people who need it are asking questions on Reddit. This pack gives a coding agent two skills to find those threads and answer them well, from your own account, openly, and within limits that a script enforces rather than a prompt.
6
+
7
+ | Skill | Use when | Script |
8
+ |---|---|---|
9
+ | `reddit-setup` | Connecting your account: a Reddit "script" OAuth app, credentials in env vars, a `doctor` check | `reddit.mjs doctor` |
10
+ | `reddit-engage` | Finding threads, checking subreddit rules, drafting help-first replies, and posting in **review** or **auto** mode | `reddit.mjs search · rules · thread · draft-check · post · ledger` |
11
+
12
+ **Two modes, your choice every session.**
13
+
14
+ - **review**: the agent drafts each reply, and you approve each one. `post` refuses without `--approve <draftId>` matching that draft.
15
+ - **auto**: the agent posts on its own after you confirm once. `post` refuses until `config confirm-auto` has been recorded, and changing the mode or a cap clears that confirmation.
16
+
17
+ **Hard limits in code, in both modes:** 5 replies per rolling 24h, 1 per subreddit, 30 minutes apart (configurable within fixed ceilings), never twice in one thread, no locked, archived or stale threads, no product mentions where a subreddit bans self-promotion, no edits after a draft is checked, and Reddit's rate-limit headers and "doing that too much" errors are respected. Drafts are checked for length, links-only content, disclosure of affiliation, and near-duplicates against everything already posted.
18
+
19
+ **What it won't do:** multiple accounts, voting or asking for votes, fake personas, ban evasion, DMs, or posting where the rules say no. Secrets are read from env vars and never written to disk.
20
+
21
+ ## Install
22
+
23
+ ```bash
24
+ npx @skilldeck/outreach install # Claude Code, user-wide
25
+ npx @skilldeck/outreach install --project # this repo only
26
+ npx @skilldeck/outreach install --agent all # also Codex and .agents
27
+ # or, with every SkillDeck pack available:
28
+ npx @skilldeck/cli add outreach
29
+ ```
30
+
31
+ Claude Code marketplace: `/plugin marketplace add kitasid/skilldeck`, then `/plugin install outreach@skilldeck`.
32
+
33
+ ## Setup
34
+
35
+ Create a *script* app at https://www.reddit.com/prefs/apps, then export:
36
+
37
+ ```bash
38
+ export REDDIT_CLIENT_ID=...
39
+ export REDDIT_CLIENT_SECRET=...
40
+ export REDDIT_USERNAME=...
41
+ export REDDIT_PASSWORD=...
42
+ export REDDIT_USER_AGENT="macos:com.example.outreach:0.1.0 (by /u/<username>)"
43
+ npx @skilldeck/outreach doctor
44
+ ```
45
+
46
+ Without credentials, `search`, `rules` and `thread` still work through Reddit's public JSON, and posting is disabled.
47
+
48
+ ## Run it yourself
49
+
50
+ ```bash
51
+ npx @skilldeck/outreach config set mode review
52
+ npx @skilldeck/outreach config set product.name "Acme CLI"
53
+ npx @skilldeck/outreach config set disclosure "I work on Acme CLI"
54
+ npx @skilldeck/outreach search "ssh config" --sub devops --time week
55
+ npx @skilldeck/outreach rules devops
56
+ npx @skilldeck/outreach thread 1abc23
57
+ npx @skilldeck/outreach draft-check reply.md --thread 1abc23 --sub devops
58
+ npx @skilldeck/outreach post --thread 1abc23 --draft d_0123456789ab --approve d_0123456789ab
59
+ npx @skilldeck/outreach ledger today
60
+ ```
61
+
62
+ The script also runs directly: `node skills/reddit-engage/scripts/reddit.mjs <command> [--json]`. Exit codes: `0` ok, `1` refused or failed, `2` usage or missing env. State lives in `./.outreach/` (`config.json`, `ledger.json`, `drafts/`). Keep it out of git.
63
+
64
+ ## Use it responsibly
65
+
66
+ Using the Reddit API means agreeing to Reddit's User Agreement, Data API Terms and Developer Terms, and to each subreddit's rules. Write as yourself, disclose every affiliation, and help first. The caps are a floor against spam, not a quota to fill.
67
+
68
+ MIT licensed. Node 20+. No dependencies beyond `@skilldeck/core` for the installer.
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from 'node:child_process'
3
+ import { runPackCli } from '@skilldeck/core'
4
+ import pack, { scripts } from '../index.mjs'
5
+
6
+ // Every subcommand runs the exact script the skills ship, so CLI and agent hit the same caps.
7
+ function reddit(cmd) {
8
+ return (args) => {
9
+ const r = spawnSync(process.execPath, [scripts.reddit, cmd, ...args], { stdio: 'inherit' })
10
+ process.exitCode = r.status ?? 1
11
+ }
12
+ }
13
+
14
+ const commands = ['doctor', 'config', 'search', 'rules', 'thread', 'draft-check', 'post', 'ledger']
15
+
16
+ await runPackCli(pack, process.argv.slice(2), {
17
+ extraCommands: Object.fromEntries(commands.map((c) => [c, reddit(c)])),
18
+ extraHelp: `
19
+ Reddit (no agent needed; state in ./.outreach/, secrets from env only):
20
+ outreach-skills doctor check env, token and /api/v1/me
21
+ outreach-skills config get|set <key> <value>|confirm-auto mode, caps, product, disclosure, targets
22
+ outreach-skills search <query> [--sub r] [--time week] find threads
23
+ outreach-skills rules <sub> rules + self-promotion verdict
24
+ outreach-skills thread <id|url> thread state and skip reasons
25
+ outreach-skills draft-check <file> --thread <id> length, links, disclosure, dedupe -> draftId
26
+ outreach-skills post --thread <id> --draft <id> [--approve <id>] post within caps
27
+ outreach-skills ledger list|today what has been posted
28
+ `,
29
+ })
package/index.mjs ADDED
@@ -0,0 +1,19 @@
1
+ import fs from 'node:fs'
2
+ import path from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+
5
+ const root = path.dirname(fileURLToPath(import.meta.url))
6
+ const { version } = JSON.parse(fs.readFileSync(path.join(root, 'package.json'), 'utf8'))
7
+
8
+ /** Pack descriptor consumed by @skilldeck/core. */
9
+ export default {
10
+ name: 'outreach',
11
+ version,
12
+ root,
13
+ description: 'Help-first Reddit engagement: review or capped auto mode, rules-aware, disclosed, deduped.',
14
+ skills: ['reddit-setup', 'reddit-engage'],
15
+ }
16
+
17
+ export const scripts = {
18
+ reddit: path.join(root, 'skills', 'reddit-engage', 'scripts', 'reddit.mjs'),
19
+ }
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "@skilldeck/outreach",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Help-first Reddit engagement for coding agents: OAuth setup and a doctor check, rule-aware thread search, draft checks for disclosure and near-duplicates, and posting gated by per-reply approval or a confirmed auto mode with hard daily, per-subreddit and cooldown caps enforced in code.",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": "./index.mjs"
8
+ },
9
+ "main": "./index.mjs",
10
+ "bin": {
11
+ "outreach-skills": "bin/outreach.mjs"
12
+ },
13
+ "files": [
14
+ "index.mjs",
15
+ "bin/",
16
+ "skills/",
17
+ ".claude-plugin/",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "dependencies": {
22
+ "@skilldeck/core": "^1.0.0"
23
+ },
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
27
+ "license": "MIT",
28
+ "keywords": [
29
+ "claude-code",
30
+ "agent-skills",
31
+ "skill-md",
32
+ "reddit",
33
+ "community",
34
+ "outreach",
35
+ "rate-limits",
36
+ "human-in-the-loop"
37
+ ],
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "author": "kitasid"
42
+ }
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: reddit-engage
3
+ description: Use when the user wants to find Reddit threads where they can genuinely help and reply from their own account, in review mode (approve every reply) or auto mode (capped posting after a one-time confirmation), with subreddit rules, disclosure and anti-spam limits enforced.
4
+ ---
5
+
6
+ # Reddit Engage
7
+
8
+ Reddit rewards people who help and bans people who advertise. This skill finds threads where the user has something useful to say, checks each subreddit's rules, drafts a reply that helps first, discloses any affiliation, and posts only within limits the script enforces whatever the conversation says. The user decides how much control to keep: approve each reply, or let it post on its own within hard caps.
9
+
10
+ Announce: "Using reddit-engage to find threads worth answering and reply within your caps."
11
+
12
+ **Prerequisite.** [[reddit-setup]] has passed `doctor`. Without credentials you can still search and read, but posting is refused.
13
+
14
+ **Scope.** One account, the user's own, writing as itself. This skill will not use multiple accounts or sockpuppets, ask anyone to upvote, vote on anything, invent personas or fake testimonials ("I'm just a happy customer"), evade a ban or shadowban, DM people unprompted, or post where the rules forbid it. If asked, decline and point to `references/etiquette.md`.
15
+
16
+ **Script location.** `${CLAUDE_SKILL_DIR}/scripts/reddit.mjs`, or the absolute path of this folder's `scripts/` if `CLAUDE_SKILL_DIR` is unset. Below, `$R` is that file. Every command takes `--json`. State lives in `./.outreach/` (config, ledger, drafts). Add it to `.gitignore`.
17
+
18
+ ## The Rule
19
+
20
+ ```
21
+ Help first. Disclose always. Ask before posting unless the user confirmed auto mode.
22
+ The script's caps are the floor, not a target. Never route around a refusal.
23
+ ```
24
+
25
+ ## Checklist
26
+
27
+ ```
28
+ - [ ] 0. Asked which mode (review | auto) and recorded it; caps, product, disclosure, targets set
29
+ - [ ] 1. Searched for threads; listed candidates
30
+ - [ ] 2. For each: read rules + thread; skipped anything banned, locked, archived, stale, or already answered
31
+ - [ ] 3. Drafted a reply that is useful even if the product didn't exist
32
+ - [ ] 4. draft-check passed and returned a draftId
33
+ - [ ] 5. Posted per mode: review = explicit user approval per draft; auto = confirmed + within caps
34
+ - [ ] 6. Reported the ledger
35
+ ```
36
+
37
+ ## Step 0. Choose the mode (always ask, every session)
38
+
39
+ Ask the user, even if `.outreach/config.json` already has a mode, and wait for the answer:
40
+
41
+ > How should I post? **review**: I draft each reply and post only the ones you approve. **auto**: I post on my own within hard caps (default 5 per 24h, 1 per subreddit, 30 minutes apart), after you confirm once.
42
+
43
+ Recommend **review** for new accounts and new subreddits. Then record the answer and the settings. See `references/modes.md`.
44
+
45
+ ```bash
46
+ node $R config set mode review # or: auto
47
+ node $R config set product.name "Acme CLI" # what counts as mentioning the product
48
+ node $R config set product.url acme.dev
49
+ node $R config set disclosure "I work on Acme CLI"
50
+ node $R config set subreddits commandline,devops
51
+ node $R config set keywords "terminal multiplexer,ssh config"
52
+ node $R config set caps.perDay 3 # optional; hard ceilings apply
53
+ ```
54
+
55
+ **Auto mode only.** Show the user the caps from `config get caps`, the target subreddits and the disclosure text, and ask them to confirm. Only after a clear yes:
56
+
57
+ ```bash
58
+ node $R config confirm-auto
59
+ ```
60
+
61
+ Changing the mode or any cap clears the confirmation, so you have to ask again.
62
+
63
+ ## Step 1. Search
64
+
65
+ ```bash
66
+ node $R search "ssh config hosts" --sub devops --time week --limit 25
67
+ ```
68
+
69
+ Candidates are threads where someone asked a question you can actually answer. Skip threads where the only possible reply is "use our product".
70
+
71
+ ## Step 2. Vet each thread
72
+
73
+ ```bash
74
+ node $R rules devops # self-promotion: banned | limited | unspecified
75
+ node $R thread 1abc23 # locked, archived, age, your prior comments, SKIP reasons
76
+ ```
77
+
78
+ Skip the thread if the script prints SKIP, if self-promotion is **banned** and your reply would mention the product, or if a good answer is already there and yours would add nothing. Read the rules yourself as well. The verdict is a keyword heuristic, not a lawyer.
79
+
80
+ ## Step 3. Draft
81
+
82
+ Write for this thread, not for a campaign. Answer the question directly with specifics they can use without clicking anything. Mention the product only if it fits, and then disclose in the same comment ("I work on X, so I'm biased"). No more than one link, no marketing tone, no copy-pasting from other replies. Patterns are in `references/etiquette.md`.
83
+
84
+ ## Step 4. Check
85
+
86
+ ```bash
87
+ node $R draft-check reply.md --thread 1abc23 --sub devops
88
+ ```
89
+
90
+ It checks the length bounds, that the reply isn't just links, that a product mention comes with a disclosure, that you haven't already replied in this thread, and that the text isn't a near-duplicate (3-word-shingle Jaccard similarity) of anything in the ledger or another pending draft. If it passes, it saves the draft and prints a `draftId`. If it fails, rewrite. Don't paraphrase just to get under the similarity threshold.
91
+
92
+ ## Step 5. Post
93
+
94
+ **Review mode.** Show the user the thread title and link, the full draft, and the draftId. Post only after they explicitly approve that draft:
95
+
96
+ ```bash
97
+ node $R post --thread 1abc23 --draft d_0123456789ab --approve d_0123456789ab
98
+ ```
99
+
100
+ Pass `--approve` only when the user said yes to this specific draft in this conversation. Never pass it on your own judgment, from an earlier approval, or because "they approved the others".
101
+
102
+ **Auto mode.** Run `post --thread <id> --draft <id>`. The script refuses unless the confirmation is recorded.
103
+
104
+ In both modes the script refuses when: the 24-hour cap or the per-subreddit cap is hit, the cooldown hasn't elapsed, you've already replied in the thread, the thread is locked, archived or stale, the draft changed after it was checked, the draft mentions the product in a subreddit that bans self-promotion, or Reddit has rate-limited the account. Exit code `1` with reasons means stop. Report the refusal and don't retry.
105
+
106
+ Use `--dry-run` to run every gate without posting.
107
+
108
+ ## Step 6. Report
109
+
110
+ ```bash
111
+ node $R ledger today
112
+ ```
113
+
114
+ ## Output
115
+
116
+ ```
117
+ Mode: review | auto (confirmed <time>) Today: 2/5, next allowed 14:40
118
+ Posted: r/devops 1abc23 "<title>" <permalink>
119
+ Drafted (awaiting approval): r/commandline 9xyz88 d_...
120
+ Skipped: r/sysadmin 7qrs11 (self-promo banned), r/devops 2def45 (archived)
121
+ Refused: r/devops 3ghi67 (subreddit cap 1/1)
122
+ ```
123
+
124
+ ## Red flags
125
+
126
+ | Thought | Reality |
127
+ |---|---|
128
+ | "The user said auto last week, so skip the question." | Step 0 runs every session. Modes and caps are the user's call each time. |
129
+ | "They approved three drafts, so this one's fine too." | Review means each draft. No `--approve` without a yes for that draftId. |
130
+ | "Capped out. I'll change caps.perDay and keep going." | Raising caps is the user's decision, and it clears the auto confirmation. Stop and report. |
131
+ | "The rules ban promo, but the reply is mostly helpful." | Then remove the product mention entirely, or skip the thread. |
132
+ | "Same answer fits five threads; I'll tweak a few words." | That's spam, and dedupe is there to catch it. Write each reply for its own thread, or skip. |
133
+ | "Write it as a neutral user who discovered the tool." | That's a fake persona. Disclose the affiliation or don't mention the product. |
134
+ | "Ask the team to upvote it" / "use the brand account too." | That's vote manipulation and multiple accounts, both bannable. Never. |
135
+ | "Reddit says 'doing that too much'; retry in a minute." | The script records the limit and refuses until it clears. Wait. |
@@ -0,0 +1,65 @@
1
+ # Reddit etiquette for people with something to sell
2
+
3
+ Reddit's users and moderators are very good at spotting marketing. The only approach that works long term is to be a useful member of the community who happens to work on something, and to say so openly.
4
+
5
+ ## Help-first replies
6
+
7
+ A good reply would still be worth posting if your product didn't exist.
8
+
9
+ - **Answer the actual question in the first sentence or two.** Give the command, the config line, the trade-off, the reason the thing is failing.
10
+ - **Be specific to the thread.** Refer to their setup, their error, their constraint. A reply that could be pasted under any thread is spam.
11
+ - **Offer alternatives, including competitors and free options,** when they fit better. That builds more trust than any pitch.
12
+ - **Mention your product only when it's a direct answer,** and then once, near the end, with a disclosure.
13
+ - **At most one link,** to the relevant doc page rather than the homepage. Many subreddits filter link-heavy comments automatically.
14
+ - **Plain voice.** No superlatives, no "game-changer", no emojis and no call to action.
15
+
16
+ Shape:
17
+
18
+ ```
19
+ <direct answer to their question, with specifics>
20
+
21
+ <why / caveat / alternative>
22
+
23
+ (Disclosure: I work on <product>. It handles <the specific thing> if you'd rather
24
+ not maintain this yourself: <one link>. The approach above works without it.)
25
+ ```
26
+
27
+ ## Disclosure
28
+
29
+ If you mention a product, company or project you're affiliated with (employee, founder, contractor, paid, sponsored or affiliate), say so **in the same comment**, in plain words: "I work on X", "I'm one of the developers of X", "full disclosure: I built this". Disclosure in your profile or username alone is not enough. Undisclosed promotion breaks Reddit's rules on spam and impersonation, and in many places it also breaks consumer-protection law (the FTC Endorsement Guides in the US, and the equivalent elsewhere).
30
+
31
+ `draft-check` fails a draft that mentions the configured product without either the configured disclosure text or a first-person affiliation statement.
32
+
33
+ ## Subreddit self-promotion norms
34
+
35
+ Every subreddit sets its own rules, and they override general guidance.
36
+
37
+ - **Banned outright.** Rules like "No self-promotion", "No advertising" or "No spam/marketing" mean no mention of your product at all. Help without it, or skip the thread.
38
+ - **Limited.** Some allow promotion only in a weekly thread, only with mod approval, only with a flair, or only in a ratio such as 9:1. Follow the letter of the rule.
39
+ - **Unspecified.** You still need to disclose, and the ~10% guideline below still applies.
40
+ - Read the sidebar and any pinned posts too. `rules` only reads `/about/rules`.
41
+ - When in doubt, message the moderators **before** posting. They'll usually tell you, and asking first counts in your favour.
42
+
43
+ ## The ~10% rule
44
+
45
+ A long-standing Reddit guideline is that no more than about **1 in 10** of your posts and comments should involve your own content or product, and you should be taking part in the community in other ways (asking, answering and discussing without promotion). Reddit no longer states it as a fixed number, but moderators and spam filters still judge accounts by that ratio. If the user's account history is mostly links to one domain, slow down and take part without promoting for a while.
46
+
47
+ ## What gets accounts banned
48
+
49
+ Never do these, and refuse when asked:
50
+
51
+ - **Multiple accounts** (sockpuppets, "brand plus personal" pushing the same thing, coordinated team accounts) used to promote, upvote or appear to agree
52
+ - **Vote manipulation**: asking anyone to upvote or downvote, vote rings, buying votes, voting from alt accounts
53
+ - **Fake personas or astroturfing**: pretending to be an unaffiliated user or happy customer, or inventing stories and testimonials
54
+ - **Ban evasion**: making or using another account after a site-wide or subreddit ban or a shadowban
55
+ - **Repetitive content**: the same or near-identical comment across threads or subreddits
56
+ - **Link spam**: comments that are mostly links, or that always point to one domain
57
+ - **Unsolicited DMs and chat** to people from threads
58
+ - **Necroposting** promotion into old or archived threads
59
+ - **Ignoring subreddit rules** or a moderator's removal by reposting
60
+
61
+ Penalties go from comment removal and subreddit bans up to site-wide suspension, a shadowban, or the domain being blocked from Reddit for everyone, including your customers.
62
+
63
+ ## If a reply is removed or downvoted
64
+
65
+ Don't repost it, and don't argue with moderators in public. Read the removal reason, adjust, and if it's unclear, ask the moderators politely in modmail. A pattern of removals is a signal to stop and switch back to review mode.
@@ -0,0 +1,46 @@
1
+ # Modes: review and auto
2
+
3
+ The mode is the user's choice, asked at the start of every session and stored in `.outreach/config.json` as `mode`. Both modes go through the same search, vet, draft and check steps. The only difference is who says "post".
4
+
5
+ ## review (recommended default)
6
+
7
+ - The agent drafts, runs `draft-check`, and shows the user the thread, the full draft text and its `draftId`.
8
+ - The user approves, edits or rejects **each** draft.
9
+ - Posting requires `post --thread <id> --draft <draftId> --approve <draftId>`. The script refuses if `--approve` doesn't match the draft id.
10
+ - If the user edits the draft, save the new text and run `draft-check` again. The new text gets a new draftId, and that is the one they approve. A draft file changed after its check is refused, because its hash no longer matches.
11
+ - The agent must not pass `--approve` without an explicit yes for that draftId in the current conversation.
12
+
13
+ Use review for new accounts, new subreddits, anything that mentions the product, and whenever the user is unsure.
14
+
15
+ ## auto
16
+
17
+ - The user confirms once per configuration: the agent shows the caps, target subreddits, product and disclosure text, and the user agrees. Then the agent runs `config confirm-auto`, which stores `autoConfirmedAt` and a copy of the caps.
18
+ - `post` without `--approve` is allowed only when `mode` is `auto` and `autoConfirmedAt` is set.
19
+ - Changing `mode` or any `caps.*` value clears `autoConfirmedAt`. `autoConfirmedAt` can't be set with `config set`.
20
+ - Auto mode doesn't loosen any other gate. Caps, cooldown, one reply per thread, thread state, self-promotion rules, dedupe and disclosure all still apply.
21
+
22
+ Suggest switching back to review when replies get removed or downvoted, when a new subreddit is added, or when Reddit returns rate-limit errors.
23
+
24
+ ## Caps (both modes, enforced in code)
25
+
26
+ | Key | Default | Allowed range | Meaning |
27
+ |---|---|---|---|
28
+ | `caps.perDay` | 5 | 1-20 | replies in any rolling 24 hours |
29
+ | `caps.perSubPerDay` | 1 | 1-3 | replies per subreddit in any rolling 24 hours |
30
+ | `caps.cooldownMinutes` | 30 | 10-1440 | minimum gap between any two replies |
31
+ | `caps.maxThreadAgeDays` | 14 | 1-180 | older threads are skipped |
32
+ | `caps.minChars` / `caps.maxChars` | 80 / 3000 | 20-2000 / 200-10000 | draft length bounds |
33
+ | `caps.similarity` | 0.5 | 0.2-0.9 | Jaccard threshold for near-duplicates |
34
+
35
+ The ranges are hard ceilings in `reddit.mjs`, so no config can turn this into a bulk poster. Never replying twice in the same thread is always enforced and has no setting.
36
+
37
+ ## Files
38
+
39
+ ```
40
+ .outreach/
41
+ config.json mode, autoConfirmedAt, caps, product, disclosure, subreddits, keywords
42
+ ledger.json every posted reply: thread, subreddit, draftId, text, permalink, mode, postedAt; rateLimitedUntil
43
+ drafts/<id>.json checked drafts: thread, text, hash, mentionsProduct, status (ready | posted)
44
+ ```
45
+
46
+ No secrets are stored here. Keep `.outreach/` out of version control. The ledger contains the user's own published comments, which is fine, but it's noise in a repo.