veycraft 2.8.2 → 2.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/workflows/profile-update.md +8 -8
- package/.agents/skills/apply-url/SKILL.md +10 -10
- package/.agents/skills/contract-and-nda-auditor/SKILL.md +9 -9
- package/.agents/skills/daily-run/SKILL.md +10 -10
- package/.agents/skills/demo/SKILL.md +10 -10
- package/.agents/skills/github-cli-remote-manager/SKILL.md +10 -10
- package/.agents/skills/offer-negotiator/SKILL.md +9 -9
- package/.agents/skills/profile-intelligence-engine/SKILL.md +10 -10
- package/.agents/skills/recruiter-inbox-triage/SKILL.md +9 -9
- package/.agents/skills/rejection-pattern-analyzer/SKILL.md +9 -9
- package/.agents/skills/score-calibration/SKILL.md +9 -9
- package/.agents/skills/setup/SKILL.md +10 -10
- package/.agents/skills/tailor-cv/SKILL.md +10 -10
- package/.agents/skills/weekly-report/SKILL.md +10 -10
- package/.aiassistant/rules/AGENTS.md +11 -11
- package/.aider.conf.yml +5 -5
- package/.amazonq/rules/job-hunter.md +12 -12
- package/.augment/rules/job-hunter.md +17 -17
- package/.clinerules +14 -14
- package/.continue/rules/job-hunter.md +15 -15
- package/.cursor/rules/job-hunter.mdc +9 -9
- package/.github/CODEOWNERS +3 -3
- package/.github/copilot-instructions.md +5 -5
- package/.github/prompts/daily-run.prompt.md +10 -10
- package/.goosehints +12 -12
- package/.junie/guidelines.md +12 -12
- package/.kiro/steering/job-hunter.md +15 -15
- package/.openhands/microagents/repo.md +18 -18
- package/.roo/rules/job-hunter.md +12 -12
- package/.rules +12 -12
- package/.trae/rules/project_rules.md +10 -10
- package/.windsurfrules +14 -14
- package/AGENTS.md +126 -126
- package/AUTHORS.md +13 -13
- package/CHANGELOG.md +330 -320
- package/CLAUDE.md +22 -22
- package/CRUSH.md +12 -12
- package/GEMINI.md +42 -42
- package/HIRED.md +32 -32
- package/LICENSE +26 -26
- package/NOTICE +22 -22
- package/PLATFORMS.md +93 -93
- package/PROVENANCE.json +19 -19
- package/README.ar.md +5 -1
- package/README.md +5 -1
- package/WARP.md +12 -12
- package/adapters/apps/chatgpt-and-web-chats.md +18 -18
- package/adapters/apps/devin-desktop.md +13 -13
- package/adapters/apps/gemini-and-copilot.md +25 -25
- package/adapters/apps/hermes-pi-factory-openclaw.md +24 -24
- package/adapters/apps/openai-codex-cli.md +23 -23
- package/adapters/apps/opencode-and-kilocode.md +16 -16
- package/adapters/apps/qwen-mistral-kimi-deepseek.md +37 -37
- package/adapters/models/claude.md +28 -28
- package/adapters/models/gemini.md +16 -16
- package/adapters/models/grok-and-kimi.md +14 -14
- package/adapters/models/mistral-and-llama.md +13 -13
- package/adapters/models/openai.md +16 -16
- package/bin/cli.mjs +0 -0
- package/commands/profile-update.md +1 -1
- package/config/guardrails.yaml +67 -67
- package/config/invariants.txt +7 -7
- package/context/DROP_YOUR_FILES_HERE.md +9 -9
- package/context/cv.md.example +12 -12
- package/context/form-answers.yaml.example +45 -45
- package/context/preferences.yaml.example +15 -15
- package/context/profile.md.example +20 -20
- package/context/readiness-state.json.example +64 -64
- package/context/resume-data.json.example +29 -29
- package/context/resume-facts.json.example +1 -1
- package/context/targets.yaml.example +433 -433
- package/docs/ARCHITECTURE.md +106 -106
- package/docs/OPTIONAL_MCP_PLUGINS.md +49 -49
- package/docs/SKILL_CATALOG.md +73 -73
- package/docs/chat-commands.md +33 -33
- package/docs/demo-dashboard.html +646 -646
- package/docs/execution-safety.md +34 -34
- package/docs/index.html +637 -637
- package/docs/platform-registry.md +23 -23
- package/evals/PROMPT.md +31 -31
- package/evals/README.md +36 -36
- package/evals/RUBRIC.md +51 -51
- package/evals/fixtures/boards/bayt-mock.html +255 -255
- package/evals/fixtures/boards/gulftalent-mock.html +250 -250
- package/evals/fixtures/boards/naukri-mock.html +262 -262
- package/evals/fixtures/boards/stepstone-mock.html +245 -245
- package/evals/fixtures/forms/workday-mock.html +328 -328
- package/evals/fixtures/ground-truth.json +53 -53
- package/evals/journeys/journey-matrix.json +333 -333
- package/evals/results/baseline-verified-run.json +125 -125
- package/llms.txt +70 -70
- package/package.json +115 -115
- package/prompts/partials/pacing.md +8 -8
- package/prompts/partials/snapshot-first.md +4 -4
- package/prompts/partials/stop-conditions.md +5 -5
- package/schemas/profile-update-plan.schema.json +133 -133
- package/schemas/readiness.schema.json +484 -484
- package/schemas/resume-data.schema.json +171 -171
- package/scripts/install.sh +0 -0
- package/skills/00-interrogate-and-onboard.md +87 -87
- package/skills/02-discover-and-triage.md +121 -121
- package/skills/03-tailor-resume-and-verify.md +114 -114
- package/skills/04-fill-and-apply.md +108 -108
- package/skills/07-persona-switcher.md +61 -61
- package/skills/18-condition-based-browser-waiting.md +65 -65
- package/skills/20-skill-authoring-standard.md +61 -61
- package/skills/21-ats-keyword-heatmap.md +60 -60
- package/skills/27-universal-cv-builder.md +99 -99
- package/skills/28-recruiter-brand-and-domain-intelligence.md +99 -99
- package/skills/54-github-cli-remote-manager.md +144 -144
- package/skills/REGISTRY.md +98 -98
- package/skills/ats/ashby.md +54 -54
- package/skills/ats/breezyhr.md +54 -54
- package/skills/ats/greenhouse.md +54 -54
- package/skills/ats/lever.md +54 -54
- package/skills/ats/smartrecruiters.md +54 -54
- package/skills/ats/taleo.md +43 -43
- package/skills/ats/workday.md +49 -49
- package/skills/meta-context-compaction.md +88 -88
- package/skills/meta-dom-recovery.md +63 -63
- package/skills/meta-self-verification.md +75 -75
- package/skills/meta-structured-debugging.md +69 -69
- package/skills/platforms/_template.md +69 -69
- package/skills/platforms/ats-engines.md +67 -67
- package/skills/platforms/global-boards.md +122 -122
- package/skills/platforms/linkedin.md +162 -162
- package/skills/platforms/mena-boards.md +99 -99
- package/skills/platforms/remote-boards.md +64 -64
- package/skills/platforms/wellfound.md +59 -59
- package/skills/profile-intelligence-engine.md +98 -98
- package/skills/skills-manifest.json +1730 -1730
- package/templates/analytics-dashboard.html +1106 -1106
- package/templates/ats-cover-letter-template.html +29 -29
- package/templates/ats-resume-template.html +38 -38
- package/templates/ats-resume.html +3 -3
- package/ui/app.js +1113 -1113
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: recruiter-brand-and-domain-intelligence
|
|
3
|
-
version: "1.0.0"
|
|
4
|
-
description: Load whenever decoding or scoring job descriptions, tailoring or building CVs across any industry, switching career personas, or optimizing LinkedIn and cross-platform profiles with senior recruiter, hiring manager, personal-branding, and domain-adaptive lenses.
|
|
5
|
-
triggers:
|
|
6
|
-
- decode job description with HR recruiter and hiring manager lens
|
|
7
|
-
- adapt CV, persona, or profile to target domain or industry
|
|
8
|
-
- optimize CV positioning or truthful red-flag framing for 6-10 second scan
|
|
9
|
-
- optimize LinkedIn Recruiter SEO, Boolean alignment, and personal branding
|
|
10
|
-
requires_mcp:
|
|
11
|
-
- none
|
|
12
|
-
preconditions:
|
|
13
|
-
- verified candidate facts available in context/ or confirmed in the active session
|
|
14
|
-
- target role, job description, CV, persona, or profile text supplied
|
|
15
|
-
requires_skills:
|
|
16
|
-
- meta-self-verification
|
|
17
|
-
verification:
|
|
18
|
-
- Domain Archetype detected dynamically from JD and context without assuming Software Engineering
|
|
19
|
-
- JD True Knock-Out Screeners separated from HR Wishlist Inflation, organizational signals flagged, and Buyer Pain Point extracted
|
|
20
|
-
- CV positioning enforces 6-10s scan hierarchy, Proof Density Hierarchy, and 100% truthful risk framing with zero fabricated facts
|
|
21
|
-
- LinkedIn and profile positioning aligns canonical Experience titles, Recruiter Boolean keywords, 50-skill tagging, and authority surfaces using verified facts only
|
|
22
|
-
---
|
|
23
|
-
# Recruiter, Personal Brand & Domain-Agnostic Market Intelligence
|
|
24
|
-
|
|
25
|
-
## When to Use & Preconditions
|
|
26
|
-
|
|
27
|
-
Cross-cutting intelligence layer giving JD discovery, CV tailoring/building, persona switching, and LinkedIn/profile optimization the judgment of a Senior TA Recruiter, Hiring Manager, and Personal Brand Strategist—dynamically adapted to any industry.
|
|
28
|
-
|
|
29
|
-
- **Load when:** scoring or decoding JDs; tailoring or creating CVs (`03-tailor-resume-and-verify`, `27-universal-cv-builder`); computing ATS heatmaps (`21-ats-keyword-heatmap`); switching personas (`07-persona-switcher`); or auditing LinkedIn and job-board profiles (`linkedin-growth`, `profile-intelligence-engine`).
|
|
30
|
-
- **Preconditions (stop if any is false):**
|
|
31
|
-
- verified candidate facts exist in `context/` or active session confirmations
|
|
32
|
-
- target role, JD, CV, persona, or profile text is supplied
|
|
33
|
-
- **Requires skills:** `meta-self-verification`. **MCP:** none.
|
|
34
|
-
|
|
35
|
-
## Deterministic Step-by-Step Execution
|
|
36
|
-
|
|
37
|
-
### 1. Step 1 — Dynamic Domain Archetype Detection & Market Adapter
|
|
38
|
-
1. **Infer Target Domain Archetype (Never Default to Software Engineering):** Inspect target role title, JD language, and `context/` to select the primary archetype (or hybrid):
|
|
39
|
-
- `Engineering/Data/AI` · `Product/Design` · `Sales/Marketing/Growth` · `Finance/Accounting/Legal/Risk` · `Healthcare/Clinical/Pharma` · `Operations/Supply Chain/HR` · `Executive/Generalist`.
|
|
40
|
-
2. **Bind Domain Adapter Rules Dynamically:**
|
|
41
|
-
|
|
42
|
-
| Archetype | Peer Tone & Vocabulary | Mandatory Compliance / Credential Gates | Native KPI Proof Types | Adaptive Headings & LinkedIn Authority Surfaces |
|
|
43
|
-
|---|---|---|---|---|
|
|
44
|
-
| **Engineering/Data/AI** | Direct technical peer; systems, architecture, tradeoffs | Security clearance, SOC 2/ISO/GDPR when specified | Uptime/SLAs, p95 latency, throughput, cost savings, ship velocity | `Technical Skills`, `Projects`; LinkedIn `Featured`, `Projects`, `Skills` |
|
|
45
|
-
| **Product/Design** | Outcome-first strategist; user research, discovery, prioritization | Accessibility (WCAG), regulated product domain rules | Activation, retention, conversion, NPS, adoption, revenue lift | `Product & Research Competencies`; LinkedIn `Featured` (case studies), `Projects` |
|
|
46
|
-
| **Sales/Marketing/Growth** | Commercial operator; pipeline, ICP, unit economics | Regional/industry ad or financial promotion rules | ARR/MRR, quota attainment %, win rate, CAC/LTV, ROAS, pipeline | `Commercial Competencies & Tools`; LinkedIn `Featured`, `Services`, `Honors` |
|
|
47
|
-
| **Finance/Accounting/Legal/Risk** | Precise, conservative fiduciary; controls, auditability | CPA, CFA, Bar Admission, FINRA, IFRS/GAAP, SOX | Audit findings (`0`), close cycle reduction, EBITDA, AUM, risk mitigation | `Credentials, Licensure & Systems`; LinkedIn `Licenses & Certifications`, `Publications` |
|
|
48
|
-
| **Healthcare/Clinical/Pharma** | Clinical & regulatory rigor; patient safety, protocols | Active RN/MD/PharmD license, HIPAA, GCP, FDA 21 CFR | Patient outcomes, safety compliance, trial milestones, throughput | `Clinical Licensure & Competencies`; LinkedIn `Licenses & Certifications`, `Publications` |
|
|
49
|
-
| **Operations/Supply Chain/HR** | Execution-focused; SLAs, capacity, compliance, talent | PMP, Six Sigma, OSHA, ISO 9001, labor compliance | OTIF, unit cost, cycle time, retention %, time-to-fill, safety rate | `Operational Competencies & Systems`; LinkedIn `Licenses & Certifications`, `Featured` |
|
|
50
|
-
| **Executive/Generalist** | Board/P&L operator; capital allocation, org scale | Fiduciary governance, board/regulatory filings | P&L ownership, EBITDA, multi-site headcount, M&A integration | `Executive Scope & Competencies`; LinkedIn `Publications`, `Featured`, `Honors` |
|
|
51
|
-
|
|
52
|
-
3. **Bind Downstream Controls Dynamically:** Pass the selected archetype's (a) **peer tone**, (b) **mandatory credential/compliance gates**, (c) **KPI proof order**, and (d) **section/bucket taxonomy** into `skills/02-discover-and-triage.md`, `skills/03-tailor-resume-and-verify.md`, `skills/21-ats-keyword-heatmap.md`, `skills/27-universal-cv-builder.md`, `skills/linkedin-growth.md`, and `skills/profile-intelligence-engine.md`. Never inject SWE defaults when the archetype is non-tech.
|
|
53
|
-
|
|
54
|
-
### 2. Step 2 — Senior HR Recruiter & Hiring Manager JD Decoder ("Reading Between the Lines")
|
|
55
|
-
1. **Separate True Knock-Out Screeners from HR Wishlist Inflation:**
|
|
56
|
-
- **True Knock-Outs:** Legal work authorization/visa, mandatory licensure/board credentials, core domain execution, and non-negotiable seniority floor. Missing a knock-out triggers `True Gap` / `Tier C` escalation rather than wishful tailoring.
|
|
57
|
-
- **HR Wishlist Inflation:** "Kitchen-sink" 15+ secondary tools, impossible years-per-newly-released-tool, or copy-pasted `"nice-to-have"` paragraphs. Treat as secondary differentiators, never as blockers when core competencies match.
|
|
58
|
-
2. **Detect Scope & Organizational Signals:**
|
|
59
|
-
- **Title-vs-Scope Mismatch:** Flag under-titled roles carrying director/P&L/on-call scope or inflated titles masking junior execution.
|
|
60
|
-
- **"One-Person Department" Burnout JDs:** Flag roles combining unrelated functions (e.g., strategy + full-cycle execution + compliance + support) with no team backing.
|
|
61
|
-
- **Channel & Company-Stage Signals:** Distinguish **agency/staffing/consulting** vs. **in-house** postings, and calibrate expectations for **startup generalists** (0-to-1 ambiguity, broad ownership) vs. **enterprise specialists** (cross-functional governance, compliance, scale).
|
|
62
|
-
3. **Extract the Buyer Pain Point & Emit JD Decode Brief:**
|
|
63
|
-
- Identify the top **2–3 business problems** the hiring manager was approved budget to solve in the first 90 days (e.g., stalled enterprise pipeline, audit readiness, legacy migration, clinic throughput bottleneck).
|
|
64
|
-
- Output compact internal context: `Domain Archetype` -> `Knock-Outs (Pass/Gap)` -> `Wishlist Non-Blockers` -> `Scope/Stage Flags` -> `Top 2-3 Buyer Pain Points`.
|
|
65
|
-
|
|
66
|
-
### 3. Step 3 — 6–10 Second Recruiter Scan & Truthful Risk Framing (for CVs)
|
|
67
|
-
1. **Enforce the 6–10 Second Visual Scan Hierarchy:**
|
|
68
|
-
- **(1) Canonical Title, Progression & Tenure Stability:** Target role alignment visible in header/latest role; clean `YYYY-MM` timelines and scannable organization-scope lines (size, regulated sector, revenue/scale if verified).
|
|
69
|
-
- **(2) Top-Third Value Proposition:** First 3 lines of Summary + top 4–6 core competencies explicitly answer the Buyer Pain Point using verified facts.
|
|
70
|
-
- **(3) Proof Density Hierarchy (Rank Bullets & Evidence Strictly in This Order):**
|
|
71
|
-
`Quantified Business Outcome` > `Verified Operational Scope (budget, headcount, volume, territory)` > `Shipped Artifact / Deliverable` > `Credential / Tool`.
|
|
72
|
-
- Never drop older high-proof experience below low-signal tool lists if it directly answers the Buyer Pain Point.
|
|
73
|
-
2. **Apply 100% Truthful Red-Flag Mitigation (Never Fabricate or Hide Dates):**
|
|
74
|
-
- **Employment Gaps:** Keep exact dates intact; add a brief factual line (`Career break`, `Caregiving`, or verified study/consulting) if confirmed by the candidate.
|
|
75
|
-
- **Short Tenures / Contract Sprints:** Label confirmed contract, fixed-term, acquisition, or layoff roles accurately (`Contract`, `Fixed-Term`, `Company Acquired`) so rapid transitions read as structural rather than performance issues.
|
|
76
|
-
- **Career Pivots:** Lead the top third with transferable KPI proof, relevant credentials, and verified cross-domain projects matching the new archetype rather than chronological legacy duties.
|
|
77
|
-
- **Over-/Under-Qualification:** Calibrate summary and bullet emphasis toward the JD's actual operating scope (hands-on execution vs. leadership) using only real verified responsibilities—never delete degrees or alter dates silently.
|
|
78
|
-
|
|
79
|
-
### 4. Step 4 — Personal Branding, Positioning & LinkedIn Recruiter SEO Mechanics
|
|
80
|
-
1. **Conversion Positioning Formula:** Frame clear differentiation vs. peers sharing the exact same job title:
|
|
81
|
-
- `[Buyer Pain Point Solved] -> [Verified Differentiator] -> [Top-Ranked Proof] -> [Clear Role/Collaboration CTA]`, keeping zero hype and zero AI-slop clichés.
|
|
82
|
-
2. **High-Weight LinkedIn Recruiter Indexing Signals:**
|
|
83
|
-
- **Experience Job-Title Weighting:** Canonical target role titles inside **Experience** entries carry higher Recruiter search weight than About prose. Align overly quirky internal titles only through truthful canonical equivalents when accurate and candidate-confirmed (e.g., `Growth Lead (Performance Marketing)`, `Staff RN (ICU Charge)`), never inventing unearned seniority.
|
|
84
|
-
- **Recruiter Boolean Alignment:** Mirror exact Boolean pairs `(Primary Title OR Adjacent Title) AND (Core Skill 1 OR Core Skill 2)` consistently across Headline (`<= 220` chars), Current Experience Title, Top Skills, and first-fold About hook (`<= 220` chars).
|
|
85
|
-
- **50-Skill Cap & Experience-Linked Skill Tagging:** Audit skills within LinkedIn's 50-skill cap for exact industry spelling/casing (`HIPAA`, `Salesforce`, `Financial Modeling`, `TypeScript`) and verify high-priority skills are attached to specific Experience roles so Recruiter "Years of Experience per Skill" filters register them.
|
|
86
|
-
- **Recruiter Spotlight & Authority Surfaces:** Check `Open to Work (Recruiters only)`, recent domain activity, target-company follows, and domain-appropriate proof sections (`Licenses & Certifications`, `Publications`, `Services`, `Featured`, `Projects`, `Honors`).
|
|
87
|
-
|
|
88
|
-
## Anti-Patterns (What NEVER To Do) & Self-Verification Check
|
|
89
|
-
|
|
90
|
-
### Anti-patterns
|
|
91
|
-
- ❌ Defaulting to Software Engineering terminology, `Technical Skills` headings, or engineering KPIs for non-tech candidates/JDs → ✅ detect Domain Archetype first and bind domain-native tone, KPIs, and headings.
|
|
92
|
-
- ❌ Inventing credentials, licenses, inflated titles, hidden date adjustments, or unverified metrics to neutralize a recruiter red flag or match a Boolean query → ✅ reframe only confirmed facts (`skills/03-tailor-resume-and-verify.md`).
|
|
93
|
-
- ❌ Mistaking HR "kitchen-sink" wishlist items for true knock-outs, or ignoring burnout/title-scope contradictions in a JD → ✅ separate Knock-Outs vs. Wishlist and flag organizational risks upfront.
|
|
94
|
-
- ❌ Letting About prose carry keywords missing from Experience titles, Headlines, or Top 50 Skills → ✅ align Recruiter Boolean terms across all four indexed surfaces truthfully.
|
|
95
|
-
|
|
96
|
-
### Self-Verification Check
|
|
97
|
-
- [ ] Domain Archetype identified explicitly from JD/`context/` and mapped to matching tone, credentials, KPI proof types, and headings
|
|
98
|
-
- [ ] JD decoded into True Knock-Outs vs. HR Wishlist Inflation, organizational signals, and top 2–3 Buyer Pain Points
|
|
99
|
-
- [ ] CV/profile recommendations follow the 6–10s scan hierarchy, Proof Density Hierarchy, truthful red-flag framing, and Recruiter Boolean/title/50-skill mechanics (`skills/meta-self-verification.md`)
|
|
1
|
+
---
|
|
2
|
+
name: recruiter-brand-and-domain-intelligence
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: Load whenever decoding or scoring job descriptions, tailoring or building CVs across any industry, switching career personas, or optimizing LinkedIn and cross-platform profiles with senior recruiter, hiring manager, personal-branding, and domain-adaptive lenses.
|
|
5
|
+
triggers:
|
|
6
|
+
- decode job description with HR recruiter and hiring manager lens
|
|
7
|
+
- adapt CV, persona, or profile to target domain or industry
|
|
8
|
+
- optimize CV positioning or truthful red-flag framing for 6-10 second scan
|
|
9
|
+
- optimize LinkedIn Recruiter SEO, Boolean alignment, and personal branding
|
|
10
|
+
requires_mcp:
|
|
11
|
+
- none
|
|
12
|
+
preconditions:
|
|
13
|
+
- verified candidate facts available in context/ or confirmed in the active session
|
|
14
|
+
- target role, job description, CV, persona, or profile text supplied
|
|
15
|
+
requires_skills:
|
|
16
|
+
- meta-self-verification
|
|
17
|
+
verification:
|
|
18
|
+
- Domain Archetype detected dynamically from JD and context without assuming Software Engineering
|
|
19
|
+
- JD True Knock-Out Screeners separated from HR Wishlist Inflation, organizational signals flagged, and Buyer Pain Point extracted
|
|
20
|
+
- CV positioning enforces 6-10s scan hierarchy, Proof Density Hierarchy, and 100% truthful risk framing with zero fabricated facts
|
|
21
|
+
- LinkedIn and profile positioning aligns canonical Experience titles, Recruiter Boolean keywords, 50-skill tagging, and authority surfaces using verified facts only
|
|
22
|
+
---
|
|
23
|
+
# Recruiter, Personal Brand & Domain-Agnostic Market Intelligence
|
|
24
|
+
|
|
25
|
+
## When to Use & Preconditions
|
|
26
|
+
|
|
27
|
+
Cross-cutting intelligence layer giving JD discovery, CV tailoring/building, persona switching, and LinkedIn/profile optimization the judgment of a Senior TA Recruiter, Hiring Manager, and Personal Brand Strategist—dynamically adapted to any industry.
|
|
28
|
+
|
|
29
|
+
- **Load when:** scoring or decoding JDs; tailoring or creating CVs (`03-tailor-resume-and-verify`, `27-universal-cv-builder`); computing ATS heatmaps (`21-ats-keyword-heatmap`); switching personas (`07-persona-switcher`); or auditing LinkedIn and job-board profiles (`linkedin-growth`, `profile-intelligence-engine`).
|
|
30
|
+
- **Preconditions (stop if any is false):**
|
|
31
|
+
- verified candidate facts exist in `context/` or active session confirmations
|
|
32
|
+
- target role, JD, CV, persona, or profile text is supplied
|
|
33
|
+
- **Requires skills:** `meta-self-verification`. **MCP:** none.
|
|
34
|
+
|
|
35
|
+
## Deterministic Step-by-Step Execution
|
|
36
|
+
|
|
37
|
+
### 1. Step 1 — Dynamic Domain Archetype Detection & Market Adapter
|
|
38
|
+
1. **Infer Target Domain Archetype (Never Default to Software Engineering):** Inspect target role title, JD language, and `context/` to select the primary archetype (or hybrid):
|
|
39
|
+
- `Engineering/Data/AI` · `Product/Design` · `Sales/Marketing/Growth` · `Finance/Accounting/Legal/Risk` · `Healthcare/Clinical/Pharma` · `Operations/Supply Chain/HR` · `Executive/Generalist`.
|
|
40
|
+
2. **Bind Domain Adapter Rules Dynamically:**
|
|
41
|
+
|
|
42
|
+
| Archetype | Peer Tone & Vocabulary | Mandatory Compliance / Credential Gates | Native KPI Proof Types | Adaptive Headings & LinkedIn Authority Surfaces |
|
|
43
|
+
|---|---|---|---|---|
|
|
44
|
+
| **Engineering/Data/AI** | Direct technical peer; systems, architecture, tradeoffs | Security clearance, SOC 2/ISO/GDPR when specified | Uptime/SLAs, p95 latency, throughput, cost savings, ship velocity | `Technical Skills`, `Projects`; LinkedIn `Featured`, `Projects`, `Skills` |
|
|
45
|
+
| **Product/Design** | Outcome-first strategist; user research, discovery, prioritization | Accessibility (WCAG), regulated product domain rules | Activation, retention, conversion, NPS, adoption, revenue lift | `Product & Research Competencies`; LinkedIn `Featured` (case studies), `Projects` |
|
|
46
|
+
| **Sales/Marketing/Growth** | Commercial operator; pipeline, ICP, unit economics | Regional/industry ad or financial promotion rules | ARR/MRR, quota attainment %, win rate, CAC/LTV, ROAS, pipeline | `Commercial Competencies & Tools`; LinkedIn `Featured`, `Services`, `Honors` |
|
|
47
|
+
| **Finance/Accounting/Legal/Risk** | Precise, conservative fiduciary; controls, auditability | CPA, CFA, Bar Admission, FINRA, IFRS/GAAP, SOX | Audit findings (`0`), close cycle reduction, EBITDA, AUM, risk mitigation | `Credentials, Licensure & Systems`; LinkedIn `Licenses & Certifications`, `Publications` |
|
|
48
|
+
| **Healthcare/Clinical/Pharma** | Clinical & regulatory rigor; patient safety, protocols | Active RN/MD/PharmD license, HIPAA, GCP, FDA 21 CFR | Patient outcomes, safety compliance, trial milestones, throughput | `Clinical Licensure & Competencies`; LinkedIn `Licenses & Certifications`, `Publications` |
|
|
49
|
+
| **Operations/Supply Chain/HR** | Execution-focused; SLAs, capacity, compliance, talent | PMP, Six Sigma, OSHA, ISO 9001, labor compliance | OTIF, unit cost, cycle time, retention %, time-to-fill, safety rate | `Operational Competencies & Systems`; LinkedIn `Licenses & Certifications`, `Featured` |
|
|
50
|
+
| **Executive/Generalist** | Board/P&L operator; capital allocation, org scale | Fiduciary governance, board/regulatory filings | P&L ownership, EBITDA, multi-site headcount, M&A integration | `Executive Scope & Competencies`; LinkedIn `Publications`, `Featured`, `Honors` |
|
|
51
|
+
|
|
52
|
+
3. **Bind Downstream Controls Dynamically:** Pass the selected archetype's (a) **peer tone**, (b) **mandatory credential/compliance gates**, (c) **KPI proof order**, and (d) **section/bucket taxonomy** into `skills/02-discover-and-triage.md`, `skills/03-tailor-resume-and-verify.md`, `skills/21-ats-keyword-heatmap.md`, `skills/27-universal-cv-builder.md`, `skills/linkedin-growth.md`, and `skills/profile-intelligence-engine.md`. Never inject SWE defaults when the archetype is non-tech.
|
|
53
|
+
|
|
54
|
+
### 2. Step 2 — Senior HR Recruiter & Hiring Manager JD Decoder ("Reading Between the Lines")
|
|
55
|
+
1. **Separate True Knock-Out Screeners from HR Wishlist Inflation:**
|
|
56
|
+
- **True Knock-Outs:** Legal work authorization/visa, mandatory licensure/board credentials, core domain execution, and non-negotiable seniority floor. Missing a knock-out triggers `True Gap` / `Tier C` escalation rather than wishful tailoring.
|
|
57
|
+
- **HR Wishlist Inflation:** "Kitchen-sink" 15+ secondary tools, impossible years-per-newly-released-tool, or copy-pasted `"nice-to-have"` paragraphs. Treat as secondary differentiators, never as blockers when core competencies match.
|
|
58
|
+
2. **Detect Scope & Organizational Signals:**
|
|
59
|
+
- **Title-vs-Scope Mismatch:** Flag under-titled roles carrying director/P&L/on-call scope or inflated titles masking junior execution.
|
|
60
|
+
- **"One-Person Department" Burnout JDs:** Flag roles combining unrelated functions (e.g., strategy + full-cycle execution + compliance + support) with no team backing.
|
|
61
|
+
- **Channel & Company-Stage Signals:** Distinguish **agency/staffing/consulting** vs. **in-house** postings, and calibrate expectations for **startup generalists** (0-to-1 ambiguity, broad ownership) vs. **enterprise specialists** (cross-functional governance, compliance, scale).
|
|
62
|
+
3. **Extract the Buyer Pain Point & Emit JD Decode Brief:**
|
|
63
|
+
- Identify the top **2–3 business problems** the hiring manager was approved budget to solve in the first 90 days (e.g., stalled enterprise pipeline, audit readiness, legacy migration, clinic throughput bottleneck).
|
|
64
|
+
- Output compact internal context: `Domain Archetype` -> `Knock-Outs (Pass/Gap)` -> `Wishlist Non-Blockers` -> `Scope/Stage Flags` -> `Top 2-3 Buyer Pain Points`.
|
|
65
|
+
|
|
66
|
+
### 3. Step 3 — 6–10 Second Recruiter Scan & Truthful Risk Framing (for CVs)
|
|
67
|
+
1. **Enforce the 6–10 Second Visual Scan Hierarchy:**
|
|
68
|
+
- **(1) Canonical Title, Progression & Tenure Stability:** Target role alignment visible in header/latest role; clean `YYYY-MM` timelines and scannable organization-scope lines (size, regulated sector, revenue/scale if verified).
|
|
69
|
+
- **(2) Top-Third Value Proposition:** First 3 lines of Summary + top 4–6 core competencies explicitly answer the Buyer Pain Point using verified facts.
|
|
70
|
+
- **(3) Proof Density Hierarchy (Rank Bullets & Evidence Strictly in This Order):**
|
|
71
|
+
`Quantified Business Outcome` > `Verified Operational Scope (budget, headcount, volume, territory)` > `Shipped Artifact / Deliverable` > `Credential / Tool`.
|
|
72
|
+
- Never drop older high-proof experience below low-signal tool lists if it directly answers the Buyer Pain Point.
|
|
73
|
+
2. **Apply 100% Truthful Red-Flag Mitigation (Never Fabricate or Hide Dates):**
|
|
74
|
+
- **Employment Gaps:** Keep exact dates intact; add a brief factual line (`Career break`, `Caregiving`, or verified study/consulting) if confirmed by the candidate.
|
|
75
|
+
- **Short Tenures / Contract Sprints:** Label confirmed contract, fixed-term, acquisition, or layoff roles accurately (`Contract`, `Fixed-Term`, `Company Acquired`) so rapid transitions read as structural rather than performance issues.
|
|
76
|
+
- **Career Pivots:** Lead the top third with transferable KPI proof, relevant credentials, and verified cross-domain projects matching the new archetype rather than chronological legacy duties.
|
|
77
|
+
- **Over-/Under-Qualification:** Calibrate summary and bullet emphasis toward the JD's actual operating scope (hands-on execution vs. leadership) using only real verified responsibilities—never delete degrees or alter dates silently.
|
|
78
|
+
|
|
79
|
+
### 4. Step 4 — Personal Branding, Positioning & LinkedIn Recruiter SEO Mechanics
|
|
80
|
+
1. **Conversion Positioning Formula:** Frame clear differentiation vs. peers sharing the exact same job title:
|
|
81
|
+
- `[Buyer Pain Point Solved] -> [Verified Differentiator] -> [Top-Ranked Proof] -> [Clear Role/Collaboration CTA]`, keeping zero hype and zero AI-slop clichés.
|
|
82
|
+
2. **High-Weight LinkedIn Recruiter Indexing Signals:**
|
|
83
|
+
- **Experience Job-Title Weighting:** Canonical target role titles inside **Experience** entries carry higher Recruiter search weight than About prose. Align overly quirky internal titles only through truthful canonical equivalents when accurate and candidate-confirmed (e.g., `Growth Lead (Performance Marketing)`, `Staff RN (ICU Charge)`), never inventing unearned seniority.
|
|
84
|
+
- **Recruiter Boolean Alignment:** Mirror exact Boolean pairs `(Primary Title OR Adjacent Title) AND (Core Skill 1 OR Core Skill 2)` consistently across Headline (`<= 220` chars), Current Experience Title, Top Skills, and first-fold About hook (`<= 220` chars).
|
|
85
|
+
- **50-Skill Cap & Experience-Linked Skill Tagging:** Audit skills within LinkedIn's 50-skill cap for exact industry spelling/casing (`HIPAA`, `Salesforce`, `Financial Modeling`, `TypeScript`) and verify high-priority skills are attached to specific Experience roles so Recruiter "Years of Experience per Skill" filters register them.
|
|
86
|
+
- **Recruiter Spotlight & Authority Surfaces:** Check `Open to Work (Recruiters only)`, recent domain activity, target-company follows, and domain-appropriate proof sections (`Licenses & Certifications`, `Publications`, `Services`, `Featured`, `Projects`, `Honors`).
|
|
87
|
+
|
|
88
|
+
## Anti-Patterns (What NEVER To Do) & Self-Verification Check
|
|
89
|
+
|
|
90
|
+
### Anti-patterns
|
|
91
|
+
- ❌ Defaulting to Software Engineering terminology, `Technical Skills` headings, or engineering KPIs for non-tech candidates/JDs → ✅ detect Domain Archetype first and bind domain-native tone, KPIs, and headings.
|
|
92
|
+
- ❌ Inventing credentials, licenses, inflated titles, hidden date adjustments, or unverified metrics to neutralize a recruiter red flag or match a Boolean query → ✅ reframe only confirmed facts (`skills/03-tailor-resume-and-verify.md`).
|
|
93
|
+
- ❌ Mistaking HR "kitchen-sink" wishlist items for true knock-outs, or ignoring burnout/title-scope contradictions in a JD → ✅ separate Knock-Outs vs. Wishlist and flag organizational risks upfront.
|
|
94
|
+
- ❌ Letting About prose carry keywords missing from Experience titles, Headlines, or Top 50 Skills → ✅ align Recruiter Boolean terms across all four indexed surfaces truthfully.
|
|
95
|
+
|
|
96
|
+
### Self-Verification Check
|
|
97
|
+
- [ ] Domain Archetype identified explicitly from JD/`context/` and mapped to matching tone, credentials, KPI proof types, and headings
|
|
98
|
+
- [ ] JD decoded into True Knock-Outs vs. HR Wishlist Inflation, organizational signals, and top 2–3 Buyer Pain Points
|
|
99
|
+
- [ ] CV/profile recommendations follow the 6–10s scan hierarchy, Proof Density Hierarchy, truthful red-flag framing, and Recruiter Boolean/title/50-skill mechanics (`skills/meta-self-verification.md`)
|
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: github-cli-remote-manager
|
|
3
|
-
version: "1.0.0"
|
|
4
|
-
description: Load when any AI agent needs to inspect, audit, edit files, configure metadata/topics/licenses/visibility, or run PR/issue/CI/GraphQL workflows on GitHub repositories remotely via gh CLI and REST/GraphQL APIs without cloning locally (/github-remote).
|
|
5
|
-
triggers:
|
|
6
|
-
- /github-remote
|
|
7
|
-
- edit or manage remote GitHub files without cloning
|
|
8
|
-
- commit or update LICENSE or config files via gh api
|
|
9
|
-
- manage remote GitHub PRs, issues, workflows, visibility, or topics via gh CLI
|
|
10
|
-
requires_mcp:
|
|
11
|
-
- none
|
|
12
|
-
requires:
|
|
13
|
-
- gh
|
|
14
|
-
tags:
|
|
15
|
-
- github
|
|
16
|
-
- gh-cli
|
|
17
|
-
- remote-git
|
|
18
|
-
- no-clone
|
|
19
|
-
- cross-agent
|
|
20
|
-
preconditions:
|
|
21
|
-
- authenticated gh CLI session (`gh auth status`) with required scopes (`repo`, plus `workflow` or `user` only when updating Actions or `/user`)
|
|
22
|
-
- target `<owner>/<repo>` explicitly identified and verified before any write operation
|
|
23
|
-
requires_skills:
|
|
24
|
-
- privacy-pii-shield
|
|
25
|
-
- meta-self-verification
|
|
26
|
-
verification:
|
|
27
|
-
- zero tokens, cookies, or `.env` secrets were read aloud or printed in logs/output
|
|
28
|
-
- any `README.md` edit preserved existing HTML/Markdown layout, colors, badges, and icons verbatim with surgical diff verification
|
|
29
|
-
- zero repositories were deleted without explicit per-repo typed `DELETE <owner>/<repo>` confirmation, and all public/visibility mutations received explicit user approval
|
|
30
|
-
- every write was confirmed via fresh remote `gh repo view`, `gh api`, or `gh pr/run` read-back without modifying unrelated local workspaces
|
|
31
|
-
---
|
|
32
|
-
# Universal No-Clone GitHub CLI Remote Manager
|
|
33
|
-
|
|
34
|
-
## When to Use & Preconditions
|
|
35
|
-
|
|
36
|
-
Use this model-agnostic playbook whenever an agent (Claude Code, Gemini CLI, OpenAI Codex CLI, Cursor, Windsurf, GitHub Copilot, Cline, or Antigravity) needs to inspect, configure, or commit updates to GitHub repositories cleanly over `gh` CLI and the GitHub REST/GraphQL APIs **without running slow or stall-prone local `git clone` commands**, keeping unrelated local workspaces 100% clean.
|
|
37
|
-
|
|
38
|
-
- **Load when:** `/github-remote`; updating remote files (`LICENSE`, configs, CI workflows, surgical `README.md` text) without cloning; managing repository visibility, topics, PRs, issues, or GitHub Actions runs via `gh` CLI.
|
|
39
|
-
- **Career/CV Audits Note:** For recruiter README marketing copy, CV project extraction (`context/github-projects.md`), and live portfolio link audits, pair with `skills/11-portfolio-and-github-auditor.md` (`/github-audit`).
|
|
40
|
-
- **Preconditions (stop if any is false):**
|
|
41
|
-
- `gh auth status` succeeds with required token scope (`repo`; prompt the user to run `gh auth login` or `gh auth refresh -h github.com -s <scope>` directly if missing).
|
|
42
|
-
- Target `<owner>/<repo>` and desired action are confirmed.
|
|
43
|
-
- **Requires skills:** `privacy-pii-shield`, `meta-self-verification`. **External CLI:** `gh` (`requires_mcp: none`).
|
|
44
|
-
|
|
45
|
-
## Deterministic Step-by-Step Execution
|
|
46
|
-
|
|
47
|
-
### 1. Pre-Flight Auth & Zero-Clone Inspection
|
|
48
|
-
- Verify authentication and active scopes without exposing secrets:
|
|
49
|
-
```bash
|
|
50
|
-
gh auth status
|
|
51
|
-
```
|
|
52
|
-
**NEVER** run `gh auth token` and **NEVER** print `.env`, tokens, or private keys (`skills/14-privacy-pii-shield.md`).
|
|
53
|
-
- Inspect repository inventory, metadata, licenses, or timestamps without cloning:
|
|
54
|
-
```bash
|
|
55
|
-
gh repo list <owner> --limit 200 --json name,visibility,isArchived,isFork,licenseInfo,pushedAt,repositoryTopics,defaultBranchRef
|
|
56
|
-
```
|
|
57
|
-
- Inspect full remote file trees or decode specific text files (such as `package.json`, `.github/workflows/*.yml`, or source configs) cleanly via REST API:
|
|
58
|
-
```bash
|
|
59
|
-
# List repository file paths at HEAD (add ?recursive=1 for full tree)
|
|
60
|
-
gh api "repos/<owner>/<repo>/git/trees/HEAD?recursive=1" --jq '.tree[] | select(.type=="blob") | .path'
|
|
61
|
-
|
|
62
|
-
# Read and decode a file without cloning
|
|
63
|
-
gh api "repos/<owner>/<repo>/contents/<path>" --jq '.content' | node -e "const fs=require('fs'); console.log(Buffer.from(fs.readFileSync(0,'utf8'),'base64').toString('utf8'));"
|
|
64
|
-
```
|
|
65
|
-
- Before making any repo public, scan tree paths for accidentally committed secrets (`.env`, `.env.local`, `.claude/settings.local.json`, `*.pem`, `*secret*.json`). Stop and alert the owner if any sensitive path is found.
|
|
66
|
-
|
|
67
|
-
### 2. Remote Single-File Create/Update (Contents API)
|
|
68
|
-
- Always fetch existing `sha` before updating an existing file (omit `sha` only when creating a brand-new file such as `LICENSE`):
|
|
69
|
-
```bash
|
|
70
|
-
# 1) Resolve default branch and existing blob SHA (empty if file does not exist)
|
|
71
|
-
BRANCH=$(gh repo view <owner>/<repo> --json defaultBranchRef --jq '.defaultBranchRef.name')
|
|
72
|
-
SHA=$(gh api "repos/<owner>/<repo>/contents/<path>?ref=$BRANCH" --jq '.sha' 2>/dev/null || true)
|
|
73
|
-
```
|
|
74
|
-
- Pass Base64 content cleanly (avoiding shell multiline/quote corruption across PowerShell, CMD, and Bash) by writing a temporary JSON payload file or using Node `execFileSync('gh', ...)` with `--input <tmp.json>`:
|
|
75
|
-
```json
|
|
76
|
-
{
|
|
77
|
-
"message": "chore: add repository file",
|
|
78
|
-
"content": "<base64-encoded-utf8>",
|
|
79
|
-
"branch": "main",
|
|
80
|
-
"sha": "<existing-sha-if-updating>"
|
|
81
|
-
}
|
|
82
|
-
```
|
|
83
|
-
```bash
|
|
84
|
-
gh api -X PUT "repos/<owner>/<repo>/contents/<path>" --input payload.json --jq '.commit.sha'
|
|
85
|
-
```
|
|
86
|
-
- **Strict `README.md` Styling Preservation Rule:** When editing `README.md`, inspect the exact existing layout, badges, HTML blocks, colors, and custom icons first, and apply **only surgical word or URL updates in-place** unless the owner explicitly requests a redesign.
|
|
87
|
-
|
|
88
|
-
### 3. Atomic Multi-File Commits Without `git clone` (Git Data API)
|
|
89
|
-
When updating multiple files in one commit (or when `git clone` stalls on large binary histories), commit atomically via Git Data API:
|
|
90
|
-
1. `GET repos/<owner>/<repo>/git/ref/heads/<branch>` -> `headSha` (`object.sha`).
|
|
91
|
-
2. `GET repos/<owner>/<repo>/git/commits/<headSha>` -> `baseTree` (`tree.sha`).
|
|
92
|
-
3. For each changed file, `POST repos/<owner>/<repo>/git/blobs` with `{"content":"<base64>","encoding":"base64"}` -> `blobSha`.
|
|
93
|
-
4. `POST repos/<owner>/<repo>/git/trees` with `{"base_tree":"<baseTree>","tree":[{"path":"...","mode":"100644","type":"blob","sha":"<blobSha>"}]}` -> `newTreeSha`.
|
|
94
|
-
5. `POST repos/<owner>/<repo>/git/commits` with `{"message":"...","tree":"<newTreeSha>","parents":["<headSha>"]}` -> `newCommitSha`.
|
|
95
|
-
6. `PATCH repos/<owner>/<repo>/git/refs/heads/<branch>` with `{"sha":"<newCommitSha>","force":false}`.
|
|
96
|
-
|
|
97
|
-
*(Note: Adding `LICENSE` or committing via API updates `pushedAt`. If chronological ordering across repos matters, either avoid unnecessary commits or sync commits intentionally in chronological order from oldest to newest.)*
|
|
98
|
-
|
|
99
|
-
### 4. Remote Metadata, SEO Topics, Wiki & Visibility Control
|
|
100
|
-
- Update description, homepage, topics (up to `20`), and disable unused wikis remotely:
|
|
101
|
-
```bash
|
|
102
|
-
gh repo edit <owner>/<repo> \
|
|
103
|
-
--description "<concise technical summary <= 160 chars>" \
|
|
104
|
-
--homepage "<https://live-demo-url>" \
|
|
105
|
-
--enable-wiki=false \
|
|
106
|
-
--add-topic topic-1 --add-topic topic-2 --add-topic topic-3
|
|
107
|
-
```
|
|
108
|
-
- Toggle visibility (`private` or `public`) **only after explicit user confirmation** on exact repo names:
|
|
109
|
-
```bash
|
|
110
|
-
# Standard CLI flag (works for most repos)
|
|
111
|
-
gh repo edit <owner>/<repo> --visibility private --accept-visibility-change-consequences
|
|
112
|
-
|
|
113
|
-
# Reliable REST fallback (especially for starred repos or names starting with "-")
|
|
114
|
-
gh api -X PATCH "repos/<owner>/<repo>" -F private=true --jq '{name, private, visibility}'
|
|
115
|
-
```
|
|
116
|
-
- Prefer `private` or `gh repo archive <owner>/<repo> --yes` before deletion; **never** run `gh repo delete` without per-repo typed `DELETE <owner>/<repo>` confirmation.
|
|
117
|
-
|
|
118
|
-
### 5. Remote PRs, Issues, Workflows & GraphQL Operations
|
|
119
|
-
- **Pull Requests & Issues:**
|
|
120
|
-
```bash
|
|
121
|
-
gh pr list --repo <owner>/<repo> --state open --json number,title,headRefName,url
|
|
122
|
-
gh pr create --repo <owner>/<repo> --base main --head <branch> --title "<title>" --body "<summary>"
|
|
123
|
-
gh issue list --repo <owner>/<repo> --state open --json number,title,labels,url
|
|
124
|
-
```
|
|
125
|
-
- **GitHub Actions Workflows:**
|
|
126
|
-
```bash
|
|
127
|
-
gh workflow list --repo <owner>/<repo>
|
|
128
|
-
gh workflow run <workflow.yml> --repo <owner>/<repo> --ref main
|
|
129
|
-
gh run list --repo <owner>/<repo> --limit 5 --json databaseId,workflowName,status,conclusion,headSha
|
|
130
|
-
```
|
|
131
|
-
- **GraphQL Queries:** Use `gh api graphql` with variable bindings rather than raw inline string interpolation so quotes never break across shells:
|
|
132
|
-
```bash
|
|
133
|
-
gh api graphql -f query='query($login:String!){ user(login:$login){ pinnedItems(first:6, types:REPOSITORY){ nodes{ ... on Repository { name } } } } }' -F login=<owner>
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### 6. Mandatory Read-Back Verification
|
|
137
|
-
After every write, re-query GitHub directly (`gh repo view`, `gh api repos/<owner>/<repo>/contents/<path>`, `gh run list`, or `gh pr view`) and report exact verified commit SHAs, counts, and read-back states (`skills/meta-self-verification.md`).
|
|
138
|
-
|
|
139
|
-
## Anti-Patterns (What NEVER To Do) & Self-Verification Check
|
|
140
|
-
|
|
141
|
-
- **NEVER** delete a repository, batch-flip private repos to `public` without scanning for committed secrets/`.env`, or mutate visibility without explicit owner confirmation.
|
|
142
|
-
- **NEVER** overwrite `README.md` custom styling/icons/badges or `git push --force` without explicit owner authorization.
|
|
143
|
-
- **NEVER** print `gh auth token`, API keys, `.env` contents, or write `.vercel` / temp clones inside tracked local repositories.
|
|
144
|
-
- **Self-Verification Check:** Confirm zero leaked secrets, exact `gh` read-back verification after every mutation, clean `git status` in local repos, and concise summary of changed SHAs/settings.
|
|
1
|
+
---
|
|
2
|
+
name: github-cli-remote-manager
|
|
3
|
+
version: "1.0.0"
|
|
4
|
+
description: Load when any AI agent needs to inspect, audit, edit files, configure metadata/topics/licenses/visibility, or run PR/issue/CI/GraphQL workflows on GitHub repositories remotely via gh CLI and REST/GraphQL APIs without cloning locally (/github-remote).
|
|
5
|
+
triggers:
|
|
6
|
+
- /github-remote
|
|
7
|
+
- edit or manage remote GitHub files without cloning
|
|
8
|
+
- commit or update LICENSE or config files via gh api
|
|
9
|
+
- manage remote GitHub PRs, issues, workflows, visibility, or topics via gh CLI
|
|
10
|
+
requires_mcp:
|
|
11
|
+
- none
|
|
12
|
+
requires:
|
|
13
|
+
- gh
|
|
14
|
+
tags:
|
|
15
|
+
- github
|
|
16
|
+
- gh-cli
|
|
17
|
+
- remote-git
|
|
18
|
+
- no-clone
|
|
19
|
+
- cross-agent
|
|
20
|
+
preconditions:
|
|
21
|
+
- authenticated gh CLI session (`gh auth status`) with required scopes (`repo`, plus `workflow` or `user` only when updating Actions or `/user`)
|
|
22
|
+
- target `<owner>/<repo>` explicitly identified and verified before any write operation
|
|
23
|
+
requires_skills:
|
|
24
|
+
- privacy-pii-shield
|
|
25
|
+
- meta-self-verification
|
|
26
|
+
verification:
|
|
27
|
+
- zero tokens, cookies, or `.env` secrets were read aloud or printed in logs/output
|
|
28
|
+
- any `README.md` edit preserved existing HTML/Markdown layout, colors, badges, and icons verbatim with surgical diff verification
|
|
29
|
+
- zero repositories were deleted without explicit per-repo typed `DELETE <owner>/<repo>` confirmation, and all public/visibility mutations received explicit user approval
|
|
30
|
+
- every write was confirmed via fresh remote `gh repo view`, `gh api`, or `gh pr/run` read-back without modifying unrelated local workspaces
|
|
31
|
+
---
|
|
32
|
+
# Universal No-Clone GitHub CLI Remote Manager
|
|
33
|
+
|
|
34
|
+
## When to Use & Preconditions
|
|
35
|
+
|
|
36
|
+
Use this model-agnostic playbook whenever an agent (Claude Code, Gemini CLI, OpenAI Codex CLI, Cursor, Windsurf, GitHub Copilot, Cline, or Antigravity) needs to inspect, configure, or commit updates to GitHub repositories cleanly over `gh` CLI and the GitHub REST/GraphQL APIs **without running slow or stall-prone local `git clone` commands**, keeping unrelated local workspaces 100% clean.
|
|
37
|
+
|
|
38
|
+
- **Load when:** `/github-remote`; updating remote files (`LICENSE`, configs, CI workflows, surgical `README.md` text) without cloning; managing repository visibility, topics, PRs, issues, or GitHub Actions runs via `gh` CLI.
|
|
39
|
+
- **Career/CV Audits Note:** For recruiter README marketing copy, CV project extraction (`context/github-projects.md`), and live portfolio link audits, pair with `skills/11-portfolio-and-github-auditor.md` (`/github-audit`).
|
|
40
|
+
- **Preconditions (stop if any is false):**
|
|
41
|
+
- `gh auth status` succeeds with required token scope (`repo`; prompt the user to run `gh auth login` or `gh auth refresh -h github.com -s <scope>` directly if missing).
|
|
42
|
+
- Target `<owner>/<repo>` and desired action are confirmed.
|
|
43
|
+
- **Requires skills:** `privacy-pii-shield`, `meta-self-verification`. **External CLI:** `gh` (`requires_mcp: none`).
|
|
44
|
+
|
|
45
|
+
## Deterministic Step-by-Step Execution
|
|
46
|
+
|
|
47
|
+
### 1. Pre-Flight Auth & Zero-Clone Inspection
|
|
48
|
+
- Verify authentication and active scopes without exposing secrets:
|
|
49
|
+
```bash
|
|
50
|
+
gh auth status
|
|
51
|
+
```
|
|
52
|
+
**NEVER** run `gh auth token` and **NEVER** print `.env`, tokens, or private keys (`skills/14-privacy-pii-shield.md`).
|
|
53
|
+
- Inspect repository inventory, metadata, licenses, or timestamps without cloning:
|
|
54
|
+
```bash
|
|
55
|
+
gh repo list <owner> --limit 200 --json name,visibility,isArchived,isFork,licenseInfo,pushedAt,repositoryTopics,defaultBranchRef
|
|
56
|
+
```
|
|
57
|
+
- Inspect full remote file trees or decode specific text files (such as `package.json`, `.github/workflows/*.yml`, or source configs) cleanly via REST API:
|
|
58
|
+
```bash
|
|
59
|
+
# List repository file paths at HEAD (add ?recursive=1 for full tree)
|
|
60
|
+
gh api "repos/<owner>/<repo>/git/trees/HEAD?recursive=1" --jq '.tree[] | select(.type=="blob") | .path'
|
|
61
|
+
|
|
62
|
+
# Read and decode a file without cloning
|
|
63
|
+
gh api "repos/<owner>/<repo>/contents/<path>" --jq '.content' | node -e "const fs=require('fs'); console.log(Buffer.from(fs.readFileSync(0,'utf8'),'base64').toString('utf8'));"
|
|
64
|
+
```
|
|
65
|
+
- Before making any repo public, scan tree paths for accidentally committed secrets (`.env`, `.env.local`, `.claude/settings.local.json`, `*.pem`, `*secret*.json`). Stop and alert the owner if any sensitive path is found.
|
|
66
|
+
|
|
67
|
+
### 2. Remote Single-File Create/Update (Contents API)
|
|
68
|
+
- Always fetch existing `sha` before updating an existing file (omit `sha` only when creating a brand-new file such as `LICENSE`):
|
|
69
|
+
```bash
|
|
70
|
+
# 1) Resolve default branch and existing blob SHA (empty if file does not exist)
|
|
71
|
+
BRANCH=$(gh repo view <owner>/<repo> --json defaultBranchRef --jq '.defaultBranchRef.name')
|
|
72
|
+
SHA=$(gh api "repos/<owner>/<repo>/contents/<path>?ref=$BRANCH" --jq '.sha' 2>/dev/null || true)
|
|
73
|
+
```
|
|
74
|
+
- Pass Base64 content cleanly (avoiding shell multiline/quote corruption across PowerShell, CMD, and Bash) by writing a temporary JSON payload file or using Node `execFileSync('gh', ...)` with `--input <tmp.json>`:
|
|
75
|
+
```json
|
|
76
|
+
{
|
|
77
|
+
"message": "chore: add repository file",
|
|
78
|
+
"content": "<base64-encoded-utf8>",
|
|
79
|
+
"branch": "main",
|
|
80
|
+
"sha": "<existing-sha-if-updating>"
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
```bash
|
|
84
|
+
gh api -X PUT "repos/<owner>/<repo>/contents/<path>" --input payload.json --jq '.commit.sha'
|
|
85
|
+
```
|
|
86
|
+
- **Strict `README.md` Styling Preservation Rule:** When editing `README.md`, inspect the exact existing layout, badges, HTML blocks, colors, and custom icons first, and apply **only surgical word or URL updates in-place** unless the owner explicitly requests a redesign.
|
|
87
|
+
|
|
88
|
+
### 3. Atomic Multi-File Commits Without `git clone` (Git Data API)
|
|
89
|
+
When updating multiple files in one commit (or when `git clone` stalls on large binary histories), commit atomically via Git Data API:
|
|
90
|
+
1. `GET repos/<owner>/<repo>/git/ref/heads/<branch>` -> `headSha` (`object.sha`).
|
|
91
|
+
2. `GET repos/<owner>/<repo>/git/commits/<headSha>` -> `baseTree` (`tree.sha`).
|
|
92
|
+
3. For each changed file, `POST repos/<owner>/<repo>/git/blobs` with `{"content":"<base64>","encoding":"base64"}` -> `blobSha`.
|
|
93
|
+
4. `POST repos/<owner>/<repo>/git/trees` with `{"base_tree":"<baseTree>","tree":[{"path":"...","mode":"100644","type":"blob","sha":"<blobSha>"}]}` -> `newTreeSha`.
|
|
94
|
+
5. `POST repos/<owner>/<repo>/git/commits` with `{"message":"...","tree":"<newTreeSha>","parents":["<headSha>"]}` -> `newCommitSha`.
|
|
95
|
+
6. `PATCH repos/<owner>/<repo>/git/refs/heads/<branch>` with `{"sha":"<newCommitSha>","force":false}`.
|
|
96
|
+
|
|
97
|
+
*(Note: Adding `LICENSE` or committing via API updates `pushedAt`. If chronological ordering across repos matters, either avoid unnecessary commits or sync commits intentionally in chronological order from oldest to newest.)*
|
|
98
|
+
|
|
99
|
+
### 4. Remote Metadata, SEO Topics, Wiki & Visibility Control
|
|
100
|
+
- Update description, homepage, topics (up to `20`), and disable unused wikis remotely:
|
|
101
|
+
```bash
|
|
102
|
+
gh repo edit <owner>/<repo> \
|
|
103
|
+
--description "<concise technical summary <= 160 chars>" \
|
|
104
|
+
--homepage "<https://live-demo-url>" \
|
|
105
|
+
--enable-wiki=false \
|
|
106
|
+
--add-topic topic-1 --add-topic topic-2 --add-topic topic-3
|
|
107
|
+
```
|
|
108
|
+
- Toggle visibility (`private` or `public`) **only after explicit user confirmation** on exact repo names:
|
|
109
|
+
```bash
|
|
110
|
+
# Standard CLI flag (works for most repos)
|
|
111
|
+
gh repo edit <owner>/<repo> --visibility private --accept-visibility-change-consequences
|
|
112
|
+
|
|
113
|
+
# Reliable REST fallback (especially for starred repos or names starting with "-")
|
|
114
|
+
gh api -X PATCH "repos/<owner>/<repo>" -F private=true --jq '{name, private, visibility}'
|
|
115
|
+
```
|
|
116
|
+
- Prefer `private` or `gh repo archive <owner>/<repo> --yes` before deletion; **never** run `gh repo delete` without per-repo typed `DELETE <owner>/<repo>` confirmation.
|
|
117
|
+
|
|
118
|
+
### 5. Remote PRs, Issues, Workflows & GraphQL Operations
|
|
119
|
+
- **Pull Requests & Issues:**
|
|
120
|
+
```bash
|
|
121
|
+
gh pr list --repo <owner>/<repo> --state open --json number,title,headRefName,url
|
|
122
|
+
gh pr create --repo <owner>/<repo> --base main --head <branch> --title "<title>" --body "<summary>"
|
|
123
|
+
gh issue list --repo <owner>/<repo> --state open --json number,title,labels,url
|
|
124
|
+
```
|
|
125
|
+
- **GitHub Actions Workflows:**
|
|
126
|
+
```bash
|
|
127
|
+
gh workflow list --repo <owner>/<repo>
|
|
128
|
+
gh workflow run <workflow.yml> --repo <owner>/<repo> --ref main
|
|
129
|
+
gh run list --repo <owner>/<repo> --limit 5 --json databaseId,workflowName,status,conclusion,headSha
|
|
130
|
+
```
|
|
131
|
+
- **GraphQL Queries:** Use `gh api graphql` with variable bindings rather than raw inline string interpolation so quotes never break across shells:
|
|
132
|
+
```bash
|
|
133
|
+
gh api graphql -f query='query($login:String!){ user(login:$login){ pinnedItems(first:6, types:REPOSITORY){ nodes{ ... on Repository { name } } } } }' -F login=<owner>
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### 6. Mandatory Read-Back Verification
|
|
137
|
+
After every write, re-query GitHub directly (`gh repo view`, `gh api repos/<owner>/<repo>/contents/<path>`, `gh run list`, or `gh pr view`) and report exact verified commit SHAs, counts, and read-back states (`skills/meta-self-verification.md`).
|
|
138
|
+
|
|
139
|
+
## Anti-Patterns (What NEVER To Do) & Self-Verification Check
|
|
140
|
+
|
|
141
|
+
- **NEVER** delete a repository, batch-flip private repos to `public` without scanning for committed secrets/`.env`, or mutate visibility without explicit owner confirmation.
|
|
142
|
+
- **NEVER** overwrite `README.md` custom styling/icons/badges or `git push --force` without explicit owner authorization.
|
|
143
|
+
- **NEVER** print `gh auth token`, API keys, `.env` contents, or write `.vercel` / temp clones inside tracked local repositories.
|
|
144
|
+
- **Self-Verification Check:** Confirm zero leaked secrets, exact `gh` read-back verification after every mutation, clean `git status` in local repos, and concise summary of changed SHAs/settings.
|