ఆమోదిత వ్యాసం లేదా లిప్యంతరీకరణ నుంచి పలు ముసాయిదాలు రావచ్చు. అయితే ప్రతిదానికి మూలానికి తిరిగి వెళ్లే స్పష్టమైన బంధం అవసరం. ఈ మార్గదర్శి నాలుగు వేర్వేరు Claude Code ప్రాజెక్టు skills కలుపుతుంది: యజమాని ఆమోదించిన పాఠ్యాన్ని జాబితా చేయడం, వేరు డైరెక్టరీల్లో LinkedIn పోస్ట్, వార్తాలేఖ భాగం, ప్రకటన రాయడం, స్థానిక Python కలయికతో ఫైల్ ఒప్పందాలు తనిఖీ చేయడం. ఫలితం పేరుతో గుర్తించిన మానవ సమీక్షకుడికి ముసాయిదాలు మాత్రమే; ప్రచురించడానికి లేదా పంపడానికి అనుమతి కాదు.

BIG CHANGE కింది skills, ఒప్పందాలు, కలయిక కోడ్‌ను సమీక్షించింది. స్వతంత్ర సమీక్షకుడు 16 స్థానిక నిర్మాణ తనిఖీలు నడిపారు. మేము చేయలేదు: Claude Code లో skills ఇన్‌స్టాల్ చేయడం లేదా నడపడం, మోడల్ అమలుకు చెల్లించడం, నిజమైన విషయాలతో ఛానల్ ముసాయిదా రూపొందించడం లేదా వాస్తవ ప్రచారాన్ని పరీక్షించడం. కింది దశలను పాఠకుడు తన ఆమోదిత మూలంతో పరీక్షించాలి.

పెద్ద మార్పు

  • మారింది ఏమిటి: స్వంత నాలుగు skills కు మూలం, జాబితా, ఛానల్ ఫలితాల స్పష్టమైన ఒప్పందాలు, తరువాత నిర్దిష్ట నియమాల కలయిక ఉన్నాయి.
  • ఇది ఎందుకు ముఖ్యం: ప్రతి ముసాయిదాను మూల భాగాలకు అనుసంధానించవచ్చు; లేని ఛానల్ నిలిచిన స్థానంగా కనిపిస్తుంది.
  • గమనించవలసినది: ఫైల్ తనిఖీలు నిజం, అనుసరణ హక్కులు లేదా సంపాదకీయ ఆమోదాన్ని రుజువు చేయవు. సిద్ధమైన ప్రతి ముసాయిదాను మనిషి చూడాలి.

1. ప్రవేశం, హక్కులు, మూలం నిర్ధారించండి

మీ నియంత్రణలోని Claude Code రిపోజిటరీ, మూలాన్ని ప్రాసెస్ చేయగల అనుమతి ఉన్న ఖాతా వాడండి. రహస్య సమాచారం ముందు అందుబాటు మోడళ్లు, వినియోగం, ఖర్చులు, డేటా విధానం మరియు సాధనాల అనుమతులు తనిఖీ చేయండి. Claude Code లోని /usage ఆదేశం ప్రస్తుత సెషన్ వినియోగం చూపగలదు; బిల్లు ఖాతా, ప్లాన్‌పై ఆధారపడుతుంది. ఈ ప్రవాహపు ఖర్చు లేదా ఆదా కొలవలేదు. మూలం నిజంగా ఆమోదిత UTF-8 వ్యాసం లేదా తనిఖీ చేసిన లిప్యంతరీకరణ కావాలి; యజమాని, వెర్షన్, ఆమోదం నమోదై ఉండాలి. లిప్యంతరీకరణ ఖచ్చితత్వం, ఛానల్ హక్కులు, గోప్యత, ఏ ఆఫర్‌నైనా ముందుగా యజమానితో పరిష్కరించండి. వీడియో URL లేదా కింది ఖాళీ నమూనా సరిపోదు.

నాలుగు సూచన skills, Claude Code పత్రాల్లోని .claude/skills/<name>/SKILL.md స్థానం, స్లాష్ ఆదేశపు పిలుపు, $ARGUMENTS ప్రతిస్థాపన వాడతాయి. వాటి context: fork సెట్టింగ్ ప్రతి పిలుపునకు సంభాషణ చరిత్ర లేని ప్రత్యేక సందర్భం ఇస్తుంది. ముసాయిదా skills వాడేది background: true; దీనికి Claude Code v2.1.218 లేదా తరువాతి వెర్షన్ అవసరం. ఇవి సాధారణ ప్రయోజన ఏజెంట్‌ను వాడతాయి; ఫైల్ రాత సామర్థ్యం, అమలయ్యే అనుమతులు వినియోగదారు Claude Code అమరికను అనుసరిస్తాయి. skill పాఠ్యం అనుమతి ఇవ్వదు, చదవడానికి మాత్రమే అనే సరిహద్దు అమలు చేయదు. హోస్ట్ అనుమతిస్తే నేపథ్య పని ఒకేసారి సాగవచ్చు, కానీ సమాంతర అమలుకు హామీ లేదు. ఈ పేర్లు వాడే ముందు ఉన్న అదే పేర్ల skills, ఆదేశాల గుర్తింపును చూసి, ఆదేశం ఇన్‌స్టాల్ చేసిన ప్రాజెక్టు ఫైల్‌కే వెళ్తుందో నిర్ధారించండి. చూడండి skills మార్గదర్శి మరియు subagents మార్గదర్శి.

