page-sections-lord

page-sections-lord is a skill for Claude Code, Codex from m3taz-ahmed/ai-globals. It costs 22 tokens per session (2,118 once invoked), scanned A, original, MIT.

A guide for building reusable landing-page and content-page sections in Laravel with Filament, an administration interface framework. It describes data models, translated fields, and configurable content blocks.

In plain words
What is it for?
Use it to plan Filament page builders, multilingual pages, parent-child page relationships, static pages, metadata fields, and frontend-compatible content blocks.
Why use it?
It helps teams manage page content through structured, reusable sections instead of hard-coding every page layout.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan Filament page builders, multilingual pages, parent-child page relationships, static pages, metadata fields, and frontend-compatible content blocks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/m3taz-ahmed/ai-globals/page-sections-lord
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add m3taz-ahmed/ai-globals --skill page-sections-lord
Clone the repo
git clone --depth 1 https://github.com/m3taz-ahmed/ai-globals

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for page-sections-lord

README.md
[![agentmods](https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/page-sections-lord/github.svg)](https://agentmods.dev/skills/m3taz-ahmed/ai-globals/page-sections-lord)
Your own site
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/page-sections-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/page-sections-lord/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for page-sections-lord

Your own site · 80×15
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/page-sections-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/page-sections-lord.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,118 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.02118
Opus 5 $0.00011 $0.01059
Sonnet 5 $0.00004 $0.00424
Haiku 4.5 $0.00002 $0.00212

Measured 9d ago against content hash 136ffab8eeaa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

page-sections-lord scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/page-sections-lord/SKILL.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.

[SKILL] page-sections-lord [OBJ] Design, scaffold, and operate reusable page sections and landing pages via Filament/Laravel. [RULES]

  1. [CMD] IDs: Filament /filamentphp/filament; Filament Spatie Translatable Plugin /filamentphp/spatie-laravel-translatable-plugin; Spatie Translatable /spatie/laravel-translatable; Spatie Query Builder /spatie/laravel-query-builder; Filament Fabricator /z3d0x/filament-fabricator (block-based alternative).
  2. [REQ] Tourx pattern core: Page model with JSON content; translatable title, slug, description, content, meta_title, meta_desc, meta_keywords; parent page_id self-reference; is_home, is_header, is_footer flags.
  3. [REQ] Filament Builder for content.{locale}; one Block::make('X_section') per section with a unique type key and a schema that matches the frontend component props.
  4. [REQ] Standard block shape: { "type": "hero_section", "data": { ... } }; keep data flat; use consistent image key names (image, background_image, *_image, logo, icon).
  5. [REQ] Static pages: StaticPage model with type and translatable title/content/slug; seed privacy-policy, terms-of-service, faqs, ai-ethics, about-us; embed via a static_*_section block that maps type to slug.
  6. [REQ] API: PageController with index (Spatie\QueryBuilder), show($slug) by locale, and sections($slug); cast content to array; recursively transform image keys to full Storage::disk('s3')->url() or asset(Storage::url(...)) URLs.
  7. [REQ] i18n: Spatie HasTranslations on Page and StaticPage; Filament translatable tabs; lookup by slug->{locale} with fallback to default locale; app()->getLocale() in controller.
  8. [REQ] Common blocks: hero, destinations, testimonials, vision, mission, story_stats, tech_features, team, cta, contact, global_presence, faqs, privacy_policy, terms_of_service, ai_ethics, about_us. Add new blocks via new Block in PageForm and a matching frontend component.
  9. [REQ] Image handling: FileUpload::image() with directory assets/images/pages/{section}; store only relative paths in DB; API returns absolute URLs; preview images under public/assets/images/builder-previews/{section}.png for Filament block labels.
  10. [REQ] Reusability: when blocks need cross-page reuse, tenant-scoping, or user-defined block types, migrate to page_sections pivot or filament-fabricator block registry; keep block shape type/data to ease migration.
  11. [REQ] New projects: start from skills/page-sections-lord/templates/page-builder-spec.md; follow the scaffold order: migrations → models → Filament resource/form → API controller/resource → routes → frontend section components → static pages seeder.
  12. [REQ] Security/RBAC: use filament-shield for admin permissions; validate slug uniqueness per locale; never expose one tenant's page/section to another; apply tenant scope if multi-tenancy.
  13. [REQ] Cross-stack questions query page-sections-lord, backend-frameworks-lord, frontend-frameworks-lord, and mariadb-lord if database-specific; explain the rationale.
  14. [REQ] Status Enum for Pages (Sky pattern): enum PageStatus: string implements HasColor, HasIcon, HasLabel with 7 states: Publish, Future, Draft, Auto, Pending, Private, Trash. ⛔ NEVER string status column. Use backed enum with colors/icons. Filter scopes: scopePublished, scopeSticky, scopeDraft.
  15. [REQ] Tab-based Page Form (Sky pattern): Tabs::make('content_tabs') with logical tabs: Content (title + editor), SEO (description + slug + meta), Visibility (status + password + published_at + sticky_until), Media (featured image upload/URL toggle). ⛔ NEVER one long form. Split by domain concern.
  16. [REQ] Upload/URL Toggle for Images (Sky pattern): ToggleButtons::make('image_type')->options(['upload' => 'Upload', 'url' => 'URL'])->live() + SpatieMediaLibraryFileUpload::make('image_upload')->visible(fn(Get $get) => $get('image_type') === 'upload') + TextInput::make('image_url')->url()->visible(fn(Get $get) => $get('image_type') === 'url'). Flexible media input per block.
  17. [REQ] Configurable Editor (Filament-Blog pattern): HasContentEditor trait + getContentEditor(string $field) method. config('page-sections.editor') selects RichEditor / MarkdownEditor / TinyEditor. config('page-sections.toolbar_buttons') for toolbar. Pluggable without code changes.
  18. [REQ] Navigation Builder (Sky pattern): Navigation model with JSON items field. ViewField::make('items')->default([])->view('navigation-builder') custom blade view. Drag-drop menu builder in admin. Locations config: header, footer, footer-2, etc.
  19. [REQ] Search Highlighting (Sky pattern): highlightSearchResults(Collection $collection, ?string $search): Collection trait. Highlight matched terms in title/content for frontend search. parsing(string $text, array $terms): string helper.
  20. [REQ] Spatie Media Library (Sky pattern): InteractsWithMedia + collections per section type (posts, pages, sections). SpatieMediaLibraryFileUpload with disk from plugin config: SkyPlugin::get()->getUploadDisk(). $model->getFirstMediaUrl('collection') for URLs. ⛔ NEVER plain FileUpload for complex media. Use collections + conversions.
  21. [REQ] Spatie Tags with Types (Sky pattern): SpatieTagsInput::make('tags')->type('section_tag') for typed taxonomy. Differentiate tags vs categories via type parameter. SelectFilter::make('tags')->multiple()->relationship('tags', 'name') for table filters.
  22. [REQ] Password Protection (Sky pattern): status === 'private' + password field on Page model. requirePassword(): Attribute checks status + password presence. Frontend prompts password before showing private pages.
  23. [REQ] Sticky/Scheduling (Sky pattern): sticky_until date column for sticky posts with expiry. published_at datetime for scheduling. scopeSticky(Builder $q): $q->whereNotNull('sticky_until')->whereDate('sticky_until', '>=', now()). scopePublished: status=publish + published_at <= now.
  24. [REQ] Parent-Child Pages (Sky pattern): parent_id self-reference + ordering integer. Select::make('parent_id')->options(Post::where('post_type', 'page')->pluck('title', 'id')). Hierarchical page structure. Frontend renders tree.
  25. [REQ] FAQ Schema (MVPable pattern): faqSchema(array $faqs): array generates JSON-LD {"@context":"https://schema.org","@type":"FAQPage","mainEntity":[...]}. Embed via <script type="application/ld+json">. Google rich results for FAQ sections.
  26. [REQ] Breadcrumb Schema (MVPable pattern): breadcrumbSchema(array $breadcrumbs): array generates JSON-LD BreadcrumbList. {"@type":"ListItem","position":N,"name":"...","item":"..."}. Google sitelinks breadcrumb display.
  27. [REQ] Article Schema (MVPable pattern): articleSchema(headline, description, image, publishedTime, modifiedTime, author) generates JSON-LD Article. For blog/news sections. Google News inclusion.
  28. [REQ] Organization Schema (MVPable pattern): organizationSchema(): array generates JSON-LD Organization with name, legalName, url, logo, sameAs (social links). For site-wide structured data.
  29. [REQ] Action Groups (Sky pattern): ActionGroup::make([EditAction::make('edit'), Action::make('Open')->url()->openUrlInNewTab(), DeleteAction::make('delete'), ForceDeleteAction::make(), RestoreAction::make()]) for consistent record actions across all page resources.
  30. [REQ] Navigation Badges (Sky pattern): getNavigationBadge(): ?string returns (string) Model::count(). Respect visibility config: SkyPlugin::getNavigationBadgesVisibility(static::class). Show counts in sidebar navigation.
  31. [REQ] Create Option Forms (Filament-Blog pattern): Select::make('category_id')->relationship('category', 'name')->createOptionForm([TextInput::make('name'), TextInput::make('slug')])->preload()->searchable(). Inline creation without leaving page. Reduces context switching.
  32. [REQ] Auto-slug Generation (Sky/Filament-Blog pattern): TextInput::make('title')->live(onBlur: true)->afterStateUpdated(fn(Set $set, $state, $context) => $context === 'edit' ?: $set('slug', Str::slug($state))). ⛔ NEVER overwrite slug on edit.

Read the full file on GitHub · 40 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 40 lines · 22 tokens per session scan A 136ffab8eeaa

Subscribe to this mod's changes

page-sections-lord is a skill published in the GitHub repository m3taz-ahmed/ai-globals (5 stars, last pushed yesterday), licensed MIT. It adds 22 tokens to every session and 2,118 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

nextjs-pages-router

Set up tRPC in Next.js Pages Router with createNextApiHandler, createTRPCNext, withTRPC HOC, SSR via ssr option and ssrPrepass, SSG via createServerSideHelpers with getStaticProps, and server-side helpers for getServerSideProps prefetching.

trpc/trpc · 67 tokens

with-tanstack-query

Compose Angular Query with signal-owned Table filtering, sorting, and pagination state using reactive query options, manual row-model boundaries, direct query data, server counts, and valid injection context.

TanStack/table · 42 tokens

auth-web-cloudbase

CloudBase Web Authentication Quick Guide for frontend integration after auth-tool has already been checked. Provides concise and practical Web authentication solutions with multiple login methods and complete user management.

TencentCloudBase/CloudBase-AI-Toolkit · 38 tokens

service-digital-engagement-channel-configure

Configures and deploys enhanced chat Messaging Channels for Messaging for In-App and Web (MIAW). Use when the user needs to create, deploy, and activate a messaging channel configured with Omni-Channel Flow, Omni-Channel Queue, User, or Agentforce Service Agent routing. Generates MessagingChannel metadata, deploys it…

forcedotcom/sf-skills · 173 tokens

pinme-llm

Use this skill when a PinMe project (Worker TypeScript) needs to call OpenRouter-backed LLM APIs, including models, chat/completions, streaming, or OpenRouter web search. Guides AI to generate correct Worker TS code.

glitternetwork/pinme · 54 tokens

om-system-extension

Extend installed Open Mercato modules through UMES enrichers, interceptors, mutation guards, widgets, menus, entity extensions, events, component/page replacements, and overrides. Use for "extend core", "add field/column/action", "hide page", "intercept API", "UMES", or "rozszerz moduł".

open-mercato/open-mercato · 73 tokens