Skip to content

Commit 894b2a0

Browse files
committed
Add onboarding documentation for new contributors, outlining repository purpose, editing rules, and public contract details.
1 parent 34119b5 commit 894b2a0

3 files changed

Lines changed: 100 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This repository is maintained internally and published so CaptchaAI clients can
44

55
The public contract here is simple: each pack under `articles/{slug}/` is a client-facing example, and the README inside that pack is the setup and usage guide clients should follow.
66

7+
If you are onboarding to this repo, read `ONBOARDING.md` first.
8+
79
## Public vs private
810

911
- Public: blog articles on `blog.captchaai.com` and the example packs in this repository.
@@ -39,6 +41,8 @@ The public quality bar focuses on usefulness and honesty:
3941
- Lint or compile checks where toolchains are available
4042
- Deeper runtime or smoke validation on selected reference flows
4143

44+
The private owner repo also regenerates the root README index, checks cross-repo metadata truth, and validates support-tier claims before treating the public repo as healthy.
45+
4246
## External contributions
4347

4448
This repository is not running a broad external contribution workflow right now. If that changes, this file will be updated.

ONBOARDING.md

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# CaptchaAI Examples Onboarding
2+
3+
This is the public examples repo.
4+
5+
If you are onboarding, start here before editing pack content or changing repo-level messaging.
6+
7+
## What this repo is for
8+
9+
- publish client-facing runnable example packs
10+
- help readers move from a blog article to working CaptchaAI code fast
11+
- state support levels honestly
12+
- give clients a stable pack-level contract through `articles/{slug}/README.md`
13+
14+
## What this repo is not for
15+
16+
- internal article production workflow
17+
- private generation or repair tooling
18+
- private smoke credentials or tracked factory state
19+
- editorial planning or publication reconciliation
20+
21+
Those responsibilities live in the private `cai_content` repo.
22+
23+
## Business role
24+
25+
The examples repo supports the same API business as the blog:
26+
27+
- accelerate time-to-first-solve
28+
- convert readers into API users
29+
- reduce support load with working references
30+
- support partner and ecosystem content with practical code
31+
32+
## Public contract
33+
34+
Treat these as the client-facing contract:
35+
36+
- each pack directory under `articles/{slug}/`
37+
- the pack README inside that directory
38+
- the support tier shown for the pack
39+
40+
Do not treat internal generation history as part of the public contract.
41+
42+
## Relations to the private repo
43+
44+
| Public surface | Private source or owner |
45+
|---|---|
46+
| `articles/{slug}/` | article slug and example metadata in `cai_content` |
47+
| Pack README backlink | blog article at `https://blog.captchaai.com/{slug}` |
48+
| Root README index | generated from private manifests and validation |
49+
| Support tier | private example-factory validation and reporting |
50+
51+
## Checks that matter here
52+
53+
### Public CI
54+
55+
The repository CI checks:
56+
57+
- Python lint
58+
- Node.js syntax
59+
- PHP syntax
60+
- Go vet or formatting
61+
- Ruby syntax
62+
- Bash syntax
63+
- Java compile check
64+
- Kotlin syntax check
65+
- C# build check
66+
- Rust compile check
67+
- required pack structure and at least one supported implementation
68+
69+
### Private owner checks
70+
71+
The private factory also checks:
72+
73+
- backlink and metadata consistency
74+
- manifest truth for pack tier and captcha type
75+
- generated root README index accuracy
76+
- deeper lint, audit, and optional smoke validation
77+
78+
## Editing rules
79+
80+
1. Keep client-facing docs clear and honest.
81+
2. Do not claim more support than the current tier can justify.
82+
3. Do not hand-edit the generated root README index unless you are intentionally repairing it and regenerating immediately after.
83+
4. Keep pack README setup steps aligned with the actual files in that pack.
84+
5. If a language is listed, that implementation should exist and be usable as documented.
85+
86+
## Start-here order
87+
88+
1. `README.md`
89+
2. `CONTRIBUTING.md`
90+
3. the specific pack `articles/{slug}/README.md` you plan to touch
91+
92+
Then, if you own the private repo too, run the cross-repo checks from `cai_content`.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Public code examples for the [CaptchaAI](https://captchaai.com) CAPTCHA solving
44

55
This repository is published for clients who want a runnable starting point fast. Each pack links back to a blog article, includes setup instructions, and shows the current support level honestly.
66

7+
For maintainers, start with `ONBOARDING.md` before changing repo-level messaging or pack contracts.
8+
79
## Quick start
810

911
1. Get your API key from [captchaai.com](https://captchaai.com)
@@ -22,6 +24,8 @@ This repository is published for clients who want a runnable starting point fast
2224
- A practical reference library, not a public window into CaptchaAI's internal content factory.
2325
- Published example packs only. Internal templates, tools, scaffolding, repair tooling, and validation automation are intentionally kept in the private factory repo.
2426

27+
The public repo contract is the pack directory plus the pack README, not the private workflow that produced it.
28+
2529
## Support levels
2630

2731
Each example pack is labeled with the level we can honestly stand behind today:

0 commit comments

Comments
 (0)