2. నాలుగు ఫైళ్లు, ఒప్పందాలు అమర్చండి

ప్రాజెక్టులో కింది జాబితాలోని ఖచ్చితమైన పాత్‌లు సృష్టించండి. సూచన ఫైళ్ల ప్రతి పూర్తి బ్లాక్‌ను మార్పు లేకుండా కాపీ చేయండి. .claude/repurpose-contracts/ కింద ఐదు ఫైళ్లు ఇన్‌పుట్, జాబితా, నిలిచిన స్థితి, ఛానల్ ఫలితాల రూపాలు, ఆధారిత దశల ప్రణాళిక నిర్వచిస్తాయి. join.py ను ప్రాజెక్టు మూలంలో ఉంచండి. రెండు నమూనాలు repurpose-inputs/ కింద ఉంచి, అమలు ముందు స్థానధారకాలను నిజమైన ఆమోదిత సమాచారంతో మార్చండి. అవుట్‌పుట్ చెట్టు నిర్మాణ సూచన మాత్రమే. కాపీ చేయడానికి పూర్తి ఫైళ్లు కింద ఉన్నాయి.

ఫైల్

పని

.claude/skills/source-inventory/SKILL.md

ఆమోదాలను తనిఖీ చేసి రాసే ముందు మూలంలోని ప్రతి పంక్తిని జాబితా చేస్తుంది.

.claude/skills/draft-linkedin/SKILL.md

LinkedIn ముసాయిదా, ఫలితానికి మాత్రమే బాధ్యత.

.claude/skills/draft-newsletter/SKILL.md

వార్తాలేఖ ముసాయిదా, ఫలితానికి మాత్రమే బాధ్యత.

.claude/skills/draft-ad/SKILL.md

ప్రకటన ముసాయిదా, ఫలితం లేదా ఆఫర్‌కు స్పష్టమైన అడ్డంకి మాత్రమే.

