Developer Portfolio Skill
Core Policy
Use the user's uploaded LinkedIn PDF/export or pasted profile text as the source of truth. Do not scrape LinkedIn or bypass LinkedIn authentication. If the user only gives a LinkedIn URL, ask them to upload the profile PDF/export or paste the profile text.
Before any GitHub write, check gh auth status and tell the user if gh auth login is needed. Prefer a reviewable draft before pushing unless the user explicitly asks for automatic publish.
Resolve script and reference paths relative to this skill directory. Do not copy local absolute filesystem paths into generated README files, portfolio config, or GitHub commits.
Workflow
-
Collect inputs
- LinkedIn PDF/export path, or pasted LinkedIn text.
- GitHub username, or derive it from
gh api user --jq .loginif authenticated. - Optional target repo names. Defaults:
- Portfolio:
<github-username>.github.io - Profile README:
<github-username>
- Portfolio:
- Optional portfolio template source. Default:
https://github.com/yashrajnayak/developer-portfolio.
-
Extract profile text
- For PDFs, run:
python scripts/extract_linkedin_pdf.py \ --input <linkedin.pdf> \ --out <workspace>/linkedin-profile.txt - For pasted text, save it as
linkedin-profile.txt.
- For PDFs, run:
-
Normalize profile data
- Read
references/profile-schema.md. - Convert
linkedin-profile.txtintonormalized-profile.json. - Keep claims faithful to the source. Do not invent employers, dates, degrees, certifications, or metrics.
- If GitHub username is known, include
github_username. - If a portfolio base URL is known, include
portfolio_url.
- Read
-
Generate portfolio config
- Run:
python scripts/write_portfolio_config.py \ --profile normalized-profile.json \ --out config.json \ --github-username <github-username> \ --portfolio-url https://<github-username>.github.io - Copy the generated
config.jsoninto a cloned/forkeddeveloper-portfoliotemplate repo. - Run the template repo's validation/build commands if available:
npm run validate npm run build
- Run:
-
Generate profile README
- Run:
python scripts/write_profile_readme.py \ --profile normalized-profile.json \ --out README.md - This output is for the GitHub profile repo
<github-username>/<github-username>.
- Run:
-
Publish with GitHub CLI
- Read
references/github-publish.md. - Check auth:
gh auth status gh api user --jq .login - Before pushing, scan for local paths in generated portfolio files. If the template repo has
npm run validate, use it. - Commit intentionally. Do not force-push. Do not overwrite existing user repos without inspecting current contents.
- Read
Output Expectations
Return:
- Source PDF/text used.
- Generated paths:
normalized-profile.json, portfolioconfig.json, and profileREADME.md. - Target GitHub repos.
- Validation commands run.
- Whether GitHub pushes were completed or blocked by missing auth/review.
References
references/profile-schema.md: normalized profile JSON contract and mapping rules.references/github-publish.md: safe GitHub CLI publishing flow.