Логотип Newt Blueprint Generator

Newt Blueprint Generator

Спільнота
rknall
Newt Blueprint Generator

Generate and validate Pangolin Newt blueprint configurations in YAML or Docker Labels format. Use when creating Pangolin resource configurations, proxy resources, client resources, authentication settings, or Docker Compose blueprints.

Огляд

Видавецьrknall
Репозиторійclaude-skills
Назва навичкиNewt Blueprint Generator
Зірки
73
Форки
9
Файли в пакеті
1
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: rknall. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Newt Blueprint Generator у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/rknall/claude-skills/tree/main/newt-blueprint-generator
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/rknall/claude-skills.git /tmp/claude-skills
mkdir -p .claude/skills
cp -r /tmp/claude-skills/newt-blueprint-generator .claude/skills/rknall-newt-blueprint-generator
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Newt Blueprint Generator в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Newt Blueprint Generator, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Newt Blueprint Generator не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Newt Blueprint Generator

Expert assistance for creating, validating, and managing Pangolin Newt blueprint configurations.

When to Use This Skill

This skill should be triggered when:

  • Creating Pangolin blueprint configurations
  • Generating YAML configuration files for Newt
  • Creating Docker Compose files with Pangolin labels
  • Configuring proxy resources (HTTP, TCP, UDP)
  • Setting up client resources for Olm
  • Configuring authentication (SSO, basic auth, pincode, password)
  • Validating blueprint configurations
  • Troubleshooting blueprint validation errors
  • Converting between YAML and Docker Labels formats

Overview

Pangolin Blueprints are declarative configurations that allow you to define resources and their settings in a structured format. They support two formats:

  1. YAML Configuration Files: Standalone configuration files
  2. Docker Labels: Configuration embedded in Docker Compose files

Blueprint Formats

YAML Configuration Format

YAML configs can be applied using:

  • Newt CLI: Pass --blueprint-file /path/to/blueprint.yaml
  • API: POST to /org/{orgId}/blueprint with base64-encoded JSON body

Example Newt usage:

bash
newt --blueprint-file /path/to/blueprint.yaml <other-args>

Docker Labels Format

For containerized applications, blueprints can be defined using Docker labels with the pangolin. prefix.

Enable Docker socket access:

bash
newt --docker-socket /var/run/docker.sock <other-args>

Or use environment variable:

bash
DOCKER_SOCKET=/var/run/docker.sock

Resource Types

Proxy Resources

Proxy resources expose HTTP, TCP, or UDP services through Pangolin.

HTTP Proxy Resource Example
yaml
proxy-resources:
  resource-nice-id-uno:
    name: this is a http resource
    protocol: http
    full-domain: uno.example.com
    host-header: example.com
    tls-server-name: example.com
    headers:
      - name: X-Example-Header
        value: example-value
      - name: X-Another-Header
        value: another-value
    rules:
      - action: allow
        match: ip
        value: 1.1.1.1
      - action: deny
        match: cidr
        value: 2.2.2.2/32
      - action: pass
        match: path
        value: /admin
    targets:
      - site: lively-yosemite-toad
        hostname: localhost
        method: http
        port: 8000
      - site: slim-alpine-chipmunk
        hostname: localhost
        path: /admin
        path-match: exact
        method: https
        port: 8001
TCP/UDP Proxy Resource Example
yaml
proxy-resources:
  resource-nice-id-dos:
    name: this is a raw resource
    protocol: tcp
    proxy-port: 3000
    targets:
      - site: lively-yosemite-toad
        hostname: localhost
        port: 3000
Targets-Only Resources

Simplified resources containing only target configurations:

yaml
proxy-resources:
  additional-targets:
    targets:
      - site: another-site
        hostname: backend-server
        method: https
        port: 8443
      - site: another-site
        hostname: backup-server
        method: http
        port: 8080

Note: When using targets-only resources, name and protocol fields are not required.

Client Resources

Client resources define proxied resources accessible via Olm client (SSH, RDP):

yaml
client-resources:
  client-resource-nice-id-uno:
    name: this is my resource
    protocol: tcp
    proxy-port: 3001
    hostname: localhost
    internal-port: 3000
    site: lively-yosemite-toad

Authentication Configuration

