AI-translated from English; not yet reviewed by a fluent editor.

# একটি অনুমোদিত উৎস থেকে তিনটি যাচাইযোগ্য খসড়া বানাতে Claude Code skills যুক্ত করুন

> চারটি আলাদা Claude Code skills দিয়ে অনুমোদিত লেখার তালিকা বানান, LinkedIn, নিউজলেটার ও বিজ্ঞাপনের খসড়া লিখুন, তারপর মানুষের পর্যালোচনার আগে ফাইলের হ্যাশ ও দাবি যাচাই করুন।

By BIG CHANGE Editorial

Published: 2026-10-19T19:41:34.834Z
Updated: 2026-10-19T19:41:34.834Z
Canonical: https://bigchange.ai/blog/claude-code-three-channel-skill-pipeline-guide

![Conceptual charcoal illustration of three unbranded layout proofs: a social post on a phone, an open newsletter on a wooden stand, and a small ad in a metal holder.](https://bigchange.ai/api/media/file/three-channel-proof-hero-v1.png)
AI-generated conceptual illustration by BIG CHANGE; no actual Claude Code interface, model output, reviewed draft or campaign is depicted.

অনুমোদিত নিবন্ধ বা প্রতিলিপি থেকে একাধিক খসড়া হতে পারে, তবে প্রতিটির সঙ্গে উৎসের স্পষ্ট যোগসূত্র চাই। এই নির্দেশিকা চারটি আলাদা [Claude Code প্রকল্প skills](https://code.claude.com/docs/en/skills) যুক্ত করে: মালিকের অনুমোদিত লেখার তালিকা, পৃথক ডিরেক্টরিতে LinkedIn পোস্ট, নিউজলেটারের অংশ ও বিজ্ঞাপন লেখা, এরপর স্থানীয় Python সংযোজন দিয়ে ফাইল চুক্তি পরীক্ষা। ফল হলো নির্দিষ্ট নামের মানব পর্যালোচকের জন্য খসড়া, প্রকাশ বা পাঠানোর অনুমতি নয়।

BIG CHANGE নিচের skills, চুক্তি ও সংযোজনের কোড দেখেছে। স্বাধীন পর্যালোচক ১৬টি স্থানীয় কাঠামোগত পরীক্ষা চালিয়েছেন। আমরা **করিনি**: Claude Code-এ skills ইনস্টল বা চালানো, মডেল চালাতে অর্থ দেওয়া, বাস্তব তথ্যভিত্তিক চ্যানেলের খসড়া তৈরি বা আসল প্রচারাভিযান পরীক্ষা। নিচের ধাপ পাঠকের নিজের অনুমোদিত উৎসে চেষ্টা করার পদ্ধতি।

## বড় পরিবর্তন

- **কী বদলেছে:** নিজের নিয়ন্ত্রণের চারটি skill-এর উৎস, তালিকা ও চ্যানেলের ফলের স্পষ্ট চুক্তি রয়েছে; পরে নির্দিষ্ট নিয়মে সংযোজন হয়।
- **কেন গুরুত্বপূর্ণ:** প্রতিটি খসড়াকে উৎসের অংশে ফেরত নেওয়া যায় এবং অনুপস্থিত চ্যানেল আটকে থাকা স্থান হিসেবে দৃশ্যমান থাকে।
- **যা খেয়াল রাখতে হবে:** ফাইল পরীক্ষা সত্যতা, অভিযোজনের অধিকার বা সম্পাদকীয় অনুমোদন প্রমাণ করে না; প্রতিটি প্রস্তুত খসড়া মানুষকে দেখতে হবে।

## ১. প্রবেশাধিকার, অধিকার ও উৎস নিশ্চিত করুন

নিজের নিয়ন্ত্রণের Claude Code রিপোজিটরি ও উৎস প্রক্রিয়ার অনুমতি থাকা অ্যাকাউন্ট ব্যবহার করুন। গোপন উপাদান ব্যবহারের আগে উপলব্ধ মডেল, [ব্যবহার ও খরচ](https://code.claude.com/docs/en/costs), [ডেটা নীতি](https://code.claude.com/docs/en/data-usage) এবং [টুলের অনুমতি](https://code.claude.com/docs/en/permissions) পরীক্ষা করুন। Claude Code-এর `/usage` কমান্ড বর্তমান সেশনের ব্যবহার দেখাতে পারে; বিল অ্যাকাউন্ট ও পরিকল্পনার ওপর নির্ভরশীল। এই প্রবাহের খরচ বা সাশ্রয় মাপা হয়নি। উৎস অবশ্যই বাস্তব অনুমোদিত UTF-8 নিবন্ধ বা যাচাই করা প্রতিলিপি, যার মালিক, সংস্করণ ও অনুমোদন লেখা আছে। প্রতিলিপির নির্ভুলতা, প্রত্যেক চ্যানেলের অধিকার, গোপনীয়তা ও কোনো অফার আগে মালিকের সঙ্গে মিটিয়ে নিন। ভিডিও URL বা নিচের ফাঁকা ছক এই শর্ত পূরণ করে না।

চারটি রেফারেন্স skill, Claude Code-এর নথিভুক্ত `.claude/skills/<name>/SKILL.md` অবস্থান, স্ল্যাশ কমান্ডে ডাকা এবং `$ARGUMENTS` প্রতিস্থাপন ব্যবহার করে। তাদের `context: fork` সেটিং প্রতিটি কলকে কথোপকথনের ইতিহাস ছাড়া আলাদা প্রসঙ্গ দেয়। খসড়ার skills ব্যবহার করে `background: true`, যার জন্য Claude Code **v2.1.218 বা পরবর্তী সংস্করণ** দরকার। এগুলি সাধারণ কাজের এজেন্ট ব্যবহার করে; ফাইল লেখার ক্ষমতা ও কার্যকর অনুমতি ব্যবহারকারীর Claude Code বিন্যাস মেনে চলে। skill-এর লেখা অনুমতি দেয় না বা কেবল-পড়ার সীমানা বলবৎ করতে পারে না। হোস্ট অনুমতি দিলে পটভূমির কাজ একসঙ্গে চলতে পারে; সমান্তরাল চালনার নিশ্চয়তা নেই। নাম নেওয়ার আগে একই নামের বিদ্যমান skills ও কমান্ড খোঁজার ব্যবস্থা দেখুন, এবং কমান্ড ইনস্টল করা প্রকল্প ফাইলেই যায় কি না নিশ্চিত করুন। দেখুন [skills নির্দেশিকা](https://code.claude.com/docs/en/skills) এবং [subagents নির্দেশিকা](https://code.claude.com/docs/en/sub-agents).

## ২. চারটি ফাইল ও চুক্তি স্থাপন করুন

প্রকল্পের মধ্যে নিচের তালিকার হুবহু পথগুলি তৈরি করুন। রেফারেন্স ফাইলের প্রতিটি সম্পূর্ণ ব্লক অপরিবর্তিত কপি করুন। `.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) গন্তব্য ও করণীয় আহ্বান চাই; যেকোনোটি না থাকলে শাখা আটকে যায়। বাস্তব পর্যালোচকের নাম লিখুন। চালানোর সময় অনুমোদিত উৎস ও সীমাবদ্ধতা বদলাবেন না।

## ৩. প্রতিটি নির্ভরতা পরীক্ষা করে তালিকা চালান

প্রথমে ছোট বাস্তব অনুমোদিত উৎসে প্রতিটি 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 দুটি ইনপুট ফাইলের সঙ্গে মেলান এবং ফাঁকা লাইনসহ অংশের সীমানা দেখুন।

## ৪. তিনটি পৃথক চ্যানেলে খসড়া লিখুন

যখন `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 একাই উপযোগিতা বা নির্ভুলতা প্রমাণ করে না।

## ৫. ফল জুড়ে মানবিক সিদ্ধান্ত নিন

তিনটি ধাপ ফিরে এলে বা নিশ্চিত ব্যর্থ হলে, রান ডিরেক্টরি ও একটি **নতুন** সংযোজন ডিরেক্টরি দিয়ে সরবরাহ করা Python ফাইল চালান। এটি Python-এর মানক লাইব্রেরি ব্যবহার করে; আগে স্থানীয় ইনস্টলেশন দেখুন।

```bash
python join.py <absolute-run-directory> <absolute-new-join-directory>
```

সংযোজন উৎস ও সীমাবদ্ধতার হ্যাশ, তালিকায় সব লাইন, প্রতি চ্যানেলের তালিকা হ্যাশ, ধাপের পরিচয়, দাবির নির্দেশক, আউটপুটের দায়িত্ব ও বিজ্ঞাপনের শর্ত পরীক্ষা করে। এটি লেখে `claim-map.md`, `review.md` এবং `summary.json`। অনুপস্থিত বা অবৈধ ধাপ আটকে থাকে, কিন্তু বৈধ অন্য খসড়াগুলি দেখা যায়। সামগ্রিক উৎসের অমিল সংযোজন থামায়। বাক্য সত্য কি না, উদ্ধৃতি ন্যায্য কি না, দাবির উপযুক্ত আইনি সমর্থন বা মালিকের প্রকাশ-অনুমতি আছে কি না তা যাচাই করে না। `review.md` শুরুতে থাকে `PENDING` সিদ্ধান্ত।

নামিত পর্যালোচক প্রতিটি প্রস্তুত `draft.md` খুলে সব গুরুত্বপূর্ণ বক্তব্য ও উদ্ধৃতি উল্লেখিত অংশ ও সীমাবদ্ধতার সঙ্গে মেলাবেন। অস্পষ্টতা, চ্যানেলের স্বর, অভিযোজনের অধিকার, বিজ্ঞাপনের গন্তব্য ও অফার দেখে তৈরি হওয়া অপেক্ষমাণ ক্ষেত্রের বাইরে প্রত্যেক চ্যানেলের জন্য লিখবেন **গ্রহণ, সংশোধন বা প্রত্যাখ্যান** । প্রকাশ, পাঠানো, সময়সূচি ও বিজ্ঞাপন দেওয়ার জন্য আলাদা মানব অনুমোদন এবং প্ল্যাটফর্ম পরীক্ষা দরকার।

## ৬. ভালো কাজ না হারিয়ে ব্যর্থ শাখা সারান

উৎসের অনুমোদন বা অধিকার অস্পষ্ট হলে মালিকের সঙ্গে নির্দিষ্ট ঘাটতি মিটিয়ে সংশোধিত ইনপুটে নতুন রান শুরু করুন। উৎস বা সীমাবদ্ধতার হ্যাশ বদলালে নতুন সম্পূর্ণ তালিকা চাই। একটি চ্যানেল ব্যর্থ হলে কিন্তু অন্যগুলি বৈধ থাকলে আগে সেই চ্যানেলের আসল ফাইল ও ত্রুটি দেখুন। অপরিবর্তিত তালিকার বাইট ও যাচাইকৃত অন্য ফোল্ডার নতুন রান ডিরেক্টরিতে কপি করে সেখানে কেবল ব্যর্থ ধাপ চালান, তারপর আরেক নতুন ডিরেক্টরিতে সংযোজন করুন। কপি ফলেও তালিকার হ্যাশ মিলতে হবে। প্রক্রিয়ার ফল অনিশ্চিত হলে পুনরায় চালানোর সিদ্ধান্তের আগে ফল ও হ্যাশ পড়ুন। আগের রান ও পর্যালোচকের সম্পাদনা রাখুন, পুনরায় চালিয়ে মুছবেন না। অনুপস্থিত বা অসমর্থিত দাবির নির্দেশক দায়িত্বশীল ধাপে ঠিক করে নতুন ডিরেক্টরিতে নির্দিষ্ট নিয়মের সংযোজন আবার চালান।

এটি হাতে ডাকা, মডেল-নির্দেশিত সংযোজন। এতে কোড-প্রয়োগকৃত কাজ বণ্টন, স্বয়ংক্রিয় পুনঃচেষ্টা, স্থির সমসাময়িক সংখ্যা বা বাইরের পার্শ্বপ্রতিক্রিয়া উদ্ধার নেই। আগে থেকে অনুমোদিত লেখা দিয়ে শুরু করুন; এটি প্রতিলিপি সংগ্রহ বা যাচাই করে না, কিংবা প্রচারের ভিডিও, অডিও বা দৃশ্য উপাদান বানায় না।

## সম্পূর্ণ রেফারেন্স ফাইল

পথ ও বিষয়বস্তু একসঙ্গে রাখুন। নিচের কোড ব্লক স্বাধীনভাবে পর্যালোচিত প্যাকেটের পূর্ণ কপি; এগুলি রেফারেন্স, 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 নির্দেশিকা](https://code.claude.com/docs/en/skills) — প্রকল্প skill পথ, frontmatter, কল, আর্গুমেন্ট প্রতিস্থাপন, আলাদা প্রসঙ্গ ও পটভূমির আচরণ। ১৯ অক্টোবর ২০২৬-এ যাচাই; পুরো পদ্ধতির এক সংস্করণ দেওয়া নেই।
- [Claude Code subagents নির্দেশিকা](https://code.claude.com/docs/en/sub-agents) — সাধারণ এজেন্ট, প্রসঙ্গ ও অনুমতি। ১৯ অক্টোবর ২০২৬-এ যাচাই।
- [Claude Code-এর খরচ](https://code.claude.com/docs/en/costs), [ডেটা ব্যবহার](https://code.claude.com/docs/en/data-usage) এবং [অনুমতি](https://code.claude.com/docs/en/permissions) — অ্যাকাউন্টভিত্তিক ব্যবহার, ডেটা পরিচালনা ও টুল নিয়ন্ত্রণ। ১৯ অক্টোবর ২০২৬-এ যাচাই; প্রবাহের ব্যয় মাপা হয়নি।
- স্বাধীনভাবে পর্যালোচিত স্থানীয় প্যাকেটে চার skills, পাঁচ JSON চুক্তি, দুই ইনপুট ছক, আউটপুট গাছ ও সংযোজন স্ক্রিপ্ট আছে। ১৬টি পরীক্ষায় কেবল অস্থায়ী কাঠামোগত নমুনা ব্যবহার হয়েছে; কোনো গদ্য সৃষ্টি বা তথ্য অনুমোদন হয়নি।
- [সম্পর্কিত BIG CHANGE নির্দেশিকা: সমান্তরাল নথি পর্যালোচনা](https://bigchange.ai/blog/claude-managed-agents-parallel-document-review-guide) নথি দেখার ওপর ভিত্তি করে ভিন্ন Claude প্রবাহ বোঝায়, Code-এ স্থানীয়ভাবে উৎস তিন চ্যানেলে রূপান্তর নয়।

## Sources

- [Claude Code skills নির্দেশিকা](https://code.claude.com/docs/en/skills) — প্রকল্পের পথ, কল, আলাদা প্রসঙ্গ ও পটভূমি; HTTP 200 ও হ্যাশ 2026-10-19-এ যাচাই।
- [Claude Code subagents নির্দেশিকা](https://code.claude.com/docs/en/sub-agents) — সাধারণ এজেন্ট ও অনুমতি; HTTP 200 ও হ্যাশ 2026-10-19-এ যাচাই।
- [Claude Code-এর খরচ](https://code.claude.com/docs/en/costs) — অ্যাকাউন্টভিত্তিক ব্যবহার ও সেশন রিপোর্ট; 2026-10-19-এ যাচাই।
- [Claude Code ডেটা ব্যবহার](https://code.claude.com/docs/en/data-usage) — অ্যাকাউন্ট ও প্রতিষ্ঠানের ডেটা নীতি; 2026-10-19-এ যাচাই।
- [Claude Code অনুমতি](https://code.claude.com/docs/en/permissions) — আসল টুল প্রবেশাধিকার skill-এর লেখার বাইরে ঠিক হয়; 2026-10-19-এ যাচাই।
