Skip to content
Agentmart
Submit a tool

landing_page-plugs

Custom Plug middleware patterns in landing_page_backend — authentication (JWT/Passport), authorization, permission checking, and rate limiting.

Skill by Vũ Lưu

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying landing_page-plugs?

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/vuluu2k-landing-page-plugs

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

Custom Plug middleware patterns in landing_page_backend — authentication (JWT/Passport), authorization, permission checking, and rate limiting.

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/landing-page-plugs

What's inside

Skill name
landing_page-plugs
Description
Custom Plug middleware patterns in landing_page_backend — authentication (JWT/Passport), authorization, permission checking, and rate limiting.
License
MIT
Metadata
author: Vũ Lưu · source: Source code landing_page_backend · version: 2026.03.30
Instructions
80 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed

Files (3)

  • SKILL.md
  • core-auth.md · references/
  • core-permissions.md · references/

SKILL.md (first lines)

# Landing Page — Plugs

> Custom Plug middleware architecture for authentication, authorization, and permission control.

## Core

| Topic | Description | Reference |
|-------|-------------|-----------|
| Authentication Plugs | JWT validation, Passport auth, Account lookup | [core-auth](references/core-auth.md) |
| Permission Plugs | Role-based access control, page/org/team checks | [core-permissions](references/core-permissions.md) |

## Quick Reference

### Authentication Pipeline

```elixir
# Router pipeline — plugs chạy tuần tự
pipeline :passport do
  plug LandingPageWeb.Plug.PassportPlug     # 1. Validate token → assigns :token_claims
end

pipeline :account do
  plug LandingPageWeb.Plug.AccountPlug      # 2. Lookup account → assigns :account
end

pipeline :organization do
  plug LandingPageWeb.Plug.OrganizationPlug  # 3. Lookup org → assigns :organization
end

# Scope sử dụng pipelines
scope "/api/v1", LandingPageWeb.V1 do
  pipe_through [:api, :passport, :account, :organization]

  resources "/pages", PageController
end
```

### Writing a Custom Plug

```elixir
defmodule LandingPageWeb.Plug.MyCustomPlug do
  import Plug.Conn

  def init(opts), do: opts

  def call(conn, _opts) do
    # 1. Lấy data từ conn (headers, assigns, params)
    account = conn.assigns.account

    # 2. Validate/process
    case validate(account) do
      :ok ->
        # 3a. Success → assign data và pass conn tiếp
        conn |> assign(:validated, true)
      :error ->
        # 3b. Fail → halt pipeline
        conn |> send_resp(403, "Forbidden") |> halt()
    end
  end
end
```

### Permission Check Plug

```elixir
# Trong controller — chỉ áp dụng cho specific actions
plug LandingPageWeb.Plug.PermissionCheck,
     [role: :owner, type: :page]
     when action in [:delete]

plug LandingPageWeb.Plug.PermissionCheck,
     [role: :manager, type: :page]
     when action in [:page_detail, :update_right]

plug LandingPageWeb.Plug.PermissionCheck,
     [role: :organization_admin, type: :organization]
     when action in [:bulk_update_rights]
```

From vuluu2k/skills, MIT.

More from vuluu2k/skills

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Mar 30, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
2026.03.30
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from Vũ Lưu

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 landing_page-plugs 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 landing_page-plugs?

CallGet help
Cite this page

landing_page-plugs skill. Agent Mart. https://agentmart.dev/skills/vuluu2k-landing-page-plugs (last updated 2026-10-24)