Authentication is off by default. Enable by adding fields in the auth section.

Note: Authentication is only allowed on HTTP resources, not TCP/UDP.

yaml
proxy-resources:
  secure-resource:
    name: Secured Resource
    protocol: http
    full-domain: secure.example.com
    auth:
      pincode: 123456
      password: your-secure-password
      basic-auth:
        user: asdfa
        password: sadf
      sso-enabled: true
      sso-roles:
        - Member
        - Admin
      sso-users:
        - user@example.com
      whitelist-users:
        - admin@example.com

Docker Labels Format

Complete Docker Compose Example

yaml
services:
  newt:
    image: fosrl/newt
    container_name: newt
    restart: unless-stopped
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - PANGOLIN_ENDPOINT=https://app.pangolin.net
      - NEWT_ID=h1rbsgku89wf9z3
      - NEWT_SECRET=z7g54mbcwkglpx1aau9gb8mzcccoof2fdbs97keoakg2pp5z
      - DOCKER_SOCKET=/var/run/docker.sock

  nginx1:
    image: nginxdemos/hello
    container_name: nginx1
    labels:
      # Proxy Resource Configuration
      - pangolin.proxy-resources.nginx.name=nginx
      - pangolin.proxy-resources.nginx.full-domain=nginx.fosrl.io
      - pangolin.proxy-resources.nginx.protocol=http
      - pangolin.proxy-resources.nginx.headers[0].name=X-Example-Header
      - pangolin.proxy-resources.nginx.headers[0].value=example-value
      # Target Configuration - port and hostname auto-detected
      - pangolin.proxy-resources.nginx.targets[0].method=http
      - pangolin.proxy-resources.nginx.targets[0].path=/path
      - pangolin.proxy-resources.nginx.targets[0].path-match=prefix

  nginx2:
    image: nginxdemos/hello
    container_name: nginx2
    labels:
      # Additional target with explicit hostname and port
      - pangolin.proxy-resources.nginx.targets[1].method=http
      - pangolin.proxy-resources.nginx.targets[1].hostname=nginx2
      - pangolin.proxy-resources.nginx.targets[1].port=80

networks:
  default:
    name: pangolin_default

Docker Labels Considerations

  • Automatic Discovery: When hostname and internal port are not defined, Pangolin auto-detects from container configuration
  • Site Assignment: If no site is specified, resource is assigned to the discovering Newt site
  • Configuration Merging: Configuration across containers is merged to form complete resource definitions

Configuration Properties Reference

Proxy Resources Properties

PropertyTypeRequiredDescriptionConstraints
namestringConditionalHuman-readable nameRequired unless targets-only
protocolstringConditionalProtocol type (http, tcp, udp)Required unless targets-only
full-domainstringHTTP onlyFull domain nameRequired for HTTP, must be unique
proxy-portnumberTCP/UDP onlyPort for raw TCP/UDPRequired for TCP/UDP, 1-65535, must be unique
sslbooleanNoEnable SSL/TLS-
enabledbooleanNoWhether resource is enabledDefaults to true
host-headerstringNoCustom Host header-
tls-server-namestringNoSNI name for TLS-
headersarrayNoCustom headersEach requires name and value (min 1 char)
rulesarrayNoAccess control rulesSee Rules section
authobjectHTTP onlyAuthentication configSee Authentication section
targetsarrayYesTarget endpointsSee Targets section

Target Configuration Properties

PropertyTypeRequiredDescriptionConstraints
sitestringNoSite identifier-
hostnamestringYesTarget hostname or IP-
portnumberYesTarget port1-65535
methodstringHTTP onlyProtocol method (http, https, h2c)Required for HTTP
enabledbooleanNoWhether target is enabledDefaults to true
internal-portnumberNoInternal port mapping1-65535
pathstringHTTP onlyPath prefix, exact, or regex-
path-matchstringHTTP onlyPath matching type (prefix, exact, regex)-

Authentication Properties

Not allowed on TCP/UDP resources.

