feat(linkedin): add auto-clipboard on all content commands
Adds Bash to allowed-tools and clipboard-helper.mjs auto-copy to: post.md, quick.md, react.md, pipeline.md, first-post.md, video.md, multiplatform.md, carousel.md. Each command auto-copies the final post/caption text to clipboard after presenting the draft. Replaces manual copy-paste instructions in first-post.md (=== COPY FROM HERE ===) with auto-copy. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
214675d0a0
commit
dcaa0d13c6
8 changed files with 53 additions and 12 deletions
|
|
@ -8,6 +8,7 @@ description: |
|
||||||
"linkedin carousel", "document post", "create slides".
|
"linkedin carousel", "document post", "create slides".
|
||||||
allowed-tools:
|
allowed-tools:
|
||||||
- Read
|
- Read
|
||||||
|
- Bash
|
||||||
- AskUserQuestion
|
- AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -129,6 +130,12 @@ Create one slide per page using the content above.
|
||||||
Export as PDF and upload directly to LinkedIn.
|
Export as PDF and upload directly to LinkedIn.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Auto-copy the carousel caption text to clipboard silently:
|
||||||
|
```bash
|
||||||
|
printf '%s' '<CAROUSEL_CAPTION>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
|
```
|
||||||
|
Then confirm: "Caption copied to clipboard."
|
||||||
|
|
||||||
Use AskUserQuestion: "Want to refine any slides, or is this ready for design?"
|
Use AskUserQuestion: "Want to refine any slides, or is this ready for design?"
|
||||||
|
|
||||||
## Step 7: State Update
|
## Step 7: State Update
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ description: |
|
||||||
allowed-tools:
|
allowed-tools:
|
||||||
- Read
|
- Read
|
||||||
- Write
|
- Write
|
||||||
|
- Bash
|
||||||
- AskUserQuestion
|
- AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -135,17 +136,12 @@ Show the post with:
|
||||||
- The hook highlighted
|
- The hook highlighted
|
||||||
- One alternative version with a different hook
|
- One alternative version with a different hook
|
||||||
|
|
||||||
Format the post in a copy-paste-ready block:
|
Auto-copy the post text to clipboard silently:
|
||||||
|
```bash
|
||||||
```
|
printf '%s' '<POST_TEXT>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
=== COPY FROM HERE ===
|
|
||||||
|
|
||||||
[post content]
|
|
||||||
|
|
||||||
=== TO HERE ===
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Add: "Copy this text, go to linkedin.com, click 'Start a post', paste it, and hit Post."
|
Then present: "Post copied to clipboard. Go to linkedin.com, click 'Start a post', paste it, and hit Post."
|
||||||
|
|
||||||
## Step 7: State Update
|
## Step 7: State Update
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ allowed-tools:
|
||||||
- Read
|
- Read
|
||||||
- Glob
|
- Glob
|
||||||
- Write
|
- Write
|
||||||
|
- Bash
|
||||||
- AskUserQuestion
|
- AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -163,7 +164,11 @@ YouTube tips:
|
||||||
|
|
||||||
After creating the adaptation:
|
After creating the adaptation:
|
||||||
- Save to `${CLAUDE_PLUGIN_ROOT}/assets/drafts/multiplatform/[platform]-[slug].md`
|
- Save to `${CLAUDE_PLUGIN_ROOT}/assets/drafts/multiplatform/[platform]-[slug].md`
|
||||||
- Present copy-paste ready version
|
- Auto-copy the adapted content to clipboard silently:
|
||||||
|
```bash
|
||||||
|
printf '%s' '<ADAPTED_CONTENT>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
|
```
|
||||||
|
- Present the content and confirm: "Copied to clipboard."
|
||||||
- Note platform-specific publishing tips
|
- Note platform-specific publishing tips
|
||||||
|
|
||||||
## Reference Files
|
## Reference Files
|
||||||
|
|
|
||||||
|
|
@ -143,11 +143,16 @@ Offer to help identify target profiles and draft comments.
|
||||||
|
|
||||||
## Step 6: Publish
|
## Step 6: Publish
|
||||||
|
|
||||||
|
Auto-copy the final post text to clipboard silently before presenting:
|
||||||
|
```bash
|
||||||
|
printf '%s' '<FINAL_POST_TEXT>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
|
```
|
||||||
|
|
||||||
Present the final post as copy-paste ready content:
|
Present the final post as copy-paste ready content:
|
||||||
|
|
||||||
```
|
```
|
||||||
---
|
---
|
||||||
COPY-PASTE READY POST
|
COPY-PASTE READY POST (copied to clipboard)
|
||||||
---
|
---
|
||||||
|
|
||||||
[Final post content here]
|
[Final post content here]
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ allowed-tools:
|
||||||
- Glob
|
- Glob
|
||||||
- Grep
|
- Grep
|
||||||
- WebFetch
|
- WebFetch
|
||||||
|
- Bash
|
||||||
- AskUserQuestion
|
- AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -145,6 +146,12 @@ Present the main draft with:
|
||||||
- Hook analysis (what makes it work)
|
- Hook analysis (what makes it work)
|
||||||
- CTA explanation
|
- CTA explanation
|
||||||
|
|
||||||
|
Auto-copy the final post text to clipboard silently:
|
||||||
|
```bash
|
||||||
|
printf '%s' '<FINAL_POST_TEXT>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
|
```
|
||||||
|
Then confirm: "Copied to clipboard."
|
||||||
|
|
||||||
Then offer:
|
Then offer:
|
||||||
- 1-2 alternative versions with different angles or tones
|
- 1-2 alternative versions with different angles or tones
|
||||||
- Option to refine or adjust
|
- Option to refine or adjust
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ description: |
|
||||||
"simple linkedin post", "short post".
|
"simple linkedin post", "short post".
|
||||||
allowed-tools:
|
allowed-tools:
|
||||||
- Read
|
- Read
|
||||||
|
- Bash
|
||||||
- AskUserQuestion
|
- AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -134,6 +135,12 @@ Show the post with:
|
||||||
- Post type identified
|
- Post type identified
|
||||||
- Note if it sounds like the user's voice
|
- Note if it sounds like the user's voice
|
||||||
|
|
||||||
|
Auto-copy the final post text to clipboard silently:
|
||||||
|
```bash
|
||||||
|
printf '%s' '<FINAL_POST_TEXT>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
|
```
|
||||||
|
Then confirm: "Copied to clipboard."
|
||||||
|
|
||||||
Offer one alternative version with different hook or angle.
|
Offer one alternative version with different hook or angle.
|
||||||
|
|
||||||
**State Update:**
|
**State Update:**
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ allowed-tools:
|
||||||
- Glob
|
- Glob
|
||||||
- Grep
|
- Grep
|
||||||
- WebFetch
|
- WebFetch
|
||||||
|
- Bash
|
||||||
- AskUserQuestion
|
- AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -135,6 +136,12 @@ Show:
|
||||||
3. Suggested first comment (with the URL + brief context)
|
3. Suggested first comment (with the URL + brief context)
|
||||||
4. Recommended posting time
|
4. Recommended posting time
|
||||||
|
|
||||||
|
Auto-copy the main draft text to clipboard silently:
|
||||||
|
```bash
|
||||||
|
printf '%s' '<MAIN_DRAFT_TEXT>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
|
```
|
||||||
|
Then confirm: "Copied to clipboard."
|
||||||
|
|
||||||
Offer refinement options via AskUserQuestion:
|
Offer refinement options via AskUserQuestion:
|
||||||
1. Perfect — ready to post
|
1. Perfect — ready to post
|
||||||
2. Adjust the hook
|
2. Adjust the hook
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ allowed-tools:
|
||||||
- Glob
|
- Glob
|
||||||
- Grep
|
- Grep
|
||||||
- Write
|
- Write
|
||||||
|
- Bash
|
||||||
- AskUserQuestion
|
- AskUserQuestion
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -142,7 +143,7 @@ Angle: [from 8 thought leadership angles]
|
||||||
|
|
||||||
[Line-by-line caption text with timing]
|
[Line-by-line caption text with timing]
|
||||||
|
|
||||||
━━━ POST CAPTION ━━━━━━━━━━━━━━━━━━━━━━━━━
|
━━━ POST CAPTION (copied to clipboard) ━━━
|
||||||
|
|
||||||
[200-400 char text to accompany the video]
|
[200-400 char text to accompany the video]
|
||||||
|
|
||||||
|
|
@ -159,6 +160,12 @@ Style: [minimal / branded / text-heavy]
|
||||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Auto-copy the POST CAPTION text to clipboard silently:
|
||||||
|
```bash
|
||||||
|
printf '%s' '<POST_CAPTION_TEXT>' | node ${CLAUDE_PLUGIN_ROOT}/hooks/scripts/clipboard-helper.mjs
|
||||||
|
```
|
||||||
|
Then confirm: "Post caption copied to clipboard."
|
||||||
|
|
||||||
## Step 7: Refinement Cycle
|
## Step 7: Refinement Cycle
|
||||||
|
|
||||||
Use AskUserQuestion:
|
Use AskUserQuestion:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue