Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ and apply with a résumé tailored to every job.

| For students | For placement cells | For recruiters |
|---|---|---|
| Skill-gap analysis, 7-day sprints, résumé builder, OpenClaw auto-apply with a browser extension, academics and attendance planning, campus drives with round-by-round tracking | An isolated college workspace: drives and hiring rounds, check-in, notices, drive chats, CSV imports, cohort analytics and placement reports | Anonymous skill-based talent discovery, a shortlist, and contact details shared only after the student accepts |
| Skill-gap analysis, 7-day sprints, résumé builder, Smart Apply (auto-apply) with a browser extension, academics and attendance planning, campus drives with round-by-round tracking | An isolated college workspace: drives and hiring rounds, check-in, notices, drive chats, CSV imports, cohort analytics and placement reports | Anonymous skill-based talent discovery, a shortlist, and contact details shared only after the student accepts |

---

Expand All @@ -39,7 +39,9 @@ and apply with a résumé tailored to every job.
- **Benchmark.** See where your readiness sits against students targeting the same role, nationally and in your college.
- **Project ideas, LinkedIn optimiser and India career advisor.** AI suggestions grounded in your own skills and gaps.

### 🤖 OpenClaw — auto-apply ([ADR-004](docs/adr/ADR-004-openclaw-auto-apply.md))
### 🤖 Smart Apply — auto-apply ([ADR-004](docs/adr/ADR-004-openclaw-auto-apply.md))
<sub>Formerly called OpenClaw; the code, API routes and database still use `openclaw` names.</sub>

- **Your filters decide.** Target roles, cities or remote, minimum CTC (reads "8-12 LPA", "6.5 Lacs P.A.", monthly pay), blocked companies, must-mention and skip keywords. Nothing outside them is prepared or submitted automatically.
- **A full résumé tailored to each job,** rebuilt from your uploaded résumé. It never invents employers, projects, numbers or skills.
- **Auto-submit (opt-in)** through the employer's own Greenhouse or Lever API, for employers who connect their hiring system to SkillGraph. If a form asks something only you can answer, it waits for you.
Expand Down Expand Up @@ -141,7 +143,7 @@ flowchart LR
LIB --> MAIL
```

### How an OpenClaw application flows
### How a Smart Apply application flows

```mermaid
sequenceDiagram
Expand Down Expand Up @@ -190,7 +192,7 @@ SkillGraph/
│ ├── tests/ unit tests + Postgres integration tests
│ ├── workers/ optional long-running worker (alternative to Vercel Cron)
│ └── vercel.json cron schedules
├── extension/ OpenClaw browser extension (Chrome MV3)
├── extension/ Smart Apply browser extension (Chrome MV3)
└── docs/adr/ architecture decision records
```

Expand Down Expand Up @@ -230,7 +232,7 @@ npm run dev
```
Open `http://localhost:3000`.

**4. Browser extension (optional).** In `chrome://extensions`, turn on Developer mode, then **Load unpacked** → `extension/`. Connect it from **OpenClaw → Browser extension**. See [`extension/README.md`](extension/README.md).
**4. Browser extension (optional).** In `chrome://extensions`, turn on Developer mode, then **Load unpacked** → `extension/`. Connect it from **Smart Apply → Browser extension**. See [`extension/README.md`](extension/README.md).