PropertyTypeRequiredDescriptionConstraints
pincodenumberNo6-digit PINMust be exactly 6 digits
passwordstringNoPassword for access-
basic-authobjectNoBasic auth configRequires user and password
sso-enabledbooleanNoEnable SSODefaults to false
sso-rolesarrayNoAllowed SSO rolesCannot include "Admin" role
sso-usersarrayNoAllowed SSO user emailsMust be valid emails
whitelist-usersarrayNoWhitelisted user emailsMust be valid emails

Rules Configuration Properties

PropertyTypeRequiredDescriptionConstraints
actionstringYesRule action (allow, deny, pass)-
matchstringYesMatch type (cidr, path, ip, country)-
valuestringYesValue to matchFormat depends on match type

Client Resources Properties

PropertyTypeRequiredDescriptionConstraints
namestringYesHuman-readable name2-100 characters
protocolstringYesProtocol type (tcp, udp)-
proxy-portnumberYesPort accessible to clients1-65535, must be unique
hostnamestringYesTarget hostname or IP1-255 characters
internal-portnumberYesPort on target system1-65535
sitestringNoSite identifier2-100 characters
enabledbooleanNoWhether resource is enabledDefaults to true

Validation Rules and Constraints

Resource-Level Validations

  1. Targets-Only Resources: A resource can contain only targets field, making name and protocol optional
  2. Protocol-Specific Requirements:
    • HTTP Protocol: Must have full-domain and all targets must have method field
    • TCP/UDP Protocol: Must have proxy-port and targets must NOT have method field
    • TCP/UDP Protocol: Cannot have auth configuration
  3. Port Uniqueness:
    • proxy-port values must be unique within proxy-resources
    • proxy-port values must be unique within client-resources
    • Cross-validation between proxy and client resources is not enforced
  4. Domain Uniqueness: full-domain values must be unique across all proxy resources
  5. Target Method Requirements: When protocol is http, all non-null targets must specify a method

Common Validation Errors

"Admin role cannot be included in sso-roles"

The Admin role is reserved and cannot be included in the sso-roles array.

Solution: Remove "Admin" from the sso-roles array.

"Duplicate 'full-domain' values found"

Each full-domain must be unique across all proxy resources.

Solution: Use different subdomains or paths for multiple resources.

"Duplicate 'proxy-port' values found"

Port numbers in proxy-port must be unique within their resource type.

Solution: Assign unique port numbers within proxy-resources and client-resources separately.

"When protocol is 'http', all targets must have a 'method' field"

All targets in HTTP proxy resources must specify the connection method.

Solution: Add method: http, method: https, or method: h2c to all targets.

"When protocol is 'tcp' or 'udp', targets must not have a 'method' field"

TCP and UDP targets should not include the method field.

Solution: Remove the method field from TCP/UDP resource targets.

"When protocol is 'tcp' or 'udp', 'auth' must not be provided"

Authentication is only supported for HTTP resources.

Solution: Remove the auth section from TCP/UDP resources.

"Resource must either be targets-only or have both 'name' and 'protocol' fields"

Resources must be either targets-only or complete resource definitions.

Solution: Either provide only targets field, or include both name and protocol fields.

Workflow for Generating Blueprints

When a user requests a Pangolin Newt blueprint configuration:

  1. Gather Requirements:

    • Resource type (proxy or client)
    • Protocol (HTTP, TCP, UDP)
    • Domain or port requirements
    • Target endpoints (hostname, port, site)
    • Authentication needs (if HTTP)
    • Access control rules (if any)
    • Format preference (YAML or Docker Labels)
  2. Select Format:

    • Use YAML for standalone configurations or API deployment
    • Use Docker Labels for containerized applications
  3. Validate Configuration:

    • Ensure protocol-specific requirements are met
    • Check for unique full-domain (HTTP) or proxy-port (TCP/UDP)
    • Verify authentication is only on HTTP resources
    • Confirm all HTTP targets have method field
    • Ensure TCP/UDP targets don't have method field
  4. Generate Configuration:

    • Create well-structured YAML or Docker Compose file
    • Include helpful comments explaining each section
    • Follow naming conventions (kebab-case for resource IDs)
  5. Provide Usage Instructions:

    • Explain how to apply the configuration (Newt CLI or API)
    • Document any environment variables needed
    • Include validation commands if applicable

