Build LinkedIn thought leadership with algorithmic understanding, strategic consistency, and AI-assisted content creation. Updated for the January 2026 360Brew algorithm change. 16 agents, 25 commands, 6 skills, 9 hooks, 24 reference docs. Personal data sanitized: voice samples generalized to template, high-engagement posts cleared, region-specific references replaced with placeholders. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
29 lines
864 B
JavaScript
29 lines
864 B
JavaScript
#!/usr/bin/env node
|
|
// pre-compact.mjs
|
|
// PreCompact hook for linkedin-thought-leadership plugin
|
|
// Reminds Claude to preserve critical LinkedIn session context before compaction
|
|
//
|
|
// Exit codes:
|
|
// 0 - Always allow (informational hook)
|
|
|
|
const context = [
|
|
'Before compacting context, preserve these critical LinkedIn session details:',
|
|
'- Current post draft (full text if in progress)',
|
|
'- Chosen angle and format',
|
|
'- User feedback and iteration direction',
|
|
'- Quality check results',
|
|
'- State file values (streak, weekly count, last post date)',
|
|
'- Any planned topics or next steps',
|
|
'Ensure these survive the context compaction.',
|
|
].join('\n');
|
|
|
|
const output = {
|
|
continue: true,
|
|
hookSpecificOutput: {
|
|
hookEventName: 'PreCompact',
|
|
additionalContext: context,
|
|
},
|
|
};
|
|
|
|
process.stdout.write(JSON.stringify(output));
|
|
process.exit(0);
|