.claude/repurpose-contracts/*.json

ఖచ్చితమైన క్షేత్రాలు, హ్యాష్ సంబంధాలు, దశల క్రమం నిర్వచిస్తుంది.

join.py

నిర్మాణం, మూలం తనిఖీ చేసి వాదనల పటం, సమీక్ష అప్పగింత తయారు చేస్తుంది.

repurpose-inputs/approved-source.template.md, repurpose-inputs/constraints.template.json

ఖాళీ ప్రారంభ నమూనాలు; అమలు సాక్ష్యాలు కావు.

ఆమోదిత ఆఫర్ లేక ప్రకటన శాఖ ఆగినా LinkedIn, వార్తాలేఖ, ప్రకటనకు స్పష్టమైన అనుసరణ హక్కులు అవసరం. forbiddenClaims యజమానికి అదనపు నిషేధాలు లేకుంటే ఖాళీ జాబితా కావచ్చు. ప్రకటనకు ఆమోదిత ఆఫర్, HTTP(S) గమ్యం, చర్యకు పిలుపు అవసరం; ఏదైనా లేకుంటే శాఖ ఆగుతుంది. నిజమైన సమీక్షకుడి పేరు నమోదు చేయండి. అమలు మధ్యలో మూలం, పరిమితులు మార్చకండి.

3. ప్రతి ఆధార సంబంధం పరీక్షించి జాబితా నడపండి

మొదట చిన్న నిజమైన ఆమోదిత మూలంపై ప్రతి skill విడిగా పరీక్షించండి. వాస్తవ ఫైళ్లు, హ్యాష్‌లు ఒప్పందాలతో సరిపోల్చండి. BIG CHANGE ఈ Claude Code పరీక్ష చేయలేదు. పూర్తి అమలుకు ఇన్‌పుట్లు, ఫలితాలు, కలయిక ఫలితాలకు కొత్త పూర్తి-పాత్ డైరెక్టరీలు చేయండి. రిపోజిటరీలో మూడు పూర్తి పాత్‌లతో జాబితా ఆదేశం పిలవండి:

Prompt
/source-inventory <absolute-path-to-approved-source.md> <absolute-path-to-constraints.json> <absolute-path-to-new-run-directory>

కోణ బ్రాకెట్లలో ప్రతి ఆర్గ్యుమెంట్‌ను నిజమైన పాత్‌తో మార్చండి. skill రాయాల్సింది inventory.json, ప్రతి పంక్తిని కప్పే మూల పదాలతో క్రమబద్ధమైన భాగాల పరిధులతో; లేదా inventory-blocked.json, ఏ ఆమోదం లేదా హక్కు లేదో స్పష్టంగా. జాబితా ఆగితే ముసాయిదా దశ మొదలుపెట్టకండి. నమోదైన SHA-256లను రెండు ఇన్‌పుట్ ఫైళ్లతో పోల్చి, ఖాళీ పంక్తులతో సహా భాగాల హద్దులు చూడండి.

4. మూడు వేరు ఛానళ్లలో రాయండి

ముందుగా inventory.json ఉండి, రెండు ఇన్‌పుట్ల హ్యాష్‌లు రికార్డుతో సరిపోతున్నప్పుడు మూడు వేరు skills పిలవండి. మొదటి ఆర్గ్యుమెంట్‌కు ఒకే పూర్తి అమలు డైరెక్టరీ, రెండవదానికి మూడు వేరు అవుట్‌పుట్ డైరెక్టరీలు వాడండి. ప్రతి skill ఆమోదిత మూలం, పరిమితులు, జాబితా చదువుతుంది, పక్క ముసాయిదా కాదు. జాబితా తరువాత స్వతంత్రంగా మొదలుపెట్టవచ్చు, Claude Code హోస్ట్, అనుమతుల మేరకు.

Prompt
/draft-linkedin <absolute-run-directory> <absolute-run-directory>/linkedin
/draft-newsletter <absolute-run-directory> <absolute-run-directory>/newsletter
/draft-ad <absolute-run-directory> <absolute-run-directory>/ad

ప్రతి ఛానల్ బాధ్యత result.json మరియు సిద్ధమైనప్పుడే draft.md. ఫలితం ఛానల్, మూలం, పరిమితులు, జాబితా SHA-256లను గుర్తించి ముఖ్యమైన వాదనలు లేదా ఉల్లేఖనాలను భాగాల IDలు, వర్తించే పరిమితి కీలతో కలుపుతుంది. ready అంటే వాస్తవ సమీక్షకు సిద్ధం. ఆమోదిత ప్రకటన ఆఫర్, గమ్యం లేదా చర్య పిలుపు లేకుంటే ప్రకటన ముసాయిదా లేక నిలిచిన ఫలితం రావాలి. నేపథ్య పిలుపు లేదా చెల్లే JSON మాత్రమే ఉపయోగం, ఖచ్చితత్వం నిరూపించదు.

5. ఫలితాలు కలిపి మానవ నిర్ణయం తీసుకోండి

మూడు దశలు తిరిగి వచ్చినా లేదా ఖచ్చితంగా విఫలమైనా, ఇచ్చిన Python ఫైల్‌ను అమలు డైరెక్టరీ, ఒక కొత్త కలయిక డైరెక్టరీతో నడపండి. ఇది Python ప్రామాణిక లైబ్రరీ వాడుతుంది; ముందుగా స్థానిక ఇన్‌స్టాలేషన్ చూడండి.

Terminal
python join.py <absolute-run-directory> <absolute-new-join-directory>

కలయిక మూలం, పరిమితి హ్యాష్‌లు, జాబితా అన్ని పంక్తులు కప్పడాన్ని, ప్రతి ఛానల్‌లో జాబితా హ్యాష్, దశ గుర్తింపు, వాదన సూచికలు, అవుట్‌పుట్ బాధ్యత, ప్రకటన ముందస్తు షరతులను తనిఖీ చేస్తుంది. ఇది రాస్తుంది claim-map.md, review.md మరియు summary.json. లేని లేదా చెల్లని దశలు ఆగినట్లు కనిపిస్తాయి, సరైన పక్క ముసాయిదాలు కనిపిస్తూనే ఉంటాయి. మొత్తం మూలం తేడా కలయికను ఆపుతుంది. వాక్యం నిజమా, ఉల్లేఖనం న్యాయమా, వాదనకు తగిన చట్టపరమైన ఆధారమా, యజమాని ప్రచురణ ఆమోదించారా అనేది నిర్ధారించదు. review.md మొదట కలిగి ఉండేది PENDING నిర్ణయాలు.

పేరుతో నియమించిన సమీక్షకుడు సిద్ధమైన ప్రతి draft.md తెరిచి, ముఖ్య ప్రకటనలు, ఉల్లేఖనాలు సూచించిన భాగం, పరిమితులతో పోల్చాలి. సందిగ్ధత, ఛానల్ స్వరం, అనుసరణ హక్కులు, ప్రకటన గమ్యం, ఆఫర్ తనిఖీ చేసి రూపొందిన పెండింగ్ క్షేత్రాల బయట ప్రతి ఛానల్‌కు నమోదు చేయాలి: అంగీకరించు, సవరించు లేదా తిరస్కరించు. ప్రచురణ, పంపడం, షెడ్యూల్, ప్రకటనల ప్రదర్శనకు వేరు మానవ అనుమతి, వేదిక తనిఖీలు అవసరం.

6. మంచి పనిని కోల్పోకుండా విఫల శాఖ సరిచేయండి

మూల ఆమోదం లేదా హక్కులు స్పష్టంగా లేకపోతే యజమానితో నిర్దిష్ట లోటు పరిష్కరించి సరిచేసిన ఇన్‌పుట్లతో కొత్త అమలు మొదలుపెట్టండి. మూలం లేదా పరిమితి హ్యాష్ మారితే కొత్త పూర్తి జాబితా కావాలి. ఒక ఛానల్ విఫలమై మిగిలినవి చెల్లితే ముందుగా దాని అసలు ఫైళ్లు, లోపం చూడండి. మారని జాబితా బైట్లు, తనిఖీ చేసిన ఇతర ఫోల్డర్లు కొత్త అమలు డైరెక్టరీలో కాపీ చేసి విఫల దశ మాత్రమే నడిపి మరో కొత్త డైరెక్టరీలో కలపండి. కాపీ ఫలితాలూ జాబితా హ్యాష్‌కు సరిపోవాలి. ప్రక్రియ ఫలితం అనిశ్చితమైతే మళ్లీ ప్రయత్నించే ముందు ఫలితం, హ్యాష్‌లు చదవండి. పాత అమలులు, సమీక్షకుడి మార్పులు ఉంచండి; మళ్లీ నడిపి వాటిపై రాయకండి. లేని లేదా మద్దతులేని వాదన సూచనను బాధ్యత ఉన్న దశలో సరిచేసి కొత్త డైరెక్టరీకి నిర్దిష్ట నియమాల కలయిక పునరావృతం చేయండి.

ఇది మానవీయంగా పిలిచే మోడల్-నిర్దేశిత కలయిక. కోడ్ విధించే పంపిణీ, స్వయంచాలక పునఃప్రయత్నాలు, స్థిర సమకాలీనత లేదా బాహ్య దుష్ప్రభావాల పునరుద్ధరణ ఇవ్వదు. ఆమోదిత పాఠ్యంతో మొదలుపెట్టండి; ప్రక్రియ లిప్యంతరీకరణను తీసుకురాదు లేదా తనిఖీ చేయదు; ప్రచార వీడియో, ఆడియో, దృశ్య ఫలితాలు చేయదు.

పూర్తి సూచన ఫైళ్లు

పాత్‌లు, విషయాలు కలిపి ఉంచండి. కింది కోడ్ బ్లాక్‌లు స్వతంత్రంగా సమీక్షించిన ప్యాకెట్ పూర్తి ప్రతులు; సూచన ఫైళ్లే కానీ Claude అమలు రికార్డులు కావు.

.claude/skills/source-inventory/SKILL.md

Markdown
---
name: source-inventory
description: Build a bounded passage inventory from one approved owned source for a three-format draft pipeline.
disable-model-invocation: true
context: fork
agent: general-purpose
background: false
---

Input arguments: `$ARGUMENTS[0]` is the approved UTF-8 source Markdown path, `$ARGUMENTS[1]` is the constraints JSON path, and `$ARGUMENTS[2]` is a new run directory. Read only those inputs and the run directory contract. Do not infer inputs from conversation history.

1. Verify both files exist. Read `constraints.json` against `.claude/repurpose-contracts/constraints.schema.json`; require `sourceOwner`, `sourceVersion`, `approvedAt`, `adaptationRights`, `audience`, `permittedChannels`, `reviewer`, `forbiddenClaims`, and `offer`. `adaptationRights` must explicitly mark all three channels `true`; a template or unapproved value does not count. `offer` may be null; that blocks ad copy requiring an offer or destination. If any approval or right is unclear, create only `inventory-blocked.json` under `.claude/repurpose-contracts/inventory-blocked.schema.json` explaining the gap and stop.
2. Record SHA-256 hashes of the exact two input files. Divide the entire approved source into numbered, contiguous, verbatim line ranges with no omitted lines. Give each range a stable `P001`-style ID, start/end line and exact text, including blank lines where they occur in a range. Do not add outside facts, inferred transcript words, or quotations not present in the source.
3. Write `inventory.json` in the run directory according to `.claude/repurpose-contracts/inventory.schema.json` in the reader project. Record the source and constraints paths/hashes, source owner/version/approval, passages and any ambiguous passages requiring human review. Do not edit either input.
4. Return the inventory path and blockers. This stage never drafts, publishes, fetches video, contacts services or approves source rights on behalf of the owner.

.claude/skills/draft-linkedin/SKILL.md

Markdown
---
name: draft-linkedin
description: Draft one review-only LinkedIn post from an approved source inventory.
disable-model-invocation: true
context: fork
agent: general-purpose
background: true
---

Inputs: `$ARGUMENTS[0]` is the run directory containing `inventory.json`; `$ARGUMENTS[1]` is the dedicated `linkedin` output directory. Read the source and constraints paths recorded in the inventory and verify their hashes still match. Do not rely on prior conversation or sibling-stage results.

Write only under the dedicated output directory. If required source, permission, audience or voice information is missing or conflicting, write `result.json` with `status: blocked` and exact blockers; do not invent it. Otherwise create `draft.md`: one self-contained LinkedIn post with a factual opening and concrete takeaway, no invented statistics, quotes, benefits, offers or links. Write `result.json` according to `.claude/repurpose-contracts/stage-result.schema.json` in the reader project, with `channel: linkedin`, input hashes, inventory hash, draft path, and every material claim or quote paired with exact passage IDs and any applicable constraints keys. Mark uncertainty in the draft and result. `status: ready` means ready for human fact review, not approved or published. Return the two file paths. Never post or schedule.

.claude/skills/draft-newsletter/SKILL.md

Markdown
---
name: draft-newsletter
description: Draft one review-only newsletter section from an approved source inventory.
disable-model-invocation: true
context: fork
agent: general-purpose
background: true
---

Inputs: `$ARGUMENTS[0]` is the run directory containing `inventory.json`; `$ARGUMENTS[1]` is the dedicated `newsletter` output directory. Read the source and constraints paths recorded in the inventory and verify their hashes still match. Do not rely on prior conversation or sibling-stage results.

Write only under the dedicated output directory. If required source, permission, audience or voice information is missing or conflicting, write `result.json` with `status: blocked` and exact blockers. Otherwise create `draft.md`: a descriptive heading, short summary and evidence-linked detail suited to the approved newsletter audience. Add no invented statistics, quotes, benefits or outside news. Write `result.json` according to `.claude/repurpose-contracts/stage-result.schema.json` in the reader project, with `channel: newsletter`, input hashes, inventory hash, draft path, and every material claim or quote paired with exact passage IDs and applicable constraints keys. Mark uncertainty in the draft and result. `status: ready` means ready for human fact review, not approved or sent. Return the two file paths. Never send or schedule.

.claude/skills/draft-ad/SKILL.md

Markdown
---
name: draft-ad
description: Draft review-only ad copy from an approved source inventory and approved offer.
disable-model-invocation: true
context: fork
agent: general-purpose
background: true
---

Inputs: `$ARGUMENTS[0]` is the run directory containing `inventory.json`; `$ARGUMENTS[1]` is the dedicated `ad` output directory. Read the source and constraints paths recorded in the inventory and verify their hashes still match. Do not rely on prior conversation or sibling-stage results.

Write only under the dedicated output directory. Require an approved offer, destination URL and call to action in constraints, plus adaptation rights for advertising. If any are absent, write `result.json` with `status: blocked`, the missing exact fields and no draft. Otherwise create `draft.md` with one headline, one body and the approved call to action. No invented metrics, testimonials, urgency, claims, price or performance. Write `result.json` according to `.claude/repurpose-contracts/stage-result.schema.json` in the reader project, with `channel: ad`, input hashes, inventory hash, draft path, and every material claim or quote paired with exact passage IDs and applicable constraints keys. Mark uncertainty in the draft and result. `status: ready` means ready for human fact/legal review, not approved or placed. Return the two file paths. Never upload, buy or schedule ads.

.claude/repurpose-contracts/constraints.schema.json

JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Reader-approved source constraints",
  "type": "object",
  "required": ["sourceOwner", "sourceVersion", "approvedAt", "adaptationRights", "audience", "permittedChannels", "reviewer", "forbiddenClaims", "voiceRules", "offer"],
  "properties": {
    "sourceOwner": {"type": "string", "minLength": 1},
    "sourceVersion": {"type": "string", "minLength": 1},
    "approvedAt": {"type": "string", "minLength": 1},
    "adaptationRights": {"type": "object", "required": ["linkedin", "newsletter", "ad"], "properties": {"linkedin": {"type": "boolean"}, "newsletter": {"type": "boolean"}, "ad": {"type": "boolean"}}},
    "audience": {"type": "string", "minLength": 1},
    "permittedChannels": {"type": "array", "uniqueItems": true, "items": {"enum": ["linkedin", "newsletter", "ad"]}},
    "reviewer": {"type": "string", "minLength": 1},
    "forbiddenClaims": {"type": "array", "items": {"type": "string"}},
    "voiceRules": {"type": "string", "minLength": 1},
    "offer": {"type": ["object", "null"], "required": ["approvedOffer", "destinationUrl", "callToAction"], "properties": {"approvedOffer": {"type": "string", "minLength": 1}, "destinationUrl": {"type": "string", "format": "uri"}, "callToAction": {"type": "string", "minLength": 1}}}
  }
}

.claude/repurpose-contracts/inventory.schema.json

JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Approved source inventory",
  "type": "object",
  "additionalProperties": false,
  "required": ["sourcePath", "sourceSha256", "constraintsPath", "constraintsSha256", "sourceOwner", "sourceVersion", "approvedAt", "passages", "ambiguities"],
  "properties": {
    "sourcePath": {"type": "string", "minLength": 1},
    "sourceSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
    "constraintsPath": {"type": "string", "minLength": 1},
    "constraintsSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
    "sourceOwner": {"type": "string", "minLength": 1},
    "sourceVersion": {"type": "string", "minLength": 1},
    "approvedAt": {"type": "string", "minLength": 1},
    "passages": {"type": "array", "minItems": 1, "items": {"type": "object", "additionalProperties": false, "required": ["id", "startLine", "endLine", "text"], "properties": {"id": {"type": "string", "pattern": "^P[0-9]{3,}$"}, "startLine": {"type": "integer", "minimum": 1}, "endLine": {"type": "integer", "minimum": 1}, "text": {"type": "string"}}}},
    "ambiguities": {"type": "array", "items": {"type": "string"}}
  }
}

.claude/repurpose-contracts/inventory-blocked.schema.json

JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Preflight block before drafting",
  "type": "object",
  "additionalProperties": false,
  "required": ["status", "blockers"],
  "properties": {
    "status": {"const": "blocked"},
    "blockers": {"type": "array", "minItems": 1, "items": {"type": "string", "minLength": 1}}
  }
}

.claude/repurpose-contracts/stage-result.schema.json

JSON
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "One isolated channel result",
  "type": "object",
  "additionalProperties": false,
  "required": ["channel", "status", "sourceSha256", "constraintsSha256", "inventorySha256", "draftFile", "claims", "blockers"],
  "properties": {
    "channel": {"enum": ["linkedin", "newsletter", "ad"]},
    "status": {"enum": ["ready", "blocked"]},
    "sourceSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
    "constraintsSha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
    "inventorySha256": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
    "draftFile": {"type": ["string", "null"]},
    "claims": {"type": "array", "items": {"type": "object", "additionalProperties": false, "required": ["text", "passageIds", "constraintKeys", "status"], "properties": {"text": {"type": "string", "minLength": 1}, "passageIds": {"type": "array", "items": {"type": "string", "pattern": "^P[0-9]{3,}$"}}, "constraintKeys": {"type": "array", "items": {"type": "string"}}, "status": {"enum": ["supported", "needs-human-check", "unsupported"]}}}},
    "blockers": {"type": "array", "items": {"type": "string"}}
  }
}

.claude/repurpose-contracts/pipeline-plan.json

JSON
{
  "purpose": "Compose reader-owned skills into one source-to-three-format review run",
  "execution": "manual Claude Code skill invocation plus deterministic local join",
  "sourceStage": {
    "skill": "source-inventory",
    "inputs": ["approved-source.md", "constraints.json"],
    "success": "inventory.json with source and constraints hashes and complete numbered line coverage",
    "failure": "inventory-blocked.json; stop all channel stages"
  },
  "parallelAfterInventory": [
    {"skill": "draft-linkedin", "reads": ["approved-source.md", "constraints.json", "inventory.json"], "writesOnly": "linkedin/", "contract": "stage-result.schema.json"},
    {"skill": "draft-newsletter", "reads": ["approved-source.md", "constraints.json", "inventory.json"], "writesOnly": "newsletter/", "contract": "stage-result.schema.json"},
    {"skill": "draft-ad", "reads": ["approved-source.md", "constraints.json", "inventory.json"], "writesOnly": "ad/", "contract": "stage-result.schema.json"}
  ],
  "join": {
    "file": "join.py",
    "dependsOn": ["all three stage results or recorded missing/failed slots"],
    "writesOnly": "new join directory",
    "outputs": ["claim-map.md", "review.md", "summary.json"],
    "humanApproval": "pending"
  }
}

join.py

Python
"""Deterministic join/check for the proposed local, review-only pipeline.

This does not call a model, generate prose, or approve factual support. Run only
on reader-owned paths after separately invoked stage skills have returned.
"""

import hashlib
import json
import sys
from pathlib import Path
from urllib.parse import urlparse

CHANNELS = ("linkedin", "newsletter", "ad")
HEX = set("0123456789abcdef")


def digest(path):
    return hashlib.sha256(path.read_bytes()).hexdigest()


def valid_hash(value):
    return isinstance(value, str) and len(value) == 64 and set(value) <= HEX


def read_json(path):
    return json.loads(path.read_text(encoding="utf-8"))


def string_list(value):
    return isinstance(value, list) and all(isinstance(v, str) and v.strip() for v in value)


def approved_offer(value):
    return (isinstance(value, dict) and
            all(isinstance(value.get(k), str) and value[k].strip()
                for k in ("approvedOffer", "destinationUrl", "callToAction")) and
            urlparse(value["destinationUrl"]).scheme in ("http", "https") and
            bool(urlparse(value["destinationUrl"]).netloc))


def check_inventory(run):
    inv_path = run / "inventory.json"
    inv = read_json(inv_path)
    expected = {"sourcePath", "sourceSha256", "constraintsPath", "constraintsSha256",
                "sourceOwner", "sourceVersion", "approvedAt", "passages", "ambiguities"}
    if set(inv) != expected:
        raise ValueError("inventory keys differ from contract")
    source, constraints = Path(inv["sourcePath"]), Path(inv["constraintsPath"])
    if not source.is_file() or not constraints.is_file():
        raise ValueError("approved source or constraints missing")
    if digest(source) != inv["sourceSha256"] or digest(constraints) != inv["constraintsSha256"]:
        raise ValueError("approved input changed since inventory")
    rules = read_json(constraints)
    required = ("sourceOwner", "sourceVersion", "approvedAt", "adaptationRights",
                "audience", "permittedChannels", "reviewer", "forbiddenClaims", "voiceRules", "offer")
    if not isinstance(rules, dict) or any(k not in rules for k in required):
        raise ValueError("constraints approval/rights fields incomplete")
    text_fields = ("sourceOwner", "sourceVersion", "approvedAt", "audience", "reviewer", "voiceRules")
    if any(not isinstance(rules[k], str) or not rules[k].strip() for k in text_fields):
        raise ValueError("constraints text fields incomplete")
    if not string_list(rules["forbiddenClaims"]) or not string_list(rules["permittedChannels"]):
        raise ValueError("constraints lists malformed")
    if any("REPLACE_WITH" in rules[k] for k in text_fields):
        raise ValueError("constraints template was not completed")
    if not isinstance(rules["adaptationRights"], dict) or any(rules["adaptationRights"].get(c) is not True for c in CHANNELS):
        raise ValueError("all three adaptation rights must be explicit")
    if not set(CHANNELS).issubset(set(rules["permittedChannels"])):
        raise ValueError("three-channel rights not explicit")
    if any(rules[k] != inv[k] for k in ("sourceOwner", "sourceVersion", "approvedAt")):
        raise ValueError("source identity differs from constraints")
    lines = source.read_text(encoding="utf-8").splitlines()
    if not lines:
        raise ValueError("source is empty")
    next_line, ids = 1, set()
    if not isinstance(inv["passages"], list) or not string_list(inv["ambiguities"]):
        raise ValueError("inventory passages or ambiguities malformed")
    for n, p in enumerate(inv["passages"], 1):
        if set(p) != {"id", "startLine", "endLine", "text"}:
            raise ValueError("passage keys differ from contract")
        if p["id"] != f"P{n:03d}" or p["id"] in ids:
            raise ValueError("passage IDs must be ordered and unique")
        ids.add(p["id"])
        if (type(p["startLine"]) is not int or type(p["endLine"]) is not int or
                p["startLine"] != next_line or p["endLine"] < next_line or p["endLine"] > len(lines)):
            raise ValueError("source line range gap or overlap")
        actual = "\n".join(lines[p["startLine"] - 1:p["endLine"]])
        if p["text"] != actual:
            raise ValueError("passage text differs from approved source")
        next_line = p["endLine"] + 1
    if next_line != len(lines) + 1:
        raise ValueError("inventory omits source lines")
    return inv_path, inv, rules, ids


def check_stage(run, channel, inv, rules, ids, inv_hash):
    folder = run / channel
    path = folder / "result.json"
    if not path.is_file():
        return {"channel": channel, "status": "blocked", "blockers": ["result.json missing"], "claims": []}
    try:
        result = read_json(path)
        required = {"channel", "status", "sourceSha256", "constraintsSha256",
                    "inventorySha256", "draftFile", "claims", "blockers"}
        if set(result) != required or result["channel"] != channel:
            raise ValueError("result keys or channel differ from contract")
        if result["status"] not in ("ready", "blocked"):
            raise ValueError("invalid result status")
        if (result["sourceSha256"] != inv["sourceSha256"] or
                result["constraintsSha256"] != inv["constraintsSha256"] or
                result["inventorySha256"] != inv_hash):
            raise ValueError("result belongs to another source/inventory")
        if not isinstance(result["claims"], list) or not string_list(result["blockers"]):
            raise ValueError("claims/blockers must be arrays")
        if result["status"] == "ready":
            if channel == "ad" and not approved_offer(rules.get("offer")):
                raise ValueError("ad requires approved offer, HTTP(S) destination and call to action")
            if result["draftFile"] != "draft.md" or not result["claims"] or result["blockers"]:
                raise ValueError("ready result lacks draft or claim list")
            draft = folder / "draft.md"
            if not draft.is_file() or not draft.read_text(encoding="utf-8").strip():
                raise ValueError("ready draft missing or empty")
        elif not result["blockers"] or result["draftFile"] is not None:
            raise ValueError("blocked result needs reasons and no draft")
        for claim in result["claims"]:
            if set(claim) != {"text", "passageIds", "constraintKeys", "status"}:
                raise ValueError("claim keys differ from contract")
            if not isinstance(claim["text"], str) or not claim["text"].strip():
                raise ValueError("empty claim")
            if claim["status"] not in ("supported", "needs-human-check", "unsupported"):
                raise ValueError("invalid claim status")
            if not string_list(claim["passageIds"]) or not string_list(claim["constraintKeys"]):
                raise ValueError("claim evidence pointers must be string arrays")
            if not set(claim["passageIds"]).issubset(ids):
                raise ValueError("unknown source passage ID")
            if not claim["passageIds"] and not claim["constraintKeys"]:
                raise ValueError("claim has no evidence pointer")
            if not set(claim["constraintKeys"]).issubset(rules):
                raise ValueError("unknown constraints key")
            if claim["status"] == "unsupported" and result["status"] == "ready":
                raise ValueError("unsupported claim in ready draft")
        return result
    except (OSError, ValueError, KeyError, TypeError, json.JSONDecodeError) as exc:
        return {"channel": channel, "status": "blocked", "blockers": [f"invalid result: {exc}"], "claims": []}


def main():
    if len(sys.argv) != 3:
        raise SystemExit("Usage: python join.py RUN_DIRECTORY NEW_JOIN_DIRECTORY")
    run, target = Path(sys.argv[1]).resolve(), Path(sys.argv[2]).resolve()
    if target.exists():
        raise SystemExit("join output already exists; use a new directory to preserve prior review")
    inv_path, inv, rules, ids = check_inventory(run)
    inv_hash = digest(inv_path)
    results = [check_stage(run, channel, inv, rules, ids, inv_hash) for channel in CHANNELS]
    target.mkdir(parents=True, exist_ok=False)
    map_lines = ["# Claim map for human review", "", f"Source SHA-256: {inv['sourceSha256']}",
                 f"Constraints SHA-256: {inv['constraintsSha256']}", f"Inventory SHA-256: {inv_hash}", ""]
    review_lines = ["# Review handoff", "", f"Reviewer: {rules['reviewer']}",
                    "No draft is approved, sent or published by this join.", ""]
    for result in results:
        channel = result["channel"]
        map_lines += [f"## {channel}", ""]
        review_lines += [f"## {channel}: {result['status']}", ""]
        for blocker in result["blockers"]:
            review_lines.append(f"- Blocker: {blocker}")
        for claim in result["claims"]:
            refs = ", ".join(claim["passageIds"] + claim["constraintKeys"])
            map_lines.append(f"- {claim['status']}: {claim['text']} — {refs}")
        map_lines.append("")
        review_lines += ["- Human must compare every claim and quote with the approved inputs.",
                         "- Human must check rights, voice, audience and any offer/destination.",
                         "- Human approval decision: PENDING", ""]
    (target / "claim-map.md").write_text("\n".join(map_lines), encoding="utf-8")
    (target / "review.md").write_text("\n".join(review_lines), encoding="utf-8")
    summary = {"sourceSha256": inv["sourceSha256"], "constraintsSha256": inv["constraintsSha256"],
               "inventorySha256": inv_hash, "channels": {r["channel"]: r["status"] for r in results},
               "humanApproval": "pending"}
    (target / "summary.json").write_text(json.dumps(summary, indent=2) + "\n", encoding="utf-8")
    print(json.dumps(summary))


if __name__ == "__main__":
    main()

repurpose-inputs/approved-source.template.md

Markdown
# Replace with the owner's approved written source

This template is deliberately empty of publishable facts. Supply the exact approved transcript or article, retain line breaks for passage IDs, and record its owner and version in constraints.json. Do not invoke the pipeline on this template.

repurpose-inputs/constraints.template.json

JSON
{
  "sourceOwner": "REPLACE_WITH_ACTUAL_OWNER",
  "sourceVersion": "REPLACE_WITH_ACTUAL_VERSION",
  "approvedAt": "REPLACE_WITH_ACTUAL_APPROVAL_DATE",
  "adaptationRights": {"linkedin": false, "newsletter": false, "ad": false},
  "audience": "REPLACE_WITH_APPROVED_AUDIENCE",
  "permittedChannels": ["linkedin", "newsletter", "ad"],
  "reviewer": "REPLACE_WITH_ACTUAL_HUMAN_REVIEWER",
  "forbiddenClaims": [],
  "voiceRules": "REPLACE_WITH_APPROVED_VOICE_RULES",
  "offer": null
}

expected-output-tree.txt

Markdown
STRUCTURE ONLY. No Claude run or model output exists in this packet.

<new-run>/
  inventory.json                 from source-inventory skill, or inventory-blocked.json
  linkedin/result.json           ready or blocked; draft.md only when ready
  newsletter/result.json         ready or blocked; draft.md only when ready
  ad/result.json                 ready or blocked; draft.md only when ready
<new-join>/
  claim-map.md                   generated by join.py from stage claims
  review.md                      all three statuses and PENDING human decisions
  summary.json                   hashes, statuses and humanApproval=pending

మూలాలు, మరింత పఠనం

  • Claude Code skills మార్గదర్శి — ప్రాజెక్టు skill పాత్‌లు, frontmatter, పిలుపు, ఆర్గ్యుమెంట్ ప్రతిస్థాపన, వేరు సందర్భం, నేపథ్య ప్రవర్తన. 19 అక్టోబర్ 2026న తనిఖీ; మొత్తం విధానానికి ఒకే వెర్షన్ ఇవ్వలేదు.
  • Claude Code subagents మార్గదర్శి — సాధారణ ఏజెంట్, సందర్భం, అనుమతులు. 19 అక్టోబర్ 2026న తనిఖీ.
  • Claude Code ఖర్చులు, డేటా వినియోగం మరియు అనుమతులు — ఖాతాపై ఆధారిత వినియోగం, డేటా నిర్వహణ, సాధన నియంత్రణ. 19 అక్టోబర్ 2026న తనిఖీ; ప్రవాహ ఖర్చు కొలవలేదు.
  • స్వతంత్రంగా సమీక్షించిన స్థానిక ప్యాకెట్ నాలుగు skills, ఐదు JSON ఒప్పందాలు, రెండు ఇన్‌పుట్ నమూనాలు, అవుట్‌పుట్ చెట్టు, కలయిక స్క్రిప్ట్ ఇచ్చింది. 16 తనిఖీలు తాత్కాలిక నిర్మాణ పరీక్ష డేటా మాత్రమే వాడాయి; గద్యం లేదా వాస్తవ ఆమోదం ఉత్పత్తి కాలేదు.
  • సంబంధిత BIG CHANGE మార్గదర్శి: సమాంతర పత్రాల సమీక్ష పత్రాల సమీక్షకు వేరైన Claude ప్రవాహాన్ని వివరిస్తుంది; Code లో స్థానికంగా మూలాన్ని మూడు ఛానళ్లకు అనుసరించడం కాదు.