Best Practices

  1. Resource IDs: Use descriptive, kebab-case identifiers (e.g., web-app-prod, database-backup)
  2. Target Organization: Group related targets under the same resource ID
  3. Security First: Enable authentication for sensitive HTTP resources
  4. Port Management: Document port assignments to avoid conflicts
  5. Site Assignment: Explicitly specify site for multi-site deployments
  6. Path Matching: Use prefix for broad matches, exact for specific endpoints
  7. Headers: Add custom headers for backend requirements (e.g., X-Forwarded-* headers)
  8. Rules: Order rules from most specific to least specific
  9. Validation: Always validate configurations before deployment
  10. Documentation: Include comments in YAML or Docker Compose files explaining non-obvious choices

Resources

Example Use Cases

Use Case 1: Simple Web Application

Requirements: Expose a web app running on localhost:8080 via HTTPS at app.example.com

yaml
proxy-resources:
  web-app:
    name: Web Application
    protocol: http
    full-domain: app.example.com
    targets:
      - hostname: localhost
        port: 8080
        method: https

Use Case 2: TCP Database Access

Requirements: Expose PostgreSQL database on port 5432

yaml
proxy-resources:
  postgres-db:
    name: PostgreSQL Database
    protocol: tcp
    proxy-port: 5432
    targets:
      - hostname: localhost
        port: 5432

Use Case 3: Multi-Target Load Balanced HTTP Service

Requirements: Multiple backend servers for the same domain

yaml
proxy-resources:
  api-service:
    name: API Service
    protocol: http
    full-domain: api.example.com
    targets:
      - site: site-01
        hostname: backend-01
        port: 8080
        method: http
      - site: site-02
        hostname: backend-02
        port: 8080
        method: http

Use Case 4: Secured Resource with SSO

Requirements: Web app with SSO authentication

yaml
proxy-resources:
  secure-app:
    name: Secure Application
    protocol: http
    full-domain: secure.example.com
    auth:
      sso-enabled: true
      sso-roles:
        - Member
        - Developer
      sso-users:
        - admin@example.com
    targets:
      - hostname: localhost
        port: 3000
        method: https

Communication Style

When generating blueprints:

  • Ask clarifying questions if requirements are unclear
  • Explain validation errors in plain language
  • Provide complete, working examples
  • Include comments for complex configurations
  • Suggest security best practices proactively
  • Offer both YAML and Docker Labels formats when appropriate

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Newt Blueprint Generator?

Generate and validate Pangolin Newt blueprint configurations in YAML or Docker Labels format. Use when creating Pangolin resource configurations, proxy resources, client resources, authentication settings, or Docker Compose blueprints.

Навіщо використовувати Newt Blueprint Generator у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Newt Blueprint Generator — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Newt Blueprint Generator у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/rknall/claude-skills/tree/main/newt-blueprint-generator. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Newt Blueprint Generator?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Newt Blueprint Generator?

Зі скількома забажаєте. У TypingMind ви можете використовувати Newt Blueprint Generator із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Newt Blueprint Generator?

На GitHub цю навичку публікує rknall. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип openclaw

Openclaw Testing

openclaw
ОрганізаціяПопулярне

Choose proportional OpenClaw tests and checks, diagnose failures, and route environment-sensitive or release proof to its owner.

82.2K
391K
Файлів: 2
Відкрити
Логотип mattpocock

Wizard

mattpocock
СпільнотаПопулярне

Створює інтерактивний майстер у bash, який проводить людину через кроки, доступні лише їй. Використовуйте його для підготовки інфраструктури, налаштування облікових даних або секретів CI, роботи з незнайомою…

22.3K
264.4K
Файлів: 2
Відкрити
Логотип affaan-m

Deployment Patterns

affaan-m
СпільнотаПопулярне

Процеси розгортання, шаблони конвеєрів CI/CD, контейнеризація Docker, перевірки працездатності, стратегії відкату та контрольні списки готовності вебзастосунків до промислового…

39.1K
261.1K
Інструкції
Відкрити
Логотип affaan-m

Docker Patterns

affaan-m
СпільнотаПопулярне

Шаблони Docker і Docker Compose для локальної розробки, безпеки контейнерів, мережевої взаємодії, стратегій роботи з томами та оркестрації кількох сервісів.

39.1K
261.1K
Інструкції
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