14B.2 Portfolio Strategy: Choosing and Shaping Projects
Your transcript says what you studied. Your GitHub says what you built. This lesson is about the second half: turning the projects you have already built across Modules 00 to 13 — plus a small number of deliberate new pieces — into a portfolio that survives the five minutes a hiring manager actually spends on you. It covers how many projects to keep and of which kinds, how to upgrade the running examples this path gives you into evidence, how to be original without fabricating anything, how to show engineering judgement, how to demo your work safely, how open-source contributions count, how the strategy changes for freshers, switchers and returners, and how to audit your own repos with a small standard-library tool.
What you'll learn
- What a portfolio is actually for, and what a reviewer checks in the first five minutes — and what raises doubts
- How many projects to keep (three to five, with intent) and the five kinds of portfolio piece
- A portfolio plan for each target role: AI application engineer, platform/LLMOps-leaning, retrieval/data-leaning, voice/multimodal-leaning
- How to select and upgrade the module projects (
ai-path,triage,aitoolkit,docs_qa,evalkit,llm_service,llm_guard_kit, the capstone) into portfolio pieces — what to add and what to remove - How to make work original without faking it: a personal domain angle, real or clearly synthetic data, measured improvements, decision logs and documented dead ends
- The signals of engineering judgement: tests, CI badges, typed code, ADRs, trade-off tables, eval tables with confidence intervals, cost per request, failure modes, security notes
- Demos and proof: hosted demo vs recorded walkthrough vs screenshots, safe public demos, and the "clone,
uv sync, run in five minutes" reproducibility test - Open-source contribution as portfolio evidence, including how to read and respect project AI-contribution policies
- Track-specific strategies for freshers, switchers and career returners, and what to do with confidential past work
- How to evaluate your own portfolio: a rubric adapted from the capstone's, two outside reviews, the five-minute test and GitHub's own traffic analytics
career_kit/portfolio_audit.py: a standard-library script that audits a repo directory for portfolio hygiene, with real output on a fixture
What you don't need
- API keys, deployments or paid services. Everything here works on repos you already have, plus fictional examples. The audit script is pure standard library.
- The mechanics of GitHub itself — profile READMEs, pinned repositories, badges and hygiene files are lesson 00.4 and 14B.3. This lesson decides which repos and what they should prove.
- Interview content. Resumés and LinkedIn are 14B.5; interviews are 14B.6 to 14B.8. The portfolio feeds all of them.
- Module 13B's launch-review lesson (13B.6) owns the go-live checklist, the safe-demo stack and the product system card — 6.2 covers only the portfolio-facing demo rules. The rest of Modules 13A and 13B exists too: the capstone rubric is 13B.1, Part 4 and the ADR format is 13A.5, §7.2; this lesson links both directly.
Setup
No installation is required. The audit script in Part 10 uses only the Python standard library on Python 3.11+:
python3 --version # need 3.11 or newerIf you keep the script inside the Module 14B career_kit package (the package grows one file per lesson and is listed in full in 14B.9), create the folder once:
mkdir -p career_kit && touch career_kit/__init__.pyThen save the code from 10.2 as career_kit/portfolio_audit.py and run it as python3 career_kit/portfolio_audit.py /path/to/a/repo.
What you must be able to do after this lesson#
- Explain what a reviewer checks in the first five minutes of a portfolio
- Choose three to five portfolio projects and name the kind of piece each one is
- Upgrade a module project into a portfolio piece with measured results and a decision log
- Make work original with a real or clearly synthetic dataset and a personal domain angle
- Set up a demo that passes the clone, uv sync and run in five minutes test
- Audit your own portfolio against a rubric
Why this matters for an AI engineer#
The applied-AI job market has a specific shape: there are more people who can talk about LLMs than people who can show a measured, tested, explained system. A portfolio is how you move from the first group to the second — and, for freshers especially, it is the main evidence you have, since you have no work history to point at.
| You'll hear... | You'll understand it after... |
|---|---|
| "Show me something you built." | Part 1 |
| "Your GitHub is your résumé." | Part 1, Part 9 |
| "Do I need five projects or ten?" | Part 2 |
"Is my docs_qa project portfolio-ready?" |
Part 3 |
| "Everyone builds a RAG chatbot — how is mine different?" | Part 4 |
| "Why does this README have an eval table?" | Part 5 |
| "Can I just link a live demo?" | Part 6 |
| "Should I contribute to open source for my portfolio?" | Part 7 |
| "I have no work history to show." | Part 8 |
| "How do I know if my portfolio is good enough?" | Part 9 |
| "What does this audit script actually check?" | Part 10 |
Part 1: What a portfolio is for#
1.1 The five-minute scan#
Picture the person reading your application. They are not reading your code line by line. They have a stack of applications, a role description, and perhaps ten minutes — often less — per candidate. Within the first five minutes on your GitHub profile they will do something like this:
- Look at your profile README and pinned repositories (at most six items — the limit is documented in GitHub's pinning guide, as of November 2026).
- Open your best repo and read the README top to bottom.
- Glance at the file tree, the test folder, the CI badge, the licence and the commit history.
- Try — or at least check whether they could — run it.
- Form a judgement: is this person an engineer who ships, or someone who followed tutorials?
That is the whole game. Everything in this lesson serves those five steps.
1.2 Evidence, not adjectives#
A transcript lists courses. A portfolio shows artefacts. The difference that matters is not how impressive a project sounds but whether a stranger can verify the claims:
| Claim | Weak form | Strong form |
|---|---|---|
| "I built a RAG system" | A repo of prompts and a README saying "it works great" | A repo with a retrieval pipeline, a labelled eval set, an eval report with numbers and confidence intervals, and a demo |
| "I care about quality" | A badge and a hope | CI that runs tests and an eval smoke test on every push, plus the report it produced |
| "I understand cost" | "Cost-optimised!" | A cost-per-request table: model, tokens, price source and date, monthly estimate at stated traffic |
| "I handled failures" | Nothing | A "known failure modes" section listing what breaks, how often, and what the system does about it |
| "I made good trade-offs" | "Used the latest model" | An ADR or decision table: options considered, why this one, what would change the answer |
The pattern: every strong claim is checkable. A hiring manager can't verify "passionate about LLMs", but they can verify that your eval report's numbers reproduce.
1.3 What raises doubts#
These signals consistently make a reviewer suspicious, for reasons that are mostly fair:
| Doubt-raiser | Why it hurts |
|---|---|
| Tutorial clones — repos that mirror a course or a blog post step for step | Suggests you can follow instructions, not yet make decisions. Not fatal, but you must add your own layer (your data, your evals, your decisions) or it proves little |
| No tests | For an engineering role, missing tests suggest the code was never run critically |
Secrets or sloppy hygiene — committed .env, key-shaped strings, dead links |
Reads as "hasn't shipped anything real"; also a security red flag (see 12.7) |
| Dead links and broken demos | Suggests abandonment; the portfolio decays if you don't maintain it |
| "AI-generated" sameness — generic chatbot repos with identical structure and no decisions documented | Increasingly common; without your own domain, data and measurements it signals you directed a tool, not engineered a system |
| No explanation of decisions | Code shows what; a README should show why. Reviewers hire for judgement, and judgement is invisible without write-ups |
| Fabricated-looking metrics — round numbers, no method, no date | Honest evals look messy: confidence intervals, dataset sizes, dates. Suspiciously clean results read as invented |
| A graveyard profile — 50 repos, none finished, all "WIP" | Volume without curation signals diffusion, not depth |
1.4 What the portfolio feeds downstream#
Your repos are not only for hiring managers. The same artefacts feed:
- Interviews — "explain what you built" rounds (14B.8) are far easier when your README, ADRs and eval reports already exist.
- Writing — a project write-up (14B.4) is a portfolio piece and interview preparation.
- Open source — contributions to other projects are portfolio pieces in their own right (Part 7).
- Your future self — the decision log you write for reviewers is the documentation you'll want in six months.
Design once, reuse everywhere.
Part 2: How many projects and which kinds#
2.1 The three-to-five rule#
The most common portfolio mistake is treating "more projects" as "more evidence". It isn't. Five finished, explained repos beat fifteen half-finished ones, because the reviewer reads depth and judgement, not count.
A useful rule of thumb (the author's recommendation, not a sourced standard): keep three to five portfolio pieces, each with a distinct job:
| # | Kind | Its job | Typical form |
|---|---|---|---|
| 1 | Flagship | Prove you can ship a complete product end to end | The Module 13B capstone: a working product with evals, guardrails and a launch review |
| 2 | Depth project | Prove rigour in one hard area: evals, retrieval tuning, agent reliability, cost | A measured study: "I improved X from A to B, here's the eval table" |
| 3 | Breadth/utility project | Prove you can build the small things teams actually need | A CLI, a small service, a library, a developer tool |
| 4 | Open-source contribution | Prove you can work inside someone else's codebase and conventions | One or more merged PRs in a project you don't own |
| 5 | Write-up or case study | Prove you can communicate engineering judgement | A technical post or case study (14B.4) — it can live on your blog, as a repo docs/ page, or as the flagship's own write-up |
You don't need all five. A fresher with no open-source history might run flagship + depth + breadth + write-up. An experienced switcher might run flagship + open-source + write-up and let past work carry the breadth. The kinds matter more than the count.
flowchart TD
subgraph portfolio ["Your portfolio: 3–5 pieces, each with a job"]
F["1 · Flagship<br/>capstone product"]
D["2 · Depth<br/>measured evals / tuning"]
B["3 · Breadth<br/>CLI / small service"]
O["4 · Open source<br/>merged PRs elsewhere"]
W["5 · Write-up<br/>case study / post"]
end
F --> R["Reviewer sees:<br/>ships end-to-end"]
D --> R2["Reviewer sees:<br/>measures and improves"]
B --> R3["Reviewer sees:<br/>builds utilities"]
O --> R4["Reviewer sees:<br/>works in real codebases"]
W --> R5["Reviewer sees:<br/>explains judgement"]2.2 The portfolio plan per target role#
Lesson 14B.1 helps you pick a target role; 14A.8 maps your gaps. The portfolio is where you close the visible ones. Four common target shapes:
| Target role | Flagship | Depth piece | Breadth piece | What the reviewer is really checking |
|---|---|---|---|---|
| AI application engineer (RAG, agents, product features) | Capstone: support copilot or document intelligence app with evals | An evals study on docs_qa or the capstone: dataset, metrics, confidence intervals, what improved |
A CLI or small service (triage upgraded, a batch extractor) |
Can you build the thing and prove it works? |
| Platform / LLMOps-leaning | Capstone deployed with tracing, cost tracking and a runbook | A production-hardening story on llm_service: latency/cost numbers, routing eval, failure drill |
A gateway, cache layer or metrics tool built on aitoolkit/llm_service |
Do you think in systems — cost, latency, reliability, operations? |
| Retrieval / data-leaning | Document Q&A or search product over a real corpus | A retrieval-tuning study on docs_qa: chunking, hybrid search, reranking, recall@k with confidence intervals |
An ingestion or eval-data pipeline (evalkit dataset work, Module 05 pipeline) |
Do you measure retrieval quality, or just call an API? |
| Voice / multimodal-leaning | A voice or document-understanding product (capstone stretch: voice agent) | A measured comparison: models, prompts or pipelines on your own eval set | A utility: receipt extractor, meeting-notes pipeline, multimodal search | Can you handle the harder modalities and evaluate them honestly? |
The pattern to notice: the depth piece is always a measurement, not just a build. "I built a RAG system" is table stakes. "I measured my RAG system, found failure X, fixed it, and here's the before/after with confidence intervals" is what separates candidates.
2.3 Which piece closes which gap#
When you have more candidate projects than portfolio slots, choose by gap, not by effort already spent:
| Your gap (from your 14A.8 matrix) | The piece that closes it best |
|---|---|
| "I've never shipped a complete product" | The capstone, finished properly — this is the flagship's whole job |
| "I can't prove my system works" | A depth project built on evalkit: labelled cases, metrics, confidence intervals |
| "I only know prompting, not retrieval" | Retrieval-tuning depth piece on docs_qa |
| "I have no production/ops evidence" | llm_service-based piece: tracing, cost report, failure modes, deploy notes |
| "I have no security evidence" | Guardrail layer on an agent (llm_guard_kit), a red-team exercise write-up, a security note in a README |
| "I have no collaboration evidence" | Open-source PRs — the only kind that proves you can work in someone else's codebase |
| "I can't explain my work" | The write-up: forces you to articulate decisions, trade-offs and failures |
Two rules of thumb: don't keep a project that duplicates another's evidence (two chatbots prove the same thing once), and don't keep a project you can't explain — if you can't write the "why this project" paragraph (9.2), it's probably not finished.
Part 3: From module projects to portfolio pieces#
3.1 Your raw material: the module inventory#
Everything you built while working through Modules 00 to 13 is candidate raw material. None of it is portfolio-ready by default — the lessons optimise for learning, not for presentation — but the engineering is real, and that's the expensive part.
| Module | Project / package | What it proves | Natural portfolio role |
|---|---|---|---|
| 00 | ai-path workspace + exercises |
Git, GitHub workflow, HTTP/SQL basics, engineering habits | Breadth piece if extended; otherwise supporting evidence |
| 01A | triage CLI |
Rule-based classification, argparse CLI, package layout and python -m execution |
Breadth/utility — upgrade with an LLM-backed classifier and a proper eval |
| 01B | aitoolkit |
Settings/secrets, HTTP client, concurrency, FastAPI service, resilience, logging, pytest | Breadth/utility or platform piece — the foundation for anything deployed |
| 03 | Provider-agnostic client, structured extractor, benchmark | Multi-provider API fluency, cost/latency measurement | Depth evidence inside a bigger piece; rarely a standalone portfolio repo |
| 04 | Prompt A/B harness | Prompt versioning and comparison methodology | Feeds the depth piece's method section |
| 05 | Ingestion pipeline, synthetic eval set | Parsing, cleaning, chunking, synthetic data | Retrieval/data-leaning depth evidence |
| 06 | Semantic search, hybrid retrieval benchmark | Embeddings, vector search, hybrid + reranking | Retrieval/data-leaning flagship or depth |
| 07 | docs_qa RAG package |
Full retrieval-augmented Q&A with citations and abstention | Depth flagship for retrieval/data roles |
| 08 | Research agent, custom MCP server, workflows | Tool calling, agents, MCP | Capstone component or depth piece for agentic roles |
| 09 | Receipt extractor, meeting notes, voice | Multimodal/document/voice pipelines | Multimodal-leaning pieces |
| 10 | evalkit |
Eval datasets, metrics, judges, regression gates | The measurement engine of every depth piece |
| 11 | llm_service |
Tracing, metrics, caching, cost, routing, deployment | Platform/LLMOps depth and breadth |
| 12 | llm_guard_kit |
Threat modelling, injection defences, guardrails, supply-chain checks | Security depth piece or flagship hardening |
| 13 | Capstone (support copilot / document intelligence / voice agent) | End-to-end product engineering | The flagship |
Two honest notes. First, the packages are learning artefacts: they contain fakes (FakeLLM, FakeJudge, ScriptedModel) so they run keylessly. That is a feature for reproducibility — a reviewer can run your evals without a key — but your README must say so plainly, and your hosted/live demo (if any) shows the real-model path. Second, several projects share code (corpus.py, retrievers.py, the LLM seam). Decide which repo is canonical for each shared file; duplicated-but-diverged copies look sloppy to a reviewer who diffs them.
3.2 The upgrade recipe: what to add#
A lesson project becomes a portfolio piece by adding the evidence layer. For each selected repo, work through this checklist:
Add — measurement
- Evals with real numbers. Run your
evalkitsuite (or a focused subset) and publish the report: dataset size, metric, score, confidence interval, date, model versions. Lesson 10A.2, §5.1 shows why the interval matters — at n=30 a 90% score could really be anywhere in 79–100%. Even a small honest eval beats no eval. - A failure-analysis section. Not "limitations: it sometimes fails" but "of 120 eval cases, 14 failed; 9 were retrieval misses, 5 were unsupported claims; here's one example of each and what I changed". This is the single most convincing section a junior portfolio can have, because it demonstrates the skill the job actually tests.
- A cost report. Tokens per request × price (cite the provider's pricing page and the date) → cost per request and per month at a stated traffic assumption. Module 11B's
economics/budgetwork (11B.1) gives you the model. - Latency numbers. p50/p95 if you measured them; "not measured" said honestly if you didn't.
Add — judgement
- A security/threat note. One paragraph: what the system's trust boundaries are, what you defended (link your
llm_guard_kitwork or 12.10's checklist), what remains exposed. For an AI product this is table stakes in 2026, not gold-plating. - A decision log or ADR. "Why hybrid retrieval and not pure vector", "why abstention threshold 0.4", "why I rejected fine-tuning". Two or three entries, each with options considered and what would change the decision. Use the format from 13A.5, §7.2 — a
docs/adr/folder of numbered files — or a simplerdocs/decisions/folder of dated Markdown files; either is fine for a portfolio repo. - A "what I would do next" section. Roadmap honesty: known gaps, the next experiment you'd run, the scaling question you'd answer first. Reviewers read this to calibrate whether you know your own limits.
Add — proof
- A demo. Live link, recorded walkthrough, or screenshot tour — Part 6 helps you choose safely.
- A quickstart that survives a stranger. For the
docs_qaproject that meansuv sync && uv run python ask.py "your question"(oruv run python smoke.pyfor the canned ten-question demo;uv run python -m docs_qa.queryand-m docs_qa.retrievalalso run) should work on a clean machine with no key — theLLMseam is filled byFakeLLM. Test it yourself in a clean environment (6.4).
Add — hygiene
LICENSE(choose deliberately — 00.4, §2.5 covers the basics; it's awareness, not legal advice),CONTRIBUTING.mdif you'll accept PRs,SECURITY.mdif the project could have vulnerabilities worth reporting,.env.example, a real.gitignore, CI badge, pinned dependency versions (14B.3 goes deep on all of these).
3.3 What to remove#
Equally important: subtract before you present.
- Placeholder and dead code.
TODO: implement,pass # stub, unused imports, files namedtest_old.pyorexperiment_v3_final_FINAL.py. Either finish them or delete them — a reviewer who finds a stub assumes the rest is unfinished too. - Unused dependencies. Every package in
pyproject.tomlshould be used. Reviewers check, and unused deps suggest cargo-culted setup. - Dead experiments and duplicate folders. Keep the canonical version; archive the rest (or delete — git history preserves it). "Which of these three
rag.pyfiles is real?" is a five-second trust-killer. - Out-of-scope files. Downloads, datasets you can't licence,
.envfiles, editor cruft,node_modulescommitted by accident. - Secrets in history. If a key ever got committed, removing the file isn't enough — it's in history. Rotate the key first, then clean history carefully (12.7 and 00.4, §8.5 cover this; history rewriting is destructive — rehearse in a scratch clone first).
3.4 The capstone as flagship#
The Module 13B capstone is designed to be your flagship: a complete product with a PRD, an architecture, evals, guardrails, a cost model and a launch review. The three builds are a support copilot (13B.2), a document intelligence app (13B.3) and a voice agent (13B.5), scoped and graded by 13B.1 and described in 13 projects. The launch review itself is 13B.6.
Flagship-specific advice:
- Pick the capstone that matches your target role from 2.2 — don't build the voice agent if you're targeting retrieval roles.
- The launch review is portfolio gold. A documented go/no-go — metrics, risks, rollback criteria — is exactly the artefact a senior engineer produces. Keep it in the repo (
docs/launch-review.md) even if it's a self-review. - Deploy or don't, honestly. A live demo is nice; a recorded demo plus honest "runs locally, needs a key" instructions is equally credible. Never fake a deployment.
- The system card the capstone produces (per the Module 13B plan) is a differentiator few junior portfolios have — intended use, limitations, evaluation summary, risks. Keep it prominent.
Part 4: Making work original without being fake#
Deep-dive
4.1 The overdone list#
Some project shapes are so common that a reviewer has seen fifty versions. They aren't forbidden — but a bare version of one proves very little:
| Overdone project | Why it's saturated | How to differentiate |
|---|---|---|
| "Chat with your PDFs" | Every tutorial ends here | Your own corpus with real messiness; measured retrieval quality; citations users can verify; abstention behaviour; a failure analysis |
| Generic RAG chatbot over web pages | Trivially replicable | A domain you actually know (your club, your hobby, a public dataset); an eval set you labelled yourself; a cost/latency report |
| "AI wrapper" around a single API call | No engineering depth | Show the hard parts: retries, evals, guardrails, structured output, cost control — or don't build it |
| LangChain/LlamaIndex tutorial clones | Framework demos, not your engineering | Use the framework and show what it hides; or build the pipeline yourself (this path does) and compare |
| "Sentiment analysis on tweets" | Classic classroom project | Real constraints: streaming, cost budget, drift, a labelled eval with agreement stats |
| Autonomous "AI agent" that browses the web | High risk, low verifiability | Narrow the scope until you can measure it: a bounded workflow agent with an eval suite beats a flashy demo |
| Fine-tuned model on a toy dataset | Needs GPUs and data you probably don't have | Honest alternatives: prompt optimisation measured on an eval set, or LoRA on a small open model if you genuinely can |
| "ChatGPT clone" | The least differentiated thing possible | Skip it |
The differentiation levers, roughly in order of impact for a reviewer:
- Your domain. A support copilot for a specific fictional-but-realistic org, a recipe assistant for a cuisine you know, a docs Q&A for an actual open-source project you use. Domain knowledge shows judgement.
- Your data. Hand-labelled eval cases, a corpus you cleaned yourself, synthetic data with a documented generation method (10A.2 covers dataset provenance).
- Your measurements. Before/after numbers with confidence intervals. This is the strongest originality signal there is, because it can't be faked convincingly.
- Your documented dead ends. "I tried X, it failed because Y, here's the evidence" — rare and very credible (4.4).
- Your constraints. "Built to run on $5/month", "must answer in 2 seconds", "no keys required — fakes throughout". Constraints force real engineering.
4.2 Personal domain angle and real data#
You don't need private data to be original. Three legal, safe sources of distinctive material:
- Public datasets and docs. Government open data, arXiv, public domain books, open-source project documentation, SEC filings, court records (all public). Pick something with messy real structure — tables, footnotes, inconsistent formatting — because mess is where engineering shows.
- Synthetic data you generate and document. Module 05's synthetic-data lessons show how; the key is documenting the generator, the seed where applicable, and the known gaps. A synthetic corpus you designed for a specific failure mode (ambiguous queries, conflicting docs, out-of-scope questions) is more valuable than scraped data, because it tests what you intended to test.
- Your own fictional-but-consistent world. The
docs_qaAcme corpus is exactly this: a small company with a handbook, help centre, tickets and contracts. Extend it — add a department, a product launch, deliberately planted contradictions — and you have a corpus no one else has.
4.3 Measured improvements and decision logs#
Originality through measurement has a specific shape:
- A baseline. "The naive pipeline scored X on my eval set."
- A hypothesis. "Adding hybrid retrieval should help queries that use exact terms."
- An experiment. Same eval set, changed one thing, recorded results with confidence intervals (10A.6's scorecard and 10A.5's paired comparisons are the method).
- A conclusion with uncertainty. "Recall@10 rose from 0.71 to 0.79 (95% CI on the difference: +0.04 to +0.12); groundedness unchanged. Ship it for exact-term queries; watch paraphrase queries."
- A decision. "Kept hybrid for the flagship; documented in
docs/decisions/0007-hybrid-retrieval.md."
A decision log is the running record of step 5: dated entries, context, options, decision, consequences, and what would reverse it. It doesn't need a framework — a docs/decisions/ folder of numbered Markdown files works. The value isn't the format; it's that it proves you made choices deliberately and can revisit them.
4.4 Dead ends are evidence too#
The strongest portfolios document what didn't work:
- "Fine-tuning was not worth it: my eval set showed prompt optimisation closed 80% of the gap at zero training cost, and the fine-tune added a deployment burden for the remaining 20%."
- "Pure vector search failed on queries containing ticket IDs — exact-match terms vanished in embedding space. Hybrid search fixed recall@10 from 0.62 to 0.81 on that slice."
- "I tried a larger chunk size for cost; groundedness dropped because answers cited the wrong section. Reverted; documented."
Dead ends demonstrate three things at once: you ran real experiments, you can read results honestly (including negative ones), and you understand why things fail — which is the skill interviews actually probe. A README section called "What I tried that didn't work" is unusual and disproportionately credible.
4.5 Never fabricate: the honesty rules#
The rules are absolute, because the downside is asymmetric — one discovered fabrication ends the candidacy and possibly your reputation:
- Never invent metrics. If you didn't measure it, don't state it as fact. "~30% faster" with no method is a guess; say "I didn't measure latency formally" or measure it.
- Never invent users, companies, revenue or adoption. "Used by 50 companies" is a lie unless it's true and provable. For learning projects, "no users yet — this is a portfolio piece" is the honest and perfectly fine answer.
- Never invent benchmarks or comparisons. If you quote a model comparison, it must come from your eval run on your data, with the method described.
- Label toys as toys. A demo with canned responses should say so. A synthetic corpus should say it's synthetic. Honest labelling reads as maturity; discovered dishonesty reads as disqualifying.
- Label illustrative outputs. If a README shows sample output, it should be real captured output or clearly marked as illustrative.
- Don't overclaim what the code does. If the "agent" is a fixed workflow with two tools, call it a workflow. Reviewers probe exactly this boundary in interviews.
4.6 AI-assisted work in your own projects#
You will use AI coding tools — this path assumes you do. The norms for your own projects (as of November 2026, and worth re-checking as they evolve):
- Using AI to write code you understand and could defend is normal. Most professional teams use it daily.
- Disclose where it matters. If a substantial portion of a repo was AI-generated and you couldn't have written it unaided, say so in the README. Honesty here is a differentiator, not a confession — and interviewers increasingly ask "what did you actually do?" precisely because generated code is common.
- You are accountable for every line. If AI wrote it, you still must be able to explain it, debug it and defend it in review. "The AI wrote it" is never an answer to a technical question.
- The same rules apply to write-ups. AI-drafted blog posts need your verification of every claim and citation — invented references are a known failure mode (14B.4 covers this).
- Project policies vary. When contributing to other projects, their rules govern — Part 7.5 covers this; several major projects now restrict or require disclosure of AI-generated contributions.
Part 5: Showing engineering judgement#
Deep-dive
Judgement is the thing interviews try to assess and portfolios rarely show. The fix is to make it visible: a README that records the choices a senior engineer would make, with the evidence attached.
5.1 The judgement checklist#
For each flagship/depth repo, the README (or a linked docs/ page) should answer:
| Signal | What "shown" looks like |
|---|---|
| Tests | A tests/ directory, a CI badge that runs them, a coverage note (even "core paths covered; eval-dependent paths excluded because they need a key") |
| Typed code | Type hints on public functions; py.typed if it's a library; Pydantic models at boundaries (your aitoolkit/evalkit code already does this) |
| CI badge | A working Actions badge in the README — 14B.3 covers the mechanics; the badge must point at a workflow that actually runs |
| ADRs / decision log | Dated entries: context, options, decision, consequences, reversal conditions (4.3) |
| Trade-off tables | "Chose X over Y because Z" — model choice, chunk size, sync vs async, managed vs self-hosted. One honest table per major decision |
| Eval tables with uncertainty | Metric, value, confidence interval, dataset size, date — 5.2 below |
| Cost per request | Model + tokens in/out + price (with source URL and date) → $/request and $/month at stated traffic |
| Failure modes | What breaks, how you know, what the system does — not a disclaimer, a designed-for-failures section |
| Security note | Trust boundaries, defences in place, what remains exposed (12.10's checklist is the source) |
| "What I would do next" | The honest roadmap: known gaps, next experiments, scaling questions |
None of these requires production scale. They require documentation of thinking — which is exactly what separates "built a thing" from "engineered a system".
5.2 Eval tables done right#
An eval table is the highest-signal artefact in an applied-AI portfolio, and also the easiest to fake badly. Done right it looks like this (fictional example):
## Evaluation
Dataset: `evals/rag_v1.jsonl` — 120 hand-labelled cases over the Acme corpus
(45 answerable, 40 unanswerable, 35 adversarial/injection attempts).
Scored by `evalkit` deterministic metrics + calibrated judge
(judge agreement with human labels: κ = 0.81 on a 40-case audit).
Run: 2026-10-28, `gpt-6-luna` primary, no sampling parameters set.
| Metric | Baseline (vector-only) | This system (hybrid + rerank) | Δ (95% CI) |
|---|---|---|---|
| Recall@10 | 0.68 | 0.81 | +0.13 [+0.06, +0.20] |
| Groundedness (judge) | 0.74 | 0.86 | +0.12 [+0.05, +0.19] |
| Correct abstention | 0.55 | 0.82 | +0.27 [+0.14, +0.40] |
| Cost / query | $0.0031 | $0.0044 | +$0.0013 |
| p95 latency | 1.9 s | 2.6 s | +0.7 s |
Read: hybrid retrieval bought recall and abstention at ~40% higher
cost and +0.7 s p95. Worth it for this corpus; the cost report in
`docs/cost.md` shows where the reranker spend goes.Why this works: the dataset is described precisely enough to audit, the judge is calibrated rather than trusted blindly, every number has an interval, the cost of the improvement is shown next to the benefit, and the conclusion is proportionate ("worth it for this corpus", not "best system ever").
The method behind it is all in Module 10A: dataset construction and provenance in 10A.2, judge calibration in 10A.5 (including bootstrap confidence intervals and paired comparisons in §7.4), the RAG scorecard format in 10A.6, §8.2, and gate design in 10A.8. The portfolio version is the published result of that work, not a substitute for doing it.
5.3 ADRs and decision logs#
An Architecture Decision Record (ADR) captures one significant choice while the context is fresh — the forces at play, the options, the decision, and the consequences including what would reverse it. Module 13A covers the full treatment in 13A.5, §7.2 (template plus two worked examples), and 13B.1 puts ADRs in the capstone's docs/adr/ folder. For a portfolio repo, this minimal format is enough:
# ADR-0003: Hybrid retrieval over pure vector search
Date: 2026-10-14 · Status: accepted · Deciders: me (+ reviewer name if any)
## Context
Queries containing ticket IDs and exact error strings scored poorly
with dense retrieval alone (recall@10 = 0.62 on the ID slice).
## Options considered
1. Dense only — cheapest, fails on exact terms.
2. BM25 only — fast, misses paraphrase.
3. Hybrid (dense + BM25, RRF fusion) + cross-encoder rerank — best recall,
+40% retrieval cost.
## Decision
Hybrid + rerank for the flagship; dense-only remains a config flag.
## Consequences
+0.19 recall@10 on the ID slice; +0.13 on the full eval set;
+$0.0013/query.
Revisit if: corpus grows past ~50k chunks (index cost) or latency SLO tightens.Keep ADRs in docs/decisions/ (or docs/adr/), numbered, one file each. Three to five good ADRs per project is plenty; the point is the habit of recording why, which interviews will probe ("why did you choose X over Y?").
5.4 Cost and failure modes#
Two sections that juniors almost never write and seniors always do:
Cost. A short docs/cost.md or README section: model IDs used, tokens per request (measured, not guessed — use the provider's usage fields), price per million tokens with the source URL and access date, cost per request, and a monthly projection at a stated assumption ("at 10k queries/day"). Module 11B's cost work (11B.1) gives you the model; the portfolio version just needs to be honest and dated. Prices change — always date them.
Failure modes. Not "limitations" hand-waving. For each known failure: what triggers it, how often you saw it (in evals or use), what the system does today, and what you'd change. Example:
## Known failure modes
| Failure | Trigger | Frequency (eval set) | Current behaviour | Planned fix |
|---|---|---|---|---|
| Unsupported claim | Retrieval returns irrelevant chunk | 8/120 cases | Abstains if confidence < 0.4; otherwise answers with caveat | Tighter groundedness judge in pipeline |
| Injection in indexed doc | Malicious text in a "ticket" | 3/35 adversarial cases | Spotlighting + canary scan blocks 2/3 | Add document-level sanitiser |
| Long-context degradation | >30k token prompts | rare at current sizes | Truncates oldest turns | Revisit chunking strategy |This table is worth more than a page of feature description, because it proves you know where your system breaks — which is the actual job.
Part 6: Demos and proof#
6.1 Three demo forms: pick deliberately#
| Form | Proof level | Cost/risk | Best for |
|---|---|---|---|
| Hosted live demo | Highest — reviewer interacts with the real thing | Ongoing: uptime, abuse, cost, secrets in a public endpoint | Flagship products that are genuinely safe to expose |
| Recorded walkthrough (video/GIF) | High — shows real behaviour, can't be interacted with | One-time; no running cost; can show failure cases honestly | Most projects; especially anything needing keys, data or cost control |
| Screenshots / annotated output | Medium — static, easy to curate, can't prove it runs | Minimal | Supporting evidence inside a README; quickstart output |
The decision isn't "live is always better" — it's what does each form prove:
flowchart TD
Q{"Does the demo need<br/>a model call or private data?"}
Q -- "yes" --> Q2{"Can you afford and<br/>safely expose it?"}
Q2 -- "no / unsure" --> REC["Recorded walkthrough<br/>(video or GIF)<br/>+ reproducible local run"]
Q2 -- "yes, with caps" --> LIVE["Hosted demo<br/>with rate limits,<br/>synthetic data, no keys"]
Q -- "no" --> SHOT{"Does static output<br/>prove the point?"}
SHOT -- "yes" --> SS["Screenshots /<br/>annotated output"]
SHOT -- "no" --> LIVE2["Hosted demo or<br/>recorded walkthrough"]6.2 Safe public demos#
If you do host a live demo, the Module 13B launch review (lesson 13B.6) is where the safety thinking lives. The non-negotiables for a public demo:
- No keys in the client. Keys live server-side only; the demo endpoint is a thin proxy with strict limits.
- Rate limits and caps. Per-IP request caps, a daily budget cap, max tokens per call, a queue if needed. An unprotected public LLM endpoint is a bill someone else can run up.
- Synthetic or public data only. Never let the demo touch real user data, employer data or anything private. The
docs_qaAcme corpus is ideal precisely because it's fictional. - Input guardrails. The demo is a public attack surface: prompt-injection attempts will happen. Apply the defences from Module 12 — spotlighting, canary scans, output validation — and log abuse attempts.
- Honest failure behaviour. Show abstention working. A demo that confidently answers everything is a demo that will embarrass you.
- A kill switch. A feature flag or env var that disables the demo instantly. Write down where it is.
- Cost ceiling. Know the worst-case daily spend and set a hard cap (provider-side budget alerts where available, plus your own counter).
If any of that feels like too much for a portfolio piece, that's fine — the recorded walkthrough plus "runs locally with uv sync" is a completely credible alternative, and arguably more impressive because it proves reproducibility.
6.3 GIFs and video that work#
Demos fail when they're tedious to watch. Rules of thumb:
- Under 60 seconds for a GIF, under 5 minutes for video. Hook in the first 3 seconds: show the best moment first, then explain.
- Show the product, not the terminal. Unless the product is a CLI, lead with the user-facing behaviour; terminal output is supporting evidence.
- Caption the key moments. Viewers watch muted. Text overlays or a companion README paragraph carry the narrative.
- One story per demo. "Here's a user asking a question the system can't answer, and it abstains gracefully" beats a feature tour.
- Tools: any screen recorder works; for terminal demos,
asciinema-style recordings or even an animated GIF of a scripted session are fine. Keep file sizes sane — a 20 MB GIF in a README is hostile; host video and link it. - Accessibility: provide a text description or transcript for video demos — it helps reviewers and it's just good practice.
6.4 Reproducibility: clone, uv sync, run in five minutes#
The reproducibility test is the portfolio's version of "it works on my machine" defence: a stranger with Python 3.11+ and no keys should be able to clone your repo and run the core path in about five minutes.
Checklist:
-
README.mdquickstart is copy-pasteable, top of file, under ~10 commands -
pyproject.tomlwith pinned dependencies (uv.lockcommitted if you use uv) -
.python-versionor documented Python requirement -
.env.examplelisting every variable, with comments on what's optional - The default run path works keylessly — your fakes (
FakeLLM,FakeJudge,ScriptedModel) make this possible; document that the fakes are deterministic stand-ins, and that real-provider wiring is one config change away - Sample data included in the repo (small!) so there's nothing to download
- Expected output shown in the README, labelled as real captured output
- Known failure modes and minimum hardware/time expectations stated
Test it yourself in a clean environment — this is the step everyone skips and shouldn't:
# In a scratch folder, not your dev environment:
d=$(mktemp -d) && cd "$d"
git clone https://github.com/you/your-repo.git && cd your-repo
uv sync # or: python3 -m venv .venv && .venv/bin/pip install -e .
# follow your own README quickstart literally — don't use memoryDo this the day before you send the link, and again after every significant change. The five minutes a reviewer spends include the two they waste discovering your quickstart is broken.
Part 7: Open-source contribution as portfolio#
Deep-dive
7.1 Why a merged PR is strong evidence#
Everything else in your portfolio is work you designed and graded yourself. A merged pull request in someone else's project is different evidence: a maintainer who doesn't know you reviewed your code, asked for changes, and decided it was good enough to merge. It proves you can read an unfamiliar codebase, follow its conventions, take review feedback, and ship inside constraints you didn't set.
For experienced hires this is often the single most credible portfolio item — it mirrors the actual job. For freshers it's the fastest way to get "real world" evidence without a job.
7.2 Choosing projects and issues#
Not all contributions are equal. What makes a good target:
| Criterion | Good sign | Bad sign |
|---|---|---|
| Activity | Commits and merged PRs within the last few weeks (as of November 2026) | Last commit months ago; maintainer replies take weeks |
| Contribution docs | CONTRIBUTING.md, issue templates, a good first issue label, responsive maintainers |
No docs, hostile or absent responses to questions |
| Fit | Python, LLM/AI tooling, docs, tests — areas where your path gives you real knowledge | Projects where you'd be guessing |
| Scope | Small, well-defined issues: docs fixes, test additions, small bug fixes, type hints, examples | "Rewrite the architecture" issues; anything needing deep domain expertise you lack |
| AI-policy clarity | A stated policy on AI-assisted contributions (see 7.5) | No policy and signs of hostility to AI-assisted work |
Where to find projects: the libraries this path uses (check their repos for good first issue labels), AI tooling projects you genuinely use, and projects adjacent to your interests. The Python ecosystem's good first issue label is a long-standing convention (GitHub's label docs cover labels; the practice of labelling newcomer-friendly issues is community convention, not a GitHub feature).
7.3 The contribution workflow#
The mechanics matter more than the code size:
- Read before you write.
CONTRIBUTING.md,CODE_OF_CONDUCT.md, recent merged PRs (to see what reviewers accept), the relevant source files, the test suite. 00.4, Part 4 covers the PR workflow itself. - Start small. Documentation fixes, a missing test, a small bug with a clear repro, a type-hint pass, a usage example. One clean merged PR beats five sprawling ones.
- Reproduce the issue first. For bugs: confirm you can reproduce it, ideally with a failing test. "I think this is broken" PRs waste maintainer time.
- Follow the project's conventions exactly. Commit style, branch naming, changelog entries, code style — match what the repo does, not what you prefer. This is itself the skill being assessed.
- Write the PR like a maintainer wants it. What, why, how tested, linked issue. Keep it small enough to review in one sitting.
- Respond to review promptly and graciously. Maintainers remember contributors who take feedback well. Disagreement is fine; defensiveness is not.
- Don't disappear. If a PR stalls, a polite ping after a reasonable interval is fine; abandoning mid-review is the main way to burn a project's goodwill.
7.4 What counts as portfolio-worthy#
Not every merged PR needs to be in your portfolio — but curate the best:
- A docs or examples PR in an LLM library you actually use
- A test-coverage PR
- A small bug fix with a reproducing test
- A type-annotation or lint-fix PR
- A feature PR if you're ready (rarer; needs more confidence)
Your portfolio page can link to your contributions (GitHub shows them on your profile; you can also link specific PRs in your profile README or a "Contributions" section). Two or three quality merged PRs in respected projects outweighs ten trivial ones.
7.5 AI-assisted contributions and project policies#
This is the part that changed recently and matters: projects increasingly have explicit policies on AI-generated contributions, and they differ. As of November 2026, verified examples include:
| Project | Policy (read from their repo files on 8 November 2026; policies change, so re-read before contributing) |
|---|---|
| FreeCAD | AI_POLICY.md: expects human understanding of every submission, asks for disclosure of AI assistance (in the PR description and an Assisted-by: commit trailer), "will not accept pull requests with clearly AI-generated code" |
| PluralKit | CONTRIBUTING.md: contributions "must not include content generated by large language models" — code, docs, PR descriptions, comments |
| llama.cpp | AGENTS.md / CONTRIBUTING.md: "AI-generated code is allowed" — but you must understand it fully, debug it independently and discuss it with reviewers without AI help, and disclose AI use; AI-written PR descriptions, commit messages, reviews and issue text are prohibited; undisclosed use or automated submissions risk a permanent ban |
| Mastodon | AI_POLICY.md: human must understand every line, must be able to explain the "why"; significant AI use must be disclosed in the PR description |
The common thread: the human is accountable. Policies range from "no AI-generated content at all" (PluralKit) through "disclose and understand every line" (Mastodon, FreeCAD) to "AI-generated code allowed, with full human understanding and disclosure" (llama.cpp).
Rules for you:
- Check the project's policy before you write a line.
CONTRIBUTING.md,AGENTS.md, a dedicatedAI_POLICY.mdor similar — search the repo for "AI", "LLM", "generated". - When in doubt, ask. A maintainer will tell you their preference; asking is itself a good-faith signal.
- When AI is allowed, disclose it where the policy asks, and be ready to explain every line unaided.
- Never submit fully AI-generated work to a project whose policy forbids or restricts it. Getting caught is worse than not contributing — it can get you blocked and it misrepresents the contribution.
- Your own projects are different — 4.6 covers disclosure norms there; contributor policies don't apply to your own repos (but honesty does).
Part 8: Portfolio for different tracks#
Reference
The portfolio strategy shifts with your starting position. The evidence you can produce differs; the target is the same — provable engineering judgement.
8.1 Fresher track#
Your constraint: no work history, possibly no open-source history, maybe no network. Your advantage: time, learning velocity, and nothing to unlearn.
What counts for you:
- Depth over breadth. Three finished projects with real evals beat ten tutorial repos. The three-to-five rule applies strictly.
- Learning velocity as evidence. A public learning log, a "what I built this month" series, or a well-maintained fork of your own work shows you ship consistently — hiring managers for junior roles weight trajectory heavily.
- The capstone is your flagship. It's designed to be the most complete thing you've built; invest disproportionately there.
- Open source matters more for you. It's the only way to get external validation without a job. Start with docs/tests/small fixes in projects you actually use (Part 7).
- The write-up piece is cheap and high-value. One honest post-mortem of a project — what broke, what you measured, what you'd do differently — demonstrates communication skills that freshers rarely show.
- Honest framing of gaps. "I've never worked professionally" is a fact, not a confession; the portfolio's job is to make it irrelevant by showing you can already do the work.
8.2 Switcher track#
Your constraint and advantage are the same thing: you have a career in PHP, JavaScript, Java, data, QA or DevOps — real engineering experience that most freshers lack, plus domain knowledge this path can't teach.
What counts for you:
- The domain story. Your past work is evidence of engineering maturity — reliability, debugging, stakeholder management — if you can translate it. 14B.1's transfer-of-skills table and 14A.8's gap analysis help; the portfolio should include at least one project that uses your domain (e.g., a PHP developer building an LLM tool for a migration/modernisation use case, a data engineer building an eval pipeline).
- Speed of ramp as evidence. A switcher's superpower is learning fast. A portfolio that shows "I went from zero LLM experience to a measured, shipped system in N weeks" is compelling — document the timeline honestly.
- Don't let the old career dominate. Your GitHub should foreground AI work; old repos can stay (they show history) but pin the AI pieces.
- Confidential past work is off-limits as artefacts — see 8.4.
- Bridge projects help. A small project that combines your old stack and LLMs (e.g., a PHP or JS service calling an LLM API — note: this path is Python-only, but the portfolio can show breadth; or more simply, an AI tool for your old domain) shows the transition concretely.
8.3 Career-returner track#
Returning after a gap, career break, or adjacent field: the portfolio strategy is the switcher's, with extra emphasis on current evidence — your most recent repos should be recent, because they prove the gap is behind you. The same rules apply: finished pieces, measured results, honest timeline. Don't hide the gap; address it in one sentence and move on.
8.4 Confidential past work: rebuild, sanitise, never publish#
The single most dangerous portfolio mistake for experienced people: publishing code, data or write-ups from a previous employer or client. Rules:
- Never publish proprietary code. Even "just for my portfolio" — employment contracts typically assign IP, and some jurisdictions have specific rules (this is awareness, not legal advice).
- Rebuild, don't copy. If a past project is relevant, rebuild a sanitised, generic version: same problem shape, your own code, fictional data, no internal URLs, no customer names, no real metrics you can't disclose. The portfolio piece proves your skill; it doesn't need to be the actual artefact.
- Check moonlighting/IP clauses. Some employment contracts restrict outside work or assign IP broadly — read yours before building portfolio pieces on company time or with company resources.
- When in doubt, ask. A former employer's written OK ("yes, you can describe the problem and show a generic version") is the safe path; silence is not permission.
- Metrics need care. "Reduced p95 latency 40% at a Fortune 500 retailer" may violate confidentiality even without code. "Reduced p95 latency ~40% on a high-traffic production service" is usually safe — but when unsure, generalise or omit.
Part 9: Evaluating your portfolio#
9.1 The five-minute test#
Before you send a link, run the test yourself — or better, get someone else to run it cold. Give a peer this script and watch where they stumble:
- Open your GitHub profile. What are the pinned repos, and does each have a one-line reason to click? (00.4 covers pins; 14B.3 goes deep.)
- Open your flagship. Within 60 seconds of the README, can you state: what it does, who it's for, and how to run it?
- Scroll the README. Is there an eval/measurement section with numbers and a date? A "what I would do next"?
- Check the repo hygiene: tests present? CI badge green?
LICENSE?.env.example? Any.envor key-shaped strings committed? - Try the quickstart — or at least check it looks runnable in five minutes.
- Ask: "what would you ask this person in an interview?" Every question they can't answer from the repo is a gap to fix.
If a step stalls them for more than ~30 seconds, that's a finding, not a nitpick.
9.2 A portfolio rubric#
Module 13B's capstone rubric (13B.1, Part 4) scores products on eight criteria — functionality, quality and evals, UX, architecture, safety and security, operations and cost, documentation, demo — each at four evidence-anchored levels. The same criteria work for portfolio review; the table below adapts them to five portfolio dimensions:
| Dimension | 1 (weak) | 3 (solid) | 5 (strong) |
|---|---|---|---|
| Completeness | Code exists; README thin; can't run it | Runs locally; README covers quickstart, architecture, limitations | Runs keylessly in <5 min; README answers what/why/how/tested/limits |
| Evidence of quality | No tests, no CI | Tests + CI badge; some edge cases | Tests + CI + eval suite with numbers, CIs, dated results |
| Engineering judgement | No decisions documented | A few ADRs or a trade-off table | Decision log + failure modes + cost report + security note + "what next" |
| Honesty | Vague claims, possible overclaim | Metrics labelled, limitations listed | Illustrative outputs marked, dataset provenance documented, dead ends recorded |
| Communication | README is a code dump | Structured README, some explanation | README tells the story: problem → approach → measurement → limits |
Score each piece 1–5 per dimension; anything scoring ≤2 is a fix-before-sharing item. Two honest reviews from peers who don't know your work beat ten self-assessments.
9.3 Getting two outside reviews#
- Who: one peer at your level (they know what "good" looks like to a junior reviewer) and one person more experienced if you can get one (mentor, senior colleague, community contact). Experienced reviewers catch judgement gaps juniors can't see.
- What to ask them to do: the five-minute test (9.1) cold — don't explain first. Then ask: "what's the strongest thing here? What's missing? What would make you not interview this person?"
- What to give them: the repo link and nothing else. If you have to explain it, the repo isn't doing its job.
- Iterate once, then ship. One round of fixes is normal; endless polishing isn't. Record what they said — it's also interview prep ("here's what reviewers look for").
9.4 GitHub traffic analytics#
GitHub gives you free analytics on your own repos — worth checking monthly once your portfolio is public. Verified details (as of November 2026, GitHub Docs):
- Path: repo → Insights → Traffic. Requires push access (i.e., it's your own repo's data).
- Shows: views and unique visitors (14 days), clones (full
git clones, not fetches), referring sites, and popular content (which pages/files get viewed). - Granularity: views and clones update hourly; referrers and popular content daily; all in UTC.
What it can tell you: which repo gets looked at, whether your README or a docs page is the entry point, whether a blog post or LinkedIn drove traffic. What it can't tell you: whether a hiring manager saw it, whether anyone read it, or anything about conversion — most portfolio traffic is a handful of people checking before an interview. Use it to find dead links and popular pages, not as a vanity metric. Low traffic is normal; a spike after you apply somewhere is expected.
Part 10: career_kit/portfolio_audit.py#
Deep-dive
career_kit/portfolio_audit.py#The last piece of this lesson is a tool, not more advice: a standard-library script that audits a repo directory for the hygiene signals a reviewer checks. It encodes Part 3.3's removal list and Part 6.4's reproducibility checklist into something you can run on every project before you send a link.
10.1 What it checks#
| Check | PASS | WARN | FAIL |
|---|---|---|---|
| README | file present, mentions quickstart/usage/evals/limitations/licence, no broken relative links | missing a section, thin README | no README, empty README |
| LICENSE | LICENSE/COPYING present |
absent | — |
| Tests | tests/ dir or test_*.py files |
none found | — |
| CI | .github/workflows/*.yml present |
absent | — |
.env hygiene |
no committed .env, .env.example present, .gitignore covers .env |
missing example or gitignore entry | .env committed |
| Secrets | no key-shaped strings in text files | — | possible key/token/private-key strings |
| Large files | nothing >1 MB outside media | files >1 MB | — |
| TODO density | low TODO/FIXME density | elevated density or TODO-heavy files | density >5% |
| Packaging | pyproject.toml/requirements*.txt/setup.py |
none | — |
One limit to know before you trust a FAIL: the script reads the working directory, not Git's index, so a local .env that your .gitignore correctly excludes still shows up as ".env present". Run it on a fresh clone (the clean-environment recipe in 6.4) to learn what a stranger would actually receive. For the same reason it cannot see secrets that exist only in older commits — that needs a history scanner and the key-rotation steps in 00.4 §8.5.
It is deliberately conservative: secret detection uses known token shapes plus generic credential assignments, and every hit is labelled "possible — verify" because a linter can't know if a string is real. The PLACEHOLDER_RE filter skips obvious placeholders (your-key-here, example, <...>), so .env.example files don't false-positive.
10.2 The code#
Save this as career_kit/portfolio_audit.py. It runs standalone (python3 career_kit/portfolio_audit.py <repo-dir>) or as python3 -m career_kit.portfolio_audit <repo-dir>.
#!/usr/bin/env python3
"""portfolio_audit.py — audit a repo directory for portfolio hygiene.
Standard library only, Python 3.11+. Checks the signals a hiring
reviewer looks for in the first five minutes: README presence and
sections, licence, tests, CI, env-file hygiene, committed secrets,
large files, TODO density and broken relative links.
Usage:
python3 portfolio_audit.py /path/to/repo [--json]
Exit code: 0 = no FAIL findings, 1 = at least one FAIL.
"""
from __future__ import annotations
import json
import re
import sys
from dataclasses import dataclass, field
from pathlib import Path
# Directories never worth scanning.
SKIP_DIRS = {".git", ".venv", "venv", "node_modules", "__pycache__",
".mypy_cache", ".pytest_cache", ".ruff_cache", "dist", "build"}
# Files that are allowed to be large (binaries/assets).
LARGE_FILE_OK = {".png", ".jpg", ".jpeg", ".gif", ".webp", ".ico",
".pdf", ".zip", ".woff", ".woff2", ".ttf", ".mp4"}
LARGE_FILE_BYTES = 1_000_000 # 1 MB
TODO_DENSITY_WARN = 0.02 # TODO-ish comments per line
TODO_DENSITY_FAIL = 0.05
MAX_TODO_PER_FILE = 8
README_NAMES = ("README.md", "README.rst", "README.txt", "README")
LICENSE_NAMES = ("LICENSE", "LICENSE.md", "LICENCE", "LICENCE.md",
"COPYING", "COPYING.md")
ENV_EXAMPLE_NAMES = (".env.example", ".env.sample", ".env.template",
"env.example")
# Headings a portfolio README should have (matched loosely, case-insensitive).
README_SECTIONS = {
"quickstart": r"quickstart|quick start|getting started|installation|install|setup",
"usage": r"usage|how to use|run(n|ning)? it|example",
"evals": r"eval|benchmark|results|evaluation|scorecard",
"limitations": r"limitation|known issues|failure|caveat|not (yet )?(support|implement)",
"license": r"licen[cs]e|copying",
}
SECRET_PATTERNS = [
(r"sk-[A-Za-z0-9_\-]{16,}", "OpenAI-style API key"),
(r"sk-ant-[A-Za-z0-9_\-]{16,}", "Anthropic-style API key"),
(r"ghp_[A-Za-z0-9]{20,}", "GitHub personal access token"),
(r"github_pat_[A-Za-z0-9_]{20,}", "GitHub fine-grained token"),
(r"AKIA[0-9A-Z]{16}", "AWS access key id"),
(r"xox[baprs]-[A-Za-z0-9\-]{10,}", "Slack token"),
(r"AIza[0-9A-Za-z_\-]{30,}", "Google API key"),
(r"-----BEGIN [A-Z ]*PRIVATE KEY-----", "private key block"),
(r"(?i)(api[_-]?key|secret|password|token)\s*[:=]\s*[\"'][A-Za-z0-9_\-+/=.]{20,}[\"']",
"hard-coded credential assignment"),
]
PLACEHOLDER_RE = re.compile(
r"(?i)(your[_-]|<.*>|xxx|example|placeholder|changeme|dummy|fake|"
r"test[_-]?key|insert|replace me|todo)")
TODO_RE = re.compile(r"\b(TODO|FIXME|XXX|HACK)\b")
LINK_RE = re.compile(r"!?\[[^\]]*\]\(([^)\s]+)\)")
FENCE_RE = re.compile(r"^```.*?^```", re.S | re.M)
TEXT_SUFFIXES = {
".py", ".md", ".txt", ".rst", ".toml", ".cfg", ".ini", ".yaml", ".yml",
".json", ".jsonl", ".csv", ".sh", ".bash", ".zsh", ".js", ".ts",
".jsx", ".tsx", ".html", ".css", ".sql", ".xml", ".env", ".example",
}
@dataclass
class Finding:
level: str # "pass" | "warn" | "fail" | "info"
check: str
message: str
@dataclass
class Report:
repo: Path
findings: list[Finding] = field(default_factory=list)
def add(self, level: str, check: str, message: str) -> None:
self.findings.append(Finding(level, check, message))
def count(self, level: str) -> int:
return sum(1 for f in self.findings if f.level == level)
def iter_files(repo: Path):
for path in sorted(repo.rglob("*")):
if not path.is_file():
continue
rel = path.relative_to(repo)
if any(part in SKIP_DIRS for part in rel.parts):
continue
yield path, rel
def find_first(repo: Path, names) -> Path | None:
for name in names:
p = repo / name
if p.is_file():
return p
return None
def read_text(path: Path, limit: int = 2_000_000) -> str:
try:
if path.stat().st_size > limit:
return ""
return path.read_text(encoding="utf-8", errors="replace")
except OSError:
return ""
def looks_binary(path: Path) -> bool:
if path.suffix.lower() in LARGE_FILE_OK:
return True
try:
chunk = path.read_bytes()[:8192]
except OSError:
return True
return b"\x00" in chunk
def check_readme(repo: Path, rep: Report) -> Path | None:
readme = find_first(repo, README_NAMES)
if readme is None:
rep.add("fail", "README", "no README file found at repo root")
return None
rep.add("pass", "README", f"found {readme.name}")
text = read_text(readme)
if not text.strip():
rep.add("fail", "README", f"{readme.name} is empty")
return readme
stripped = FENCE_RE.sub("", text)
for section, pattern in README_SECTIONS.items():
if re.search(pattern, stripped, re.I):
rep.add("pass", "README section", f"mentions '{section}'")
else:
rep.add("warn", "README section",
f"no obvious '{section}' section/heading found")
# relative markdown links that point at missing files
broken = 0
for target in LINK_RE.findall(stripped):
if re.match(r"^[a-z]+://", target) or target.startswith(("#", "mailto:")):
continue
target_path = target.split("#", 1)[0]
if not target_path:
continue
resolved = (readme.parent / target_path).resolve()
try:
resolved.relative_to(repo.resolve())
except ValueError:
continue # links outside the repo (fine)
if not resolved.exists():
broken += 1
if broken:
rep.add("warn", "README links", f"{broken} relative link(s) look broken")
else:
rep.add("pass", "README links", "no broken relative links detected")
words = len(re.findall(r"\w+", text))
rep.add("info", "README", f"~{words} words")
return readme
def check_license(repo: Path, rep: Report) -> None:
lic = find_first(repo, LICENSE_NAMES)
if lic:
rep.add("pass", "LICENSE", f"found {lic.name}")
else:
rep.add("warn", "LICENSE", "no LICENSE/COPYING file at root")
def check_tests(repo: Path, rep: Report) -> None:
test_dirs = [p for p in repo.iterdir()
if p.is_dir() and p.name.lower() in {"tests", "test", "spec"}]
test_files = [rel for _, rel in iter_files(repo)
if rel.stem.startswith("test_") or rel.stem.endswith("_test")
or "tests" in rel.parts or rel.parent.name == "test"]
if test_dirs:
rep.add("pass", "tests", f"found tests/ directory ({test_dirs[0].name}/)")
elif test_files:
rep.add("pass", "tests", f"found {len(test_files)} test file(s)")
else:
rep.add("warn", "tests", "no tests/ directory or test_*.py files found")
def check_ci(repo: Path, rep: Report) -> None:
wf = repo / ".github" / "workflows"
if wf.is_dir() and any(wf.glob("*.yml")) or (wf.is_dir() and any(wf.glob("*.yaml"))):
files = list(wf.glob("*.y*ml"))
rep.add("pass", "CI", f"found {len(files)} workflow file(s) in .github/workflows/")
else:
rep.add("warn", "CI", "no .github/workflows/*.yml|yaml found")
def check_env(repo: Path, rep: Report) -> None:
if (repo / ".env").exists():
rep.add("fail", ".env", ".env file present — must not be committed; "
"rotate any real keys and remove it")
else:
rep.add("pass", ".env", "no committed .env file")
example = find_first(repo, ENV_EXAMPLE_NAMES)
if example:
rep.add("pass", ".env.example", f"found {example.name}")
else:
rep.add("warn", ".env.example", "no .env.example/.env.sample found")
gi = repo / ".gitignore"
if gi.is_file():
text = read_text(gi)
if re.search(r"(^|\n)\s*\.?env\b", text) or ".env" in text:
rep.add("pass", ".gitignore", "ignores .env")
else:
rep.add("warn", ".gitignore", ".gitignore present but doesn't mention .env")
else:
rep.add("warn", ".gitignore", "no .gitignore found")
def check_secrets(repo: Path, rep: Report) -> None:
hits = []
for path, rel in iter_files(repo):
if path.suffix.lower() not in TEXT_SUFFIXES and path.name != ".env":
continue
if looks_binary(path):
continue
text = read_text(path, limit=500_000)
for lineno, line in enumerate(text.splitlines(), 1):
for pattern, label in SECRET_PATTERNS:
for m in re.finditer(pattern, line):
snippet = m.group(0)
if PLACEHOLDER_RE.search(snippet):
continue
hits.append((rel.as_posix(), lineno, label))
break
if hits:
for rel, lineno, label in hits[:10]:
rep.add("fail", "secrets",
f"{rel}:{lineno} — possible {label}; verify and rotate if real")
if len(hits) > 10:
rep.add("fail", "secrets", f"...and {len(hits) - 10} more")
else:
rep.add("pass", "secrets", "no key-shaped strings found in text files")
def check_large_files(repo: Path, rep: Report) -> None:
big = []
for path, rel in iter_files(repo):
try:
size = path.stat().st_size
except OSError:
continue
if size > LARGE_FILE_BYTES and path.suffix.lower() not in LARGE_FILE_OK:
big.append((rel.as_posix(), size))
if big:
for rel, size in big[:10]:
rep.add("warn", "large files",
f"{rel} is {size / 1_000_000:.1f} MB — consider Git LFS or removal")
else:
rep.add("pass", "large files", "no files over 1 MB (excluding media)")
def check_todos(repo: Path, rep: Report) -> None:
worst = []
total_lines = 0
total_todos = 0
for path, rel in iter_files(repo):
if path.suffix.lower() not in TEXT_SUFFIXES:
continue
text = read_text(path, limit=500_000)
lines = text.splitlines()
count = sum(1 for line in lines if TODO_RE.search(line))
total_lines += len(lines)
total_todos += count
if count > MAX_TODO_PER_FILE:
worst.append((rel.as_posix(), count))
if total_lines == 0:
rep.add("info", "TODOs", "no text files scanned")
return
density = total_todos / max(total_lines, 1)
if worst:
for rel, count in worst[:5]:
rep.add("warn", "TODOs", f"{rel} has {count} TODO/FIXME markers")
if density > TODO_DENSITY_FAIL:
rep.add("fail", "TODOs",
f"TODO density {density:.1%} of lines — repo looks unfinished")
elif density > TODO_DENSITY_WARN:
rep.add("warn", "TODOs", f"TODO density {density:.1%} of lines")
else:
rep.add("pass", "TODOs",
f"{total_todos} TODO/FIXME markers across {total_lines} lines "
f"({density:.2%})")
def check_packaging(repo: Path, rep: Report) -> None:
has_pyproject = (repo / "pyproject.toml").is_file()
has_requirements = any(repo.glob("requirements*.txt"))
has_setup = (repo / "setup.py").is_file()
if has_pyproject or has_requirements or has_setup:
rep.add("pass", "packaging",
"found " + "+".join(n for n, ok in
[("pyproject.toml", has_pyproject),
("requirements", has_requirements),
("setup.py", has_setup)] if ok))
else:
rep.add("warn", "packaging", "no pyproject.toml or requirements*.txt found")
def audit(repo: Path) -> Report:
rep = Report(repo=repo)
if not repo.is_dir():
rep.add("fail", "repo", f"{repo} is not a directory")
return rep
rep.add("info", "repo", f"auditing {repo}")
check_readme(repo, rep)
check_license(repo, rep)
check_tests(repo, rep)
check_ci(repo, rep)
check_env(repo, rep)
check_secrets(repo, rep)
check_large_files(repo, rep)
check_todos(repo, rep)
check_packaging(repo, rep)
return rep
def print_report(rep: Report) -> None:
icon = {"pass": "PASS", "warn": "WARN", "fail": "FAIL", "info": "INFO"}
current = None
for f in rep.findings:
if f.check != current:
current = f.check
print(f"\n[{current}]")
print(f" {icon[f.level]:4} {f.message}")
print(f"\nSummary: {rep.count('pass')} pass, {rep.count('warn')} warn, "
f"{rep.count('fail')} fail, {rep.count('info')} info")
def main(argv: list[str]) -> int:
args = [a for a in argv[1:] if not a.startswith("--")]
as_json = "--json" in argv
if not args:
print(__doc__.strip())
return 2
rep = audit(Path(args[0]).expanduser().resolve())
if as_json:
print(json.dumps({
"repo": str(rep.repo),
"summary": {lvl: rep.count(lvl) for lvl in ("pass", "warn", "fail", "info")},
"findings": [{"level": f.level, "check": f.check,
"message": f.message} for f in rep.findings],
}, indent=2))
else:
print_report(rep)
return 1 if rep.count("fail") else 0
if __name__ == "__main__":
sys.exit(main(sys.argv))10.3 Try it: real output on two fixtures#
To see every finding without touching your own repos, build two tiny fixture repos with a standard-library script. fixture-good is a tidy docs_qa-style project; fixture-bad has a committed .env, key-shaped strings in source, no tests, CI or licence, a 1.5 MB binary and TODO-dense code. The "keys" are built at run time from a repeating pattern and are obviously fake, so no key-shaped text sits in this lesson. Save this as make_fixtures.py anywhere (it is not part of career_kit):
"""make_fixtures.py: build two small fixture repos for portfolio_audit.py."""
import sys
from pathlib import Path
root = Path(sys.argv[1] if len(sys.argv) > 1 else "fixtures")
def write(path: str, text: str) -> None:
p = root / path
p.parent.mkdir(parents=True, exist_ok=True)
p.write_text(text, encoding="utf-8")
# --- fixture-good: a tidy docs_qa-style project --------------------------
write("fixture-good/README.md", """# docs-qa
Answer questions about a small fictional company handbook, with citations.
## Quickstart
uv sync && cp .env.example .env
uv run python smoke.py
## Usage
uv run python ask.py "How many days of annual leave do I get?"
## Evaluation
30 hand-labelled cases, run 2026-10-28 on the deterministic fake model:
recall@5 0.83. A real-model report is in docs/eval.md.
## Limitations
Answers only from the bundled handbook. No multi-turn memory.
## Licence
MIT, see LICENSE.
""")
write("fixture-good/LICENSE", "MIT License\n\nCopyright (c) 2026 Example Author\n")
write("fixture-good/pyproject.toml",
'[project]\nname = "docs-qa"\nversion = "0.1.0"\nrequires-python = ">=3.11"\n')
write("fixture-good/.env.example", "# optional; the keyless path needs nothing\nOPENAI_API_KEY=\n")
write("fixture-good/.gitignore", ".env\n.venv/\n__pycache__/\n")
write("fixture-good/.github/workflows/ci.yml", "name: ci\non: [push]\n")
write("fixture-good/tests/test_ask.py",
"def test_smoke():\n assert 1 + 1 == 2\n")
write("fixture-good/src/app.py", '''"""Tiny stand-in for the real pipeline."""
def normalise(question: str) -> str:
"""Collapse whitespace so cache keys are stable."""
return " ".join(question.split())
def retrieve(question: str, corpus: dict[str, str], k: int = 3) -> list[str]:
"""Rank passages by how many question words they contain."""
words = set(normalise(question).lower().split())
scored = sorted(
corpus,
key=lambda pid: -len(words & set(corpus[pid].lower().split())),
)
return scored[:k]
def ask(question: str, corpus: dict[str, str]) -> str:
# TODO: add conversation memory
ids = retrieve(question, corpus)
return "answer based on " + ", ".join(ids)
''')
# --- fixture-bad: committed .env, key-shaped strings, no tests/CI/licence --
fake_key = "sk-" + "abcd1234efgh5678" * 2 # built at runtime, obviously fake
write("fixture-bad/.env", f"OPENAI_API_KEY={fake_key}\n")
write("fixture-bad/README.md", "# my-ai-app\n\nA chatbot.\n")
write("fixture-bad/src/app.py",
"import openai\n"
f"client = openai.OpenAI(api_key=\"{fake_key}\")\n"
"# TODO: tests\n# TODO: error handling\n# TODO: eval\n# FIXME: retries\n"
"# TODO: docs\n# TODO: logging\n# HACK: skip validation\n# TODO: cleanup\n"
"# TODO: caching\n")
(root / "fixture-bad").mkdir(parents=True, exist_ok=True)
(root / "fixture-bad" / "model.bin").write_bytes(b"\x01" * 1_500_000)
print("built", root / "fixture-good", "and", root / "fixture-bad")Run it and audit both fixtures (outside any project you care about; it writes into fixtures/):
python3 make_fixtures.py fixtures
python3 career_kit/portfolio_audit.py fixtures/fixture-good
python3 career_kit/portfolio_audit.py fixtures/fixture-badThese are real outputs from running exactly that code (the absolute path is shortened to /.../; the audit's exit code is 0 for the first and 1 for the second):
fixture-good. Output:
[repo]
INFO auditing /.../fixtures/fixture-good
[README]
PASS found README.md
[README section]
PASS mentions 'quickstart'
PASS mentions 'usage'
PASS mentions 'evals'
PASS mentions 'limitations'
PASS mentions 'license'
[README links]
PASS no broken relative links detected
[README]
INFO ~81 words
[LICENSE]
PASS found LICENSE
[tests]
PASS found tests/ directory (tests/)
[CI]
PASS found 1 workflow file(s) in .github/workflows/
[.env]
PASS no committed .env file
[.env.example]
PASS found .env.example
[.gitignore]
PASS ignores .env
[secrets]
PASS no key-shaped strings found in text files
[large files]
PASS no files over 1 MB (excluding media)
[TODOs]
PASS 1 TODO/FIXME markers across 57 lines (1.75%)
[packaging]
PASS found pyproject.toml
Summary: 17 pass, 0 warn, 0 fail, 2 infofixture-bad. Output:
[repo]
INFO auditing /.../fixtures/fixture-bad
[README]
PASS found README.md
[README section]
WARN no obvious 'quickstart' section/heading found
WARN no obvious 'usage' section/heading found
WARN no obvious 'evals' section/heading found
WARN no obvious 'limitations' section/heading found
WARN no obvious 'license' section/heading found
[README links]
PASS no broken relative links detected
[README]
INFO ~5 words
[LICENSE]
WARN no LICENSE/COPYING file at root
[tests]
WARN no tests/ directory or test_*.py files found
[CI]
WARN no .github/workflows/*.yml|yaml found
[.env]
FAIL .env file present — must not be committed; rotate any real keys and remove it
[.env.example]
WARN no .env.example/.env.sample found
[.gitignore]
WARN no .gitignore found
[secrets]
FAIL .env:1 — possible OpenAI-style API key; verify and rotate if real
FAIL src/app.py:2 — possible OpenAI-style API key; verify and rotate if real
FAIL src/app.py:2 — possible hard-coded credential assignment; verify and rotate if real
[large files]
WARN model.bin is 1.5 MB — consider Git LFS or removal
[TODOs]
WARN src/app.py has 9 TODO/FIXME markers
FAIL TODO density 64.3% of lines — repo looks unfinished
[packaging]
WARN no pyproject.toml or requirements*.txt found
Summary: 2 pass, 13 warn, 5 fail, 2 infoTwo things to notice. fixture-bad's README is 5 words long and its TODO density is 64.3% (9 TODO-style markers among the 14 text lines in the whole repo), so both read as "unfinished". And the same line, src/app.py:2, is reported twice because two different patterns match it; that is deliberate, since each pattern is a different reason to look.
10.4 Reading the report#
- FAIL means fix before sharing. A committed
.envis the worst finding — rotate the key first (it's compromised the moment it's pushed), then remove the file and scrub history carefully (12.7). - WARN means a reviewer will notice. Missing tests or CI on a portfolio repo is a judgement signal, not a style nit.
- INFO is context. README word count and TODO density tell you whether the repo reads as finished.
- The script checks hygiene, not quality. A clean audit doesn't mean good code — it means nothing obviously disqualifying is visible in the first five minutes. That's the bar this lesson sets: clear the hygiene floor, then let the evals and write-ups do the persuading.
10.5 The career_kit package so far#
career-kit/
├── career_kit/
│ ├── __init__.py
│ ├── job_decoder.py # 14B.1
│ ├── skills_matrix.py # 14A.8 (+ self.yaml, target.yaml at the project root)
│ └── portfolio_audit.py # 14B.2 — this lesson: repo hygiene audit
└── pyproject.toml # created by `uv init`Later lessons add more files; 14B.9's appendix is the consolidated listing.
Mistakes gallery#
1.2's claim table is the general version; these are the artefact-level applications — the same portfolio piece, written two ways. Every weak version below describes an intention; every strong version shows checkable evidence, which is the whole argument of this lesson.
| # | The artefact | Weak version | Strong version |
|---|---|---|---|
| 1 | Project description (README opener, pinned-repo intro) | "AI chatbot for customer support" | What it does, for whom, on what data — plus the one measured result that proves it isn't a tutorial clone |
| 2 | Eval claim | "Improved accuracy" | Dataset size and composition, metric, score with a confidence interval, run date and model versions (5.2) |
| 3 | Open-source PR | Title "fixed stuff", body "it works now" | Scoped title, reproduction, what/why/how-tested, linked issue, conventions matched (7.3) |
| 4 | README quickstart | Commands you have never run in a clean clone | clone → sync → env → run tested in a scratch directory, expected output pasted, keyless path documented (6.4) |
Two of them concretely — an eval claim and a quickstart, fictional docs-qa-style project:
WEAK eval section:
"## Results
Adding hybrid retrieval improved accuracy a lot. The system is
much better now and ready to ship."
STRONG eval section:
"## Evaluation
Dataset: evals/rag_v1.jsonl — 120 hand-labelled cases (45
answerable, 40 unanswerable, 35 adversarial). Judge calibrated
at κ = 0.81 on a 40-case human audit.
Run: 2026-10-28, gpt-6-luna. Recall@10 0.68 → 0.81
(+0.13, 95% CI [+0.06, +0.20]); correct abstention 0.55 → 0.82.
Cost rose $0.0031 → $0.0044/query — worth it for this corpus."WEAK quickstart:
"## Quickstart
1. Install Python 3.11+
2. git clone <repo> && cd docs-qa
3. pip install -r requirements.txt
4. python main.py # set OPENAI_API_KEY first"
STRONG quickstart:
"## Quickstart (~2 min, no key needed)
git clone <repo> && cd docs-qa
uv sync && cp .env.example .env
uv run python smoke.py # keyless: FakeLLM, deterministic
uv run python ask.py "<a question from smoke.py>" # also keyless
Expected: 10 smoke rows printed, each with retrieved ids and
verified [n] citations — output captured 2026-10-30."The fixes are minutes of work — a measured run, a clean-clone test, a scoped PR description — which is exactly why reviewers treat the weak versions as the default expectation and the strong ones as the signal that separates "followed a tutorial" from "engineered a system".
Common misconceptions#
| Misconception | Reality |
|---|---|
| "More projects = stronger portfolio." | Three to five finished, explained pieces beat fifteen half-finished ones. Reviewers read depth and judgement, not count. |
| "A portfolio is a folder of screenshots." | It's a small set of public repos a stranger can clone and run. Screenshots support; repos prove. |
| "If the code works, the README can be thin." | The README is where judgement becomes visible. Code shows what; the README shows why. |
| "Eval numbers speak for themselves." | Numbers without dataset size, method, date and uncertainty invite the exact question that exposes weak methodology. Report intervals. |
| "A live demo is always better than a recording." | A recording plus a reproducible local run proves more than an unprotected live demo, and costs nothing to keep alive. Match the form to what it proves. |
| "Open-source contributions are just a nice extra." | A merged PR is often the only portfolio evidence that you can work inside someone else's codebase — the actual job. |
| "AI-assisted code can't be portfolio material." | It can — you're accountable for every line and must disclose where project norms require. Undisclosed or undefendable generated work is the problem, not the tool. |
| "I need production-scale projects to be credible." | Evals on a small honest dataset, a cost report, and documented dead ends are credible at any scale. Honesty about being a learning project beats inflated claims. |
| "GitHub stars/forks measure portfolio quality." | They measure attention, not engineering. A repo with 3 stars and a reproducible eval suite beats a viral repo with no substance. |
| "Once it's public, it's done." | Portfolios decay: dead links, broken quickstarts, stale model names. Re-run the audit and the clean-environment test monthly. |
| "I should hide my gaps." | Reviewers probe gaps in interviews anyway. Documented limitations and a "what next" section read as self-awareness; discovered gaps read as concealment. |
| "The audit script passing means my portfolio is good." | It clears the hygiene floor only. Quality is proven by evals, decisions and write-ups — the script checks the first five minutes, not the substance. |
Key takeaways#
- A portfolio is evidence for a five-minute review. Every piece should survive: pinned repo → README scan → tests/CI/evals check → "could I run this?"
- Keep three to five pieces, each with a distinct job: flagship (capstone), depth (measured evals/tuning), breadth (CLI/service), open source (merged PRs), write-up (case study).
- Choose by gap, not effort. The depth piece is always a measurement, not just a build.
- Upgrade module projects by adding the evidence layer: evals with real numbers and confidence intervals, a failure-analysis section, a cost report, a security note, a demo, a decision log — and remove placeholders, dead code and unused deps.
- Be original through domain, data, measurements and documented dead ends — never through fabricated metrics, users or results.
- Show judgement explicitly: tests, CI badge, typed code, ADRs, trade-off tables, eval tables with intervals, cost per request, failure modes, security notes, "what I would do next".
- Pick the demo form deliberately: hosted (needs caps + safety), recorded walkthrough (most common, safest), screenshots (supporting). Reproducibility — clone,
uv sync, run in five minutes, keylessly — is the strongest proof. - Open-source PRs are unique evidence of working in real codebases; check each project's AI-contribution policy first — several major projects now restrict or require disclosure of AI-generated work.
- Track matters: freshers show depth + learning velocity; switchers show domain story + ramp speed; everyone handles confidential past work by rebuilding sanitised versions, never publishing proprietary code.
- Evaluate honestly: the five-minute test, a rubric adapted from the capstone's, two cold outside reviews, and GitHub traffic analytics for hygiene signals — not vanity metrics.
career_kit/portfolio_audit.pyautomates the hygiene floor: README sections, licence, tests, CI, env-file and secret checks, large files, TODO density — run it on every repo before sharing.- Check your work against the mistakes gallery before sharing: weak-vs-strong pairs for project descriptions, eval claims, PR descriptions and quickstarts — intentions versus checkable evidence.
Terms introduced in this lesson#
| Term | One-line definition |
|---|---|
| Portfolio piece | A public repo (or write-up/PR set) that serves a distinct evidence role in your portfolio |
| Flagship project | Your best, most complete project — the one reviewers should find first |
| Depth project | A piece proving rigour in one area through measurement (evals, tuning, cost) |
| Breadth/utility project | A smaller piece proving you can build the tools teams need (CLI, service, library) |
| Portfolio plan | The per-target-role mapping of which pieces to build and what evidence each must show |
| Evidence layer | The additions that turn a learning project into portfolio material: evals, failure analysis, cost report, security note, demo, decision log |
| Decision log / ADR | A dated record of a significant choice: context, options, decision, consequences, reversal conditions |
| Eval table with confidence intervals | Published metrics showing dataset size, method, date and uncertainty bounds |
| Cost report | Tokens × price (dated source) → cost per request and per month at stated traffic |
| Failure-modes section | A table of known failures: trigger, frequency, current behaviour, planned fix |
| Recorded walkthrough | A video/GIF demo showing real product behaviour without a live endpoint |
| Reproducibility test | The clean-environment check that a stranger can clone and run the project in ~5 minutes |
| Portfolio audit | The automated hygiene check (portfolio_audit.py) for README, licence, tests, CI, secrets, env files, size and TODO density |
| Five-minute test | The cold-review script for evaluating whether a repo survives a hiring manager's first scan |
| Portfolio rubric | A scoring grid (completeness, quality evidence, judgement, honesty, communication) adapted from the capstone's |
| Drive-by PR | A low-effort, unreviewed contribution — visible to maintainers and damaging to reputation |
| Sanitised rebuild | Recreating a past-work idea as a generic public version with own code, fictional data, no proprietary artefacts |
| Portfolio decay | The slow rot of public repos: dead links, broken quickstarts, stale facts — needs periodic re-audit |
| Keyless run vs real-model eval | Two tiers of evidence: a deterministic run on fakes proves the pipeline and harness; a dated real-model report measures quality and should ship the raw outputs it was scored from (6.4) |
All terms are also collected in the glossary.
Exercises#
These need only a text editor and your own repos — no API keys, no installs beyond Python 3.11+.
-
Choose your five pieces. Using 2.2's table and your 14A.8 gap matrix, write down your portfolio plan: which 3–5 pieces, which target role each serves, and what evidence each must show. Justify each choice in one sentence ("I picked X over Y because...").
-
Audit a real repo. Save
career_kit/portfolio_audit.pyfrom 10.2 and run it on one of your module projects (docs_qa,evalkit,llm_service,triage...). Paste the summary line and list every WARN/FAIL. Pick the worst finding and fix it. -
Write "why this project" paragraphs. For each portfolio piece, write one paragraph (≈100 words) answering: what it does, what makes it yours (domain/data/measurement), and what you'd do next. These become your interview answer and your README's "Why this exists" section. Swap with a peer and check they could repeat your argument back.
-
Build the eval table. Take your best project's eval output (real or from the fakes) and write the 5.2-style table: metric, baseline, current, delta with CI, cost, latency. If you don't have a CI, compute the rough half-width
1.96·√(p(1−p)/n)yourself for your n. -
Document one dead end. Pick a project experiment that failed or underwhelmed. Write a
docs/decisions/entry or README subsection: what you tried, the evidence it didn't work, and what you'd do differently. This is the highest-credibility paragraph you can write. -
Run the five-minute test on yourself. Give a peer your flagship repo link and the 9.1 script. Note every place they stalled >30 seconds. Fix the top three.
-
Contributions plan. Pick one project you actually use. Find its
CONTRIBUTING.mdand AI policy (search the repo for "AI", "LLM", "generated"). List threegood first issue-style contributions you could realistically make, smallest first. Do not submit anything yet — just plan. -
Reproducibility drill. Pick your flagship and run 6.4's clean-environment test literally: fresh
mktemp -d, clone,uv sync, follow your own README quickstart without using memory. Time it. Fix whatever breaks.
What to do this week#
A concrete action list — pick the items that fit your stage; each takes hours, not weeks:
- Day 1–2: Run
portfolio_audit.pyon every repo you might link. Fix all FAILs (rotate any leaked key first). - Day 3: Write your portfolio plan (2.2): name your flagship, depth piece, breadth piece, and whether open source/write-up fit.
- Day 4–5: Upgrade your flagship's README: add the eval table (with CI), a failure-modes section, a cost note, and "what I would do next".
- Day 6: Write one "why this project" paragraph per piece and one dead-end entry.
- Day 7: Run the five-minute test with a peer; fix the top three stalls. Re-run the clean-environment reproducibility check.
If you're a fresher with no capstone yet: swap "flagship" for your most complete module project and start the capstone plan in parallel — the portfolio work above applies to whatever you have.
Check yourself#
- What are the three to five kinds of portfolio piece, and what does each prove?Flagship (ships end-to-end), depth (measured rigour in one area), breadth/utility (builds small tools), open source (works in others' codebases), write-up (communicates judgement). Kinds matter more than count.
- Why is "I built a RAG system" weaker evidence than "I measured my RAG system and here's the eval table"?The first is a claim; the second is checkable evidence — dataset, metric, interval, date, method. Reviewers verify claims; measurements survive scrutiny.
- Name four things that raise doubts in a reviewer, and the fix for each.Examples: no tests → add tests+CI; committed
.env/secrets → rotate + scrub; dead links → fix or archive; "AI-generated sameness" → add your domain/data/decisions; no decision explanation → add ADRs/write-up. - What's the difference between a tutorial clone and a portfolio piece built on the same tutorial?A tutorial clone mirrors instructions; a portfolio piece adds your domain, your data, your measurements, your documented decisions and dead ends.
- Why must eval tables include confidence intervals (or dataset size)?Because a point estimate on a small n is misleading — at n=30 a 90% score spans ~79–100%. The interval (or n, so the reader can compute it) shows methodological honesty.
- What's the safest demo form for a project that needs API keys, and why?A recorded walkthrough plus a reproducible local run — it proves real behaviour without exposing keys, cost or attack surface.
- List the non-negotiables for a public live demo.No keys client-side, rate limits/caps, synthetic or public data only, input guardrails, honest failure behaviour, a kill switch, a known cost ceiling.
- What does "clone,
uv sync, run in five minutes" test, and why do fakes make it stronger?Whether a stranger with Python 3.11+ and no keys can run the core path in ~5 minutes. Fakes make evals reproduce exactly — stronger than "works if you bring a key". - Why is a merged open-source PR stronger evidence than a self-graded project?Because a maintainer who doesn't know you reviewed, requested changes and merged it — external validation of your code inside real constraints, which self-graded work can't provide.
- Name two projects with explicit AI-contribution policies and what they require.Examples (read 8 November 2026): FreeCAD asks for disclosure + human understanding, won't accept clearly AI-generated code; PluralKit forbids LLM-generated contributions entirely; llama.cpp allows AI-generated code but requires full understanding, independent debugging and disclosure — AI-written PR text is banned; Mastodon requires understanding every line + disclosure.
- What's the difference between a fresher's and a switcher's portfolio strategy?Fresher: depth + learning velocity + trajectory evidence (no work history). Switcher: domain story + ramp speed + transfer of past skills; old career informs but AI work is foregrounded.
- Why is publishing a past employer's code never acceptable, and what's the safe alternative?Employment contracts typically assign IP; it's both an ethical breach and often a legal one. Safe alternative: rebuild a sanitised generic version with your own code, fictional data, no proprietary artefacts.
- What does
portfolio_audit.pycheck that a human reviewer checks in five minutes — and what does it not check?It checks hygiene: README sections/links, licence, tests, CI, env files, secrets, large files, TODO density, packaging. It does not check code quality, correctness, eval rigour or whether the project is interesting — that's what evals and write-ups prove. - What's the difference between a WARN and a FAIL finding from the audit script?FAIL = fix before sharing (committed
.env, key-shaped strings, >5% TODO density, empty/missing README); WARN = a reviewer will notice (missing tests, no CI, no licence, thin README, broken links).
Further resources#
- GitHub Docs — Managing your profile README and Pinning items to your profile: the profile mechanics (max six pins, combined repos+gists).
- GitHub Docs — Viewing traffic to a repository: what Insights→Traffic shows and its limits.
- GitHub Docs — Adding a workflow status badge and Customizing your repository's social media preview: badges and link-preview images.
- GitHub Docs — Setting guidelines for repository contributors and Adding a security policy:
CONTRIBUTING.mdandSECURITY.md. - semver.org and Keep a Changelog: versioning and changelog conventions.
- SPDX License List: canonical licence identifiers for
LICENSEfiles. - Project AI policies (verify each before contributing): FreeCAD AI_POLICY.md, PluralKit CONTRIBUTING.md, llama.cpp AGENTS.md and CONTRIBUTING.md, Mastodon AI_POLICY.md.
- Module lessons this lesson builds on: 14B.1 landscape, 14A.8 skills map, 14B.3 GitHub presence, 14B.4 writing, 10A.2 datasets, 10A.5 judge calibration, 10A.6 RAG eval, 10A.8 regression CI, 11B.1 cost, 11C.4 operating, 12.7 supply chain, 12.10 security ops, 00.4 GitHub, 00.9 engineering habits, Module 13B capstone.
← 14B.1 — The AI Engineering Landscape: Roles, Teams and Career Paths | Module 14B overview | 14B.3 — GitHub Presence and Project READMEs →