### ⏰ Scheduled jobs
In production these run on **Vercel Cron** (`skillgraph-web/vercel.json` → `GET /api/cron/<job>`, authenticated with `CRON_SECRET`). Times are IST; on the Hobby plan each job starts within its scheduled hour.
Expand All @@ -239,9 +241,9 @@ In production these run on **Vercel Cron** (`skillgraph-web/vercel.json` → `GE
|-----|------|--------------|
| `market` | daily 01:30 | Loads this week's job postings and their skills, a few roles per run until all are done |
| `billing` | daily 06:00 | Expires lapsed plans, removes abandoned checkouts, sends renewal reminders |
| `openclaw` | daily 06:30 | OpenClaw run for students with the agent switched on |
| `openclaw` | daily 06:30 | Smart Apply run for students who switched it on |
| `sprints` | daily 07:00 | Creates a sprint for students with new high-urgency gaps |
| `openclaw-dedupe` | daily 08:30 | Marks duplicate OpenClaw applications |
| `openclaw-dedupe` | daily 08:30 | Marks duplicate Smart Apply applications |
| `reports` | 1st of month 08:00 | Monthly readiness emails (needs SendGrid) |

Each run stops starting new work after 4½ minutes, and the next run continues. To run one by hand: `curl -H "Authorization: Bearer $CRON_SECRET" https://<host>/api/cron/<job>`. Alternatively, host the same jobs as a long-running worker (`npm run worker` or `Dockerfile.worker`, needs `REDIS_URL`). Use one or the other, never both.
Expand All @@ -262,12 +264,12 @@ CI runs the typecheck, lint, unit tests and Postgres integration tests on every
|-------|-------|--------|
| **0 — Launch blockers** | Private résumé storage, fail-closed cron auth, security headers, rate limiting, validation, health check, CI | ✅ Done (git history purge pending) |
| **1 — Data & storage** | Prisma migrations, indexes and constraints, private object storage, validated AI layer with quotas | ✅ Done |
| **2 — OpenClaw compliance** | Remove the stealth automation and stored third-party cookies; official job sources only | ✅ Done |
| **2 — Auto-apply compliance** | Remove the stealth automation and stored third-party cookies; official job sources only | ✅ Done |
| **3 — Trust & operations** | Email verification, password reset, consent-based recruiter reveal, data rights, observability, tests | ✅ Done |
| **4 — Commercial** | Razorpay billing and plan limits, college workspaces with tenant isolation, caching, load testing | ✅ Done (live Razorpay keys pending) |
| **5 — Academics & drives** | Attendance, Smart Adjust, marks, timetable, campus drives, CSV imports, university sync providers | 🟡 SRM API key and Academia connector pending |
| **6 — Placement workflow** | Hiring rounds, tracker, confirmation and check-in, calendar, notices, drive chats | ✅ Done |
| **7 — OpenClaw auto-apply** | Filters, per-job résumés, partner ATS submission, browser extension | 🟡 Partner ATS keys, signed-in LinkedIn and Superset checks, Chrome Web Store listing pending |
| **7 — Smart Apply** | Filters, per-job résumés, partner ATS submission, browser extension | 🟡 Partner ATS keys, signed-in LinkedIn and Superset checks, Chrome Web Store listing pending |
| **8 — Scheduling** | Vercel Cron replaces the Redis worker | ✅ Done |

---
Expand All @@ -276,10 +278,10 @@ CI runs the typecheck, lint, unit tests and Postgres integration tests on every

| ADR | Decision |
|-----|----------|
| [ADR-001](docs/adr/ADR-001-production-architecture.md) | Production architecture and launch-readiness plan: modular monolith, compliant OpenClaw |
| [ADR-001](docs/adr/ADR-001-production-architecture.md) | Production architecture and launch-readiness plan: modular monolith, compliant auto-apply |
| [ADR-002](docs/adr/ADR-002-academics-and-placement-drives.md) | Academics and placement drives: provider interface, CSV imports, attendance maths |
| [ADR-003](docs/adr/ADR-003-placement-workflow.md) | Placement workflow: rounds, participation, calendar, notices, drive chat |
| [ADR-004](docs/adr/ADR-004-openclaw-auto-apply.md) | OpenClaw auto-apply: filters, tailored résumés, partner ATS submission, browser extension |
| [ADR-004](docs/adr/ADR-004-openclaw-auto-apply.md) | Smart Apply (formerly OpenClaw): filters, tailored résumés, partner ATS submission, browser extension |

---

Expand All @@ -304,11 +306,11 @@ CI runs the typecheck, lint, unit tests and Postgres integration tests on every
</tr>
</table>

### OpenClaw
### Smart Apply

<table>
<tr>
<td width="100%"><img src="docs/screenshots/openclaw.webp" alt="OpenClaw agent"/><br/><b>OpenClaw</b> — filters, opt-in auto-submit and the pipeline: graded matches, tailored résumés, and how each application was submitted (for you, via the extension, or by you)</td>
<td width="100%"><img src="docs/screenshots/smart-apply.webp" alt="Smart Apply"/><br/><b>Smart Apply</b> — filters, opt-in auto-submit and the pipeline: graded matches, tailored résumés, and how each application was submitted (for you, via the extension, or by you)</td>
</tr>
</table>

Expand Down
5 changes: 5 additions & 0 deletions docs/adr/ADR-004-openclaw-auto-apply.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
**Date:** 2026-10-13
**Deciders:** Product owner (Aakash), engineering

> **Update 2026-10-17:** the feature is now called **Smart Apply** wherever users see it (app, landing page, extension,
> README), because it is SkillGraph's own feature and not the OpenClaw agent project. The page moved to `/smart-apply`
> (`/openclaw` redirects). Code modules, API routes (`/api/openclaw/*`), cron job names and database models keep the
> `openclaw` names to avoid a migration.

## Context

The product owner asked for OpenClaw to apply to jobs automatically on LinkedIn, Naukri, Glassdoor and
Expand Down
Binary file modified docs/screenshots/landing.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/screenshots/openclaw.webp
Binary file not shown.
Binary file added docs/screenshots/smart-apply.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions extension/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# SkillGraph OpenClaw — browser extension
# SkillGraph Smart Apply — browser extension

Assisted apply on **LinkedIn, Naukri, Glassdoor and Superset** (ADR-004).

On a job page the extension:
1. reads the job (role, company, location, pay, description);
2. checks it against your OpenClaw filters in SkillGraph;
2. checks it against your Smart Apply filters in SkillGraph;
3. builds a résumé tailored to that job from your uploaded résumé (no invented experience);
4. fills the application form with your profile and attaches the tailored résumé.

Expand All @@ -13,14 +13,14 @@ On a job page the extension:
## Privacy and safety
- SkillGraph never receives your passwords, cookies or session tokens for job sites. The
extension works inside your own signed-in browser.
- The extension stores one SkillGraph token, which expires after 30 days. Disconnect it any time in SkillGraph → OpenClaw. That stops it working immediately.
- The extension stores one SkillGraph token, which expires after 30 days. Disconnect it any time in SkillGraph → Smart Apply. That stops it working immediately.
- It fills only empty fields, never overwrites what you typed, and never clicks buttons.
Questions only you can answer (expected CTC, notice period, experience, personal details) are
highlighted in amber and left blank.

## Install (developer mode)
1. Open `chrome://extensions`, turn on **Developer mode**, click **Load unpacked**, choose this `extension/` folder.
2. In SkillGraph → OpenClaw → **Browser extension**, click **Connect extension** and copy the token.
2. In SkillGraph → Smart Apply → **Browser extension**, click **Connect extension** and copy the token.
3. Click the extension icon, paste the token, then press **Connect**.

To use a local server, enter its address (e.g. `http://localhost:3000`) in the popup. Only the
Expand Down
2 changes: 1 addition & 1 deletion extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
.min { background:none; border:none; padding:0 4px; color:#9ca3af }
</style>
<div class="box">
<div class="head"><span>OpenClaw</span><button class="min" id="toggle" title="Minimise">–</button></div>
<div class="head"><span>Smart Apply</span><button class="min" id="toggle" title="Minimise">–</button></div>
<div class="body" id="body"></div>
</div>`
document.documentElement.appendChild(host)
Expand Down
6 changes: 3 additions & 3 deletions extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "SkillGraph OpenClaw",
"name": "SkillGraph Smart Apply",
"version": "1.0.0",
"description": "Checks jobs against your OpenClaw filters, tailors your résumé to each one, and fills the application form for you to review and submit.",
"description": "Checks jobs against your Smart Apply filters, tailors your résumé to each one, and fills the application form for you to review and submit.",
"permissions": ["storage"],
"host_permissions": [
"https://skillgraphai.vercel.app/*",
Expand All @@ -11,7 +11,7 @@
"http://localhost:3125/*"
],
"background": { "service_worker": "background.js" },
"action": { "default_popup": "popup.html", "default_title": "SkillGraph OpenClaw" },
"action": { "default_popup": "popup.html", "default_title": "SkillGraph Smart Apply" },
"content_scripts": [
{
"matches": [
Expand Down
6 changes: 3 additions & 3 deletions extension/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>SkillGraph OpenClaw</title>
<title>SkillGraph Smart Apply</title>
<style>
body { font: 13px/1.45 system-ui, -apple-system, Segoe UI, sans-serif; width: 300px; margin: 0; padding: 14px; color: #111827 }
h1 { font-size: 15px; margin: 0 0 8px }
Expand All @@ -15,15 +15,15 @@
</style>
</head>
<body>
<h1>SkillGraph OpenClaw</h1>
<h1>SkillGraph Smart Apply</h1>
<div id="status" class="muted">Checking connection…</div>

<form id="connect">
<label for="baseUrl">SkillGraph address</label>
<input id="baseUrl" type="url" value="https://skillgraphai.vercel.app" required>
<label for="token">Extension token</label>
<input id="token" type="password" placeholder="sgx_…" autocomplete="off" required>
<div class="muted">Create one in SkillGraph → OpenClaw → Browser extension.</div>
<div class="muted">Create one in SkillGraph → Smart Apply → Browser extension.</div>
<button type="submit">Connect</button>
</form>

Expand Down
4 changes: 2 additions & 2 deletions skillgraph-web/app/(app)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ export default function DashboardPage() {
) : (
<div className="space-y-3">
{myApplications.slice(0, 6).map((a) => (
<Link key={a.id} href={a.source === 'OpenClaw' ? '/openclaw' : a.jobPosting ? `/jobs/${a.jobPosting.id}` : '/tracker'}
<Link key={a.id} href={a.source === 'OpenClaw' ? '/smart-apply' : a.jobPosting ? `/jobs/${a.jobPosting.id}` : '/tracker'}
className="flex items-center justify-between p-3 rounded-lg bg-muted/40 border border-border hover:border-primary/30 transition-colors">
<div>
<p className="text-sm font-medium text-foreground">{a.jobPosting?.title ?? 'Job'}</p>
<p className="text-xs text-muted-foreground">
{a.jobPosting?.company} · {a.source === 'OpenClaw' ? 'OpenClaw' : 'Applied'} {shortDate.format(new Date(a.appliedAt))}
{a.jobPosting?.company} · {a.source === 'OpenClaw' ? 'Smart Apply' : 'Applied'} {shortDate.format(new Date(a.appliedAt))}
</p>
</div>
<span className={`text-xs font-semibold px-2 py-0.5 rounded-full ${statusColors[a.status] ?? 'bg-muted text-muted-foreground'}`}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
avgMatchScore: number;
}

export default function OpenClawPage() {
export default function SmartApplyPage() {
const [config, setConfig] = useState<OpenClawConfig | null>(null);
const [applications, setApplications] = useState<any[]>([]);

Check warning on line 44 in skillgraph-web/app/(app)/smart-apply/page.tsx

View workflow job for this annotation

GitHub Actions / Typecheck, lint & test (skillgraph-web)

Unexpected any. Specify a different type
const [stats, setStats] = useState<AppStats>({ total: 0, preparedToday: 0, readyToApply: 0, avgMatchScore: 0 });
const [loading, setLoading] = useState(true);
const [saving, setSaving] = useState(false);
Expand Down Expand Up @@ -164,7 +164,7 @@

if (loading) {
return (
<DashboardLayout title="OpenClaw Agent">
<DashboardLayout title="Smart Apply">
<div className="flex h-64 items-center justify-center">
<div className="w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin" />
</div>
Expand All @@ -174,7 +174,7 @@

return (
<PageTransition>
<DashboardLayout title="OpenClaw Agent">
<DashboardLayout title="Smart Apply">
{/* Agent Status */}
<div className="mb-6">
<AgentStatusCard
Expand All @@ -197,7 +197,7 @@
<div className="lg:col-span-2 space-y-4">
<div className="bg-card border border-border rounded-lg p-5 shadow-sm">
<h3 className="font-heading text-sm font-semibold text-foreground mb-4 flex items-center gap-2">
<Settings2 size={16} className="text-primary" /> Agent Configuration
<Settings2 size={16} className="text-primary" /> Settings
</h3>

<div className="space-y-3.5">
Expand Down Expand Up @@ -320,7 +320,7 @@
<span className="text-xs leading-relaxed">
<span className="font-semibold text-foreground flex items-center gap-1"><Send size={12} /> Submit for me where the employer allows it</span>
<span className="text-muted-foreground">
For employers that have connected their hiring system to SkillGraph, OpenClaw submits your tailored résumé and profile for jobs that pass your filters.
For employers that have connected their hiring system to SkillGraph, Smart Apply submits your tailored résumé and profile for jobs that pass your filters.
Everything else waits for you to submit, with the browser extension or by hand. If a form asks a question only you can answer, it waits for you.
</span>
</span>
Expand Down
2 changes: 1 addition & 1 deletion skillgraph-web/app/api/extension/prepare/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function POST(req: NextRequest) {
const config = await prisma.openClawConfig.findUnique({ where: { userId } })
const verdict = config
? checkFilters({ ...job, location: job.location ?? null, ctcBand: job.ctcBand ?? null }, filtersFromConfig(config))
: { ok: true as const, reasons: ['No OpenClaw filters set yet'] }
: { ok: true as const, reasons: ['No Smart Apply filters set yet'] }
if (!verdict.ok && !job.force) return ok({ verdict, prepared: false })

// Same posting already in the pipeline with a tailored résumé: reuse it (no new AI call)
Expand Down
2 changes: 1 addition & 1 deletion skillgraph-web/app/api/openclaw/trigger/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function POST() {
: result.skipped.filtered > 0 && result.evaluated === 0
? 'No new jobs matched your filters. Try widening your roles, cities or keywords.'
: 'No new strong matches right now. Try widening your target roles or cities.',
inactive: 'Activate OpenClaw and save your preferences first.',
inactive: 'Turn on Smart Apply and save your preferences first.',
no_sources: 'Job discovery is not configured on this server.',
limit_reached: 'Daily limit reached — review your ready applications.',
}
Expand Down
2 changes: 1 addition & 1 deletion skillgraph-web/app/billing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function BillingPage() {
</div>
<div className="space-y-4">
<Meter label="AI usage (last 24 h, tokens)" used={data.usage.aiTokens24h} limit={limits.aiTokensPerDay} />
{data.role === "STUDENT" && <Meter label="OpenClaw applications prepared today" used={data.usage.openclawPreparedToday} limit={limits.openclawPerDay} />}
{data.role === "STUDENT" && <Meter label="Smart Apply applications prepared today" used={data.usage.openclawPreparedToday} limit={limits.openclawPerDay} />}
{data.role === "RECRUITER" && <Meter label="Contact requests this month" used={data.usage.revealRequestsThisMonth} limit={limits.revealRequestsPerMonth} />}
</div>
</section>
Expand Down
Loading
Loading