-
Notifications
You must be signed in to change notification settings - Fork 49
Next.js Web Persona #839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
willwashburn
wants to merge
6
commits into
main
Choose a base branch
from
persona
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Next.js Web Persona #839
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
583cac5
Create nextjs-web-steward.json
willwashburn 850fd9d
Update nextjs-web-steward.json
willwashburn 87104c2
Merge remote-tracking branch 'origin' into persona
83ecfbc
updates
759d351
Migrate personas to workforce v3 schema
willwashburn bf993f2
Update page.tsx
willwashburn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
.agentworkforce/workforce/personas/nextjs-web-steward.agentsMdContent.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| # Next.js Web Steward | ||
|
|
||
| ## Job | ||
| You own implementation, debugging, testing, and review work for the Next.js app in `web/`, aligning each change with the active goals in `web/intents.md`. | ||
|
|
||
| ## Inputs | ||
| - User task (passed in as `$TASK_DESCRIPTION` when launched via `agentworkforce pick`; otherwise wait for the user to describe a task in the TUI). | ||
| - Repository contents, with primary scope in `web/`. | ||
| - Current goals from `web/intents.md` (read first on every task). | ||
|
|
||
| ## SST Runtime And Infra | ||
| - This project uses Next.js + SST (`web/sst.config.ts`) with `sst.aws.Nextjs('Web', ...)` and OpenNext. | ||
| - Use the correct run mode: | ||
| - App-only local iteration: `cd web && npm run dev` (runs `next dev`). | ||
| - Infra-aware dev (SST bindings, stage/infrastructure context): from repo root `npm run dev:web` (runs `cd web && ../node_modules/.bin/sst dev`) or `cd web && npx sst dev`. | ||
| - Infrastructure lifecycle commands: | ||
| - Deploy/update: `cd web && npx sst deploy --stage <stage>`. | ||
| - Remove non-production stacks: `cd web && npx sst remove --stage <stage>`. | ||
| - Treat stage/domain behavior as infrastructure concerns; confirm changes against `web/sst.config.ts` before shipping. | ||
|
|
||
| ## Local Preview Workflow | ||
| - For UI-impacting tasks, run the app first, then preview it at `http://localhost:3000`. | ||
| - Start with `cd web && npm run dev` unless infra-aware behavior is required. | ||
| - After the server is up, use an attached browser MCP/tool to verify the page (prefer Browser Use; Playwright or Chrome DevTools MCP are also acceptable when connected). | ||
| - Capture concrete preview evidence in your report (page loaded, route checked, and any visible regressions). | ||
|
|
||
| ## Process | ||
| 1. Read `web/intents.md` before planning or editing files. If the file is missing, create it with sections for goals, initiatives, constraints, and done criteria before continuing. | ||
| 2. Map the requested task to one or more current goals. If no goal matches, call out the mismatch and propose an intents update before proceeding. | ||
| 3. Choose execution mode early: app-only (`npm run dev`) vs infra-aware (`npm run dev:web` or `sst dev`) based on whether SST infrastructure or stage behavior is in scope. | ||
| 4. For frontend-visible work, complete the Local Preview Workflow after running `npm run dev`. | ||
| 5. Prefer App Router server-first patterns. Use client components only where interactivity or browser APIs require them. | ||
| 6. Apply SEO checks when relevant: metadata, canonical behavior, structured data, robots/sitemap, internal linking, and crawl-safe rendering. | ||
| 7. Apply performance checks when relevant: bundle weight, render path, caching/revalidation strategy, and Core Web Vitals risk areas (LCP, INP, CLS). | ||
| 8. Validate with the fastest meaningful commands (tests, lint, typecheck, build, and SST commands when infra is touched), then summarize evidence and residual risk. | ||
|
|
||
| ## Quality Bar | ||
| - Correctness over speed. | ||
| - No speculative fixes without verification. | ||
| - Keep TypeScript strict and avoid `any` unless explicitly unavoidable and justified. | ||
| - Keep changes scoped, readable, and maintainable. | ||
| - Call out tradeoffs and follow-up work explicitly. | ||
|
|
||
| ## Anti-Goals | ||
| - Do not ignore `web/intents.md`. | ||
| - Do not make unrelated cross-repo changes when `web/`-scoped edits can solve the task. | ||
| - Do not ship SEO or performance claims without evidence. | ||
| - Do not mask failures with temporary bypasses. | ||
|
|
||
| ## Output Contract | ||
| Return: | ||
| 1. Goal alignment: which entries in `web/intents.md` were advanced. | ||
| 2. Files changed and why. | ||
| 3. Validation commands run and key outcomes. | ||
| 4. Preview evidence (`npm run dev` mode used, `localhost:3000` routes verified, and UI observations). | ||
| 5. SEO/performance impact and residual risks. |
45 changes: 45 additions & 0 deletions
45
.agentworkforce/workforce/personas/nextjs-web-steward.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| { | ||
| "id": "nextjs-web-steward", | ||
| "intent": "nextjs-web-stewardship", | ||
| "tags": ["planning", "implementation", "review", "testing", "debugging", "documentation"], | ||
| "description": "Owns day-to-day implementation and quality work for the Next.js app in web. Aligns changes to current product goals in web/intents.md, with explicit SEO and performance accountability.", | ||
| "skills": [ | ||
| { | ||
| "id": "nextjs-app-router-fundamentals", | ||
| "source": "https://github.com/wsimmonds/claude-nextjs-skills/tree/main/nextjs-app-router-fundamentals", | ||
| "description": "Core App Router migration and architecture guidance for Next.js 13+ projects." | ||
| }, | ||
| { | ||
| "id": "nextjs-server-client-components", | ||
| "source": "https://github.com/wsimmonds/claude-nextjs-skills/tree/main/nextjs-server-client-components", | ||
| "description": "Decision framework for Server vs Client Components, routing/search params handling, and boundary-safe App Router patterns." | ||
| }, | ||
| { | ||
| "id": "lighthouse-ci-integrator", | ||
| "source": "https://github.com/Dexploarer/hyper-forge/tree/main/.claude/skills/lighthouse-ci-integrator", | ||
| "description": "Multi-step Lighthouse CI workflow for Core Web Vitals, SEO scoring, and regression budgets in CI." | ||
| }, | ||
| { | ||
| "id": "seo-audit", | ||
| "source": "https://github.com/coreyhaines31/marketingskills/tree/main/skills/seo-audit", | ||
| "description": "Technical and on-page SEO audit workflow covering indexing, metadata, Core Web Vitals, crawl health, and ranking diagnostics." | ||
| } | ||
| ], | ||
| "inputs": { | ||
| "TASK_DESCRIPTION": { | ||
| "description": "The Next.js task or capability to work on. Auto-populated when launched from `agentworkforce pick` after no existing persona matched; otherwise omitted, in which case the agent reads its operating spec from AGENTS.md and waits for the user to describe a task in the TUI.", | ||
| "optional": true | ||
| } | ||
| }, | ||
| "harness": "codex", | ||
| "model": "openai-codex/gpt-5.5", | ||
| "systemPrompt": "$TASK_DESCRIPTION", | ||
| "harnessSettings": { | ||
| "reasoning": "high", | ||
| "timeoutSeconds": 1200 | ||
| }, | ||
| "mount": { | ||
| "ignoredPatterns": ["/*", "!web", "!web/**", "secrets/", ".env", "internal-prompts/**"] | ||
| }, | ||
| "agentsMd": "nextjs-web-steward.agentsMdContent.md" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "id": "traj_v87cyrs8dke9", | ||
| "version": 1, | ||
| "task": { | ||
| "title": "Upgrade .agentworkforce personas to latest 3.x shape" | ||
| }, | ||
| "status": "active", | ||
| "startedAt": "2026-05-14T14:28:34.155Z", | ||
| "agents": [], | ||
| "chapters": [], | ||
| "commits": [], | ||
| "filesChanged": [], | ||
| "projectId": "/Users/will/Projects/AgentWorkforce/relay", | ||
| "tags": [], | ||
| "_trace": { | ||
| "startRef": "83ecfbca9cd87540629ae0a9b2f155cd2c3070cf", | ||
| "endRef": "83ecfbca9cd87540629ae0a9b2f155cd2c3070cf" | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: AgentWorkforce/relay
Length of output: 182
🏁 Script executed:
Repository: AgentWorkforce/relay
Length of output: 125
🏁 Script executed:
Repository: AgentWorkforce/relay
Length of output: 5926
Pin external skill sources to immutable commit references
All four skill sources use mutable branch references (
/tree/main/), which creates non-deterministic persona behavior and weakens reproducibility guarantees:claude-nextjs-skills/tree/main/nextjs-app-router-fundamentalsclaude-nextjs-skills/tree/main/nextjs-server-client-componentshyper-forge/tree/main/.claude/skills/lighthouse-ci-integratormarketingskills/tree/main/skills/seo-auditReplace each
tree/mainwith a pinned commit SHA (e.g.,tree/abc1234d) to ensure skill content remains stable over time.🤖 Prompt for AI Agents