Skip to content
Agentmart
Submit a tool

frontend-context

Frontend architecture, patterns and conventions for the Next.js 15 app.

Skill by davidleonmayor

IndexedApache-2.0★ 3
Write a review

Chalk Labs

Need help deploying frontend-context?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/davidleonmayor-frontend-context

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Frontend architecture, patterns and conventions for the Next.js 15 app. Trigger: When working on frontend code, components, pages, or API integration.

Use cases: frontend, backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/frontend-context

What's inside

Skill name
frontend-context
Description
Frontend architecture, patterns and conventions for the Next.js 15 app. Trigger: When working on frontend code, components, pages, or API integration.
License
Apache-2.0
Metadata
author: davidleonmayor · version: 1.0
Instructions
325 lines in SKILL.md · view on GitHub

Files (5)

  • SKILL.md
  • auth-context.md · references/
  • pages-context.md · references/
  • projects-context.md · references/
  • shared-context.md · references/

SKILL.md (first lines)

## Stack

| Technology | Version | Purpose |
|------------|---------|---------|
| Next.js | 15 (App Router) | Framework |
| React | 19 | UI library |
| TypeScript | 5 | Language |
| Tailwind CSS | 4 | Styling |
| shadcn/ui | new-york style | Component library |
| Zod | 4 | Schema validation |
| react-hook-form | 7 | Form handling |
| Recharts | 3 | Charts |
| react-big-calendar | 1 | Calendar views |
| Lucide React | - | Icons |
| SweetAlert2 | 11 | Alert dialogs |
| jspdf / pdfjs-dist | - | PDF handling |
| xlsx | 0.18 | Spreadsheet handling |

**File Naming:**
- ✅ `useAuth.ts` (hooks use camelCase with `use` prefix)
- ✅ `auth.service.ts` (services use dot notation)
- ✅ `ProjectHistory.tsx` (components use PascalCase)
- ✅ `base-client.ts` (lib utilities use kebab-case)
- ✅ `common.ts` (types use camelCase)
- ❌ `Auth_Service.ts` (WRONG — no underscores)

## Scope Detection (ASK IF AMBIGUOUS)

| User Says | Action |
|-----------|--------|
| "add component" | Create in `modules/{domain}/components/` or `shared/components/` |
| "add page", "new page" | Create in `app/(dashboard)/` with proper layout |
| "add service", "connect API" | Create in `modules/{domain}/services/` extending BaseApiClient |
| "add hook" | Create in `modules/{domain}/hooks/` or `shared/hooks/` |
| "add form" | Use react-hook-form + zod, InputField component |
| "fix styling" | Check Tailwind classes, `globals.css` theme vars |

**Examples:**
- "Add a student profile page" → ONE page in `app/(dashboard)/list/students/[id]/`
- "Connect events to the API" → ONE service in `modules/events/services/`
- "Add a search component" → Reuse `shared/components/ui/TableSearch.tsx` or create new

## Directory Structure

```
frontend/
├── app/                          # Next.js App Router
│   ├── layout.tsx                # Root layout (Geist font, metadata)
│   ├── page.tsx                  # Auth check → redirect to role dashboard
│   ├── globals.css               # Tailwind + custom theme vars
│   ├── sign-in/                  # Public auth pages
│   ├── register/
│   ├── forgot-password/
│   ├── reset-password/[token]/
│   ├── confirm-account/
│   ├── hooks/                    # ⚠ Legacy hooks (use modules/ instead)
│   ├── lib/                      # ⚠ Legacy services (use modules/ instead)
│   ├── components/               # ⚠ Legacy components (use modules/ or shared/)
│   └── (dashboard)/              # Route group — requires auth
│       ├── layout.tsx            # Sidebar + Navbar + ProtectedRoute
│       ├── admin/                # Admin dashboard (stats, charts)
│       ├── dean/                 # Dean dashboard
│       ├── teacher/              # Teacher dashboard (calendar)
│       ├── student/              # Student dashboard (calendar)
│       ├── social-outreach/      # Social outreach module
│       ├── projects/             # Project CRUD + bulk upload
│       │   ├── admin/            # Admin project management
│       │   │   ├── new/
│       │   │   └── edit/[id]/
│       │   ├── bulk-upload/
│       │   └── [id]/             # Project detail
│       └── list/                 # Entity listings
│           ├── careers/
│           ├── degreeOptions/
│           ├── events/
│           ├── messages/
│           ├── students/[id]/
│           └── teachers/[id]/
├── modules/                      # ✅ Domain modules (preferred)
│   ├── auth/                     # Authentication — [details](references/auth-context.md)
│   │   ├── hooks/useAuth.ts
│   │   ├── services/auth.service.ts
│   │   └── types/
│   ├── events/                   # Event management
│   │   ├── services/events.service.ts
│   │   └── types/
│   ├── persons/                  # Teachers & students
│   │   ├── services/persons.service.ts
│   │   └── types/
│   └── projects/                 # Project management — [details](references/projects-context.md)
│       ├── components/
│       ├── services/projects.service.ts
│       └── types/
├── shared/                       # ✅ Cross-cutting utilities — [details](references/shared-context.md)
│   ├── components/
│   │   ├── ui/                   # InputField, Table, Pagination, TableSearch
│   │   └── layout/               # Menu, Navbar, ProtectedRoute, RoleProtectedRoute
│   ├── hooks/useUserRole.ts
│   ├── lib/
│   │   ├── api/base-client.ts    # BaseApiClient (fetch wrapper)
│   │   └── auth/token-manager.ts # JWT token storage
│   ├── types/common.ts
│   └── index.ts                  # Barrel exports
├── components/ui/                # shadcn/ui primitives (auto-generated)
├── lib/utils.ts                  # cn() helper
└── public/
```

## Architecture

The frontend uses a **modular architecture** with two layers:

**Module pattern** — Self-contained domain modules under `modules/` with own services, hooks, components, and types. Each module owns its full vertical slice.

| Module | Path | Description |
|--------|------|-------------|
| `auth` | `modules/auth/` | Authentication, JWT, password flows — [details](references/auth-context.md) |
| `projects` | `modules/projects/` | Project CRUD, iterations, reviews, bulk upload — [details](references/projects-context.md) |
| `events` | `modules/events/` | Event CRUD |

From davidleonmayor/proyecto-grado-unimayor, Apache-2.0.

Signals

Stars
3
Forks
0
Open issues
1
Last commit (this folder)
Feb 12, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from davidleonmayor

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get frontend-context running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying frontend-context?

CallGet help
Cite this page

frontend-context skill. Agent Mart. https://agentmart.dev/skills/davidleonmayor-frontend-context (last updated 2026-10-24)