core-architecture-patterns

core-architecture-patterns is a skill for Claude Code, Codex from heristop/leclap. It costs 64 tokens per session (1,955 once invoked), scanned A, original, MIT.

A set of development rules for the FFmpeg video composer package, which builds videos from sections, media, effects, and audio. It explains how platform adapters, dependency injection, and the video-building pipeline fit together.

In plain words
What is it for?
Use it when adding video section types, platform adapters, editor managers, core services, or new dependencies to the package's dependency container.
Why use it?
It helps developers add features in the same way as the existing system instead of wiring components inconsistently. This reduces integration errors when extending the video composer.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when adding video section types, platform adapters, editor managers, core services, or new dependencies to the package's dependency container.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/heristop/leclap/core-architecture-patterns
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 heristop/leclap --skill core-architecture-patterns
Clone the repo
git clone --depth 1 https://github.com/heristop/leclap

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 core-architecture-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/heristop/leclap/core-architecture-patterns/github.svg)](https://agentmods.dev/skills/heristop/leclap/core-architecture-patterns)
Your own site
<a href="https://agentmods.dev/skills/heristop/leclap/core-architecture-patterns"><img src="https://agentmods.dev/badge/skills/heristop/leclap/core-architecture-patterns/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 core-architecture-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/heristop/leclap/core-architecture-patterns"><img src="https://agentmods.dev/badge/skills/heristop/leclap/core-architecture-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,955 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00064 $0.01955
Opus 5.5 $0.00026 $0.00782
Sonnet 5.5 $0.00013 $0.00391
Haiku 4.5 $0.00006 $0.00196

Measured 24d ago against content hash 36a8c6d269a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

core-architecture-patterns 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 24d 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.

.agents/skills/core-architecture-patterns/SKILL.md · 77 lines

How it starts

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

Core Architecture Patterns

Overview

packages/ffmpeg-video-composer is built from a few repeating patterns: adapters abstract the platform, the PlatformBridge selects them for Node while browser/native entry points register them directly, tsyringe DI wires everything, and a director → builder → segments → managers pipeline compiles a template. Follow these patterns; reuse existing pieces before adding new ones. Full design: docs/architecture.md.

The pipeline

TemplateDirector (packages/ffmpeg-video-composer/src/director/TemplateDirector.ts) orchestrates: init → build each section → concat → apply music.

  • Sections created by SegmentFactory (editor/factories/SegmentFactory.ts) → rendered by *Segment classes (editor/segments/).
  • FFmpeg commands assembled by editor managers (editor/managers/): asset, variable, map, filter, formatter.
  • VideoEditor concatenates; MusicComposer mixes audio.

Adding a segment type

  1. Add the section schema variant in packages/ffmpeg-video-composer/src/schemas/section.schemas.ts (extend BaseSectionSchema, add to the SectionSchema discriminated union); template.schemas.ts re-exports it. Keep the manual descriptor shape in src/core/types.d.ts in sync.
  2. Create editor/segments/<Name>Segment.ts following an existing segment (e.g. VideoSegment.ts); use @injectable().
  3. Register it in editor/factories/SegmentFactory.ts (map the new type literal → class).
  4. Add a test under packages/ffmpeg-video-composer/tests/.

An authoring effect section follows a different route: EffectReferenceSchema in schemas/effect-reference.schema.ts defines its JSON contract, and core/resolve-template-effects.ts resolves it into a project_video clip plus userVideoPaths before compilation. The core never launches Remotion. Extend the trusted Node backend/catalog in packages/leclap-mcp/src/effects/ for registered graphics, validate props/assets during preflight, and expose contracts through get_effect_schema; do not add a Remotion segment to SegmentFactory.

Read the full file on GitHub · 77 lines

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. 24d ago Changed · +2 lines · +6 tokens per session 36a8c6d269a5
  2. 1mo ago First seen · 75 lines · 58 tokens per session scan A 178295ed2811

Subscribe to this mod's changes

core-architecture-patterns is a skill published in the GitHub repository heristop/leclap (36 stars, last pushed 4d ago), licensed MIT. It adds 64 tokens to every session and 1,955 once invoked, about $0.0003 per session on Opus 5.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-08-30.

Related

Other skills, from other repositories

qiaomu-cut

A workflow for turning a brief video idea into a planned, sourced, edited, rendered, and checked video project.

joeseesun/qiaomu-cut-skill · 218 tokens

push-notifications

Set up push notifications for iOS and Android using Expo Notifications and Supabase Edge Functions. Use when adding push notifications, configuring APNs/FCM credentials, sending notifications from the backend, or troubleshooting notification delivery.

Ampli-Group/agentic-mobile-blueprint · 47 tokens

social-auth-setup

Configure Sign in with Apple and Sign in with Google for Supabase Auth. Use when adding social login, troubleshooting OAuth redirects, setting up Apple Services ID, Google OAuth credentials, or linking Google Play Console to Google Cloud.

Ampli-Group/agentic-mobile-blueprint · 49 tokens

supabase-email-templates

Customize Supabase Auth email templates for local development and production.

Ampli-Group/agentic-mobile-blueprint · 0 tokens

edge-functions

Supabase Edge Function development patterns with Deno runtime. Use when creating, modifying, or debugging edge functions. For Langfuse tracing see the langfuse-tracing skill. For Sentry error handling see the sentry-integration skill.

Ampli-Group/agentic-mobile-blueprint · 52 tokens

nestjs

Use when building or structuring a NestJS backend — feature modules, providers and DI wiring, provider scopes and request-lifecycle order, where to bind guards/pipes/interceptors/filters, and testing with Test.createTestingModule. NOT a bare Express/Fastify service with no DI (that is nodejs), NOT framework-agnostic…

ericrisco/rsc-harness · 81 tokens