OpenParable
Skip to content
← Back to skills

Snap YAML Generator

Documents
snap-yaml-generator

Snap YAML Generator is an Agent Skill for documents published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Generate snapcraft.yaml with confinement settings for Ubuntu Snap packages

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/desktop-development/skills/snap-yaml-generator/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/snap-yaml-generator, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

snap-yaml-generator

Generate snapcraft.yaml configuration for Ubuntu Snap packages with proper confinement and interfaces.

Capabilities

  • Generate snapcraft.yaml
  • Configure confinement levels
  • Set up interfaces/plugs
  • Configure parts and build
  • Set up desktop integration
  • Configure auto-refresh

Input Schema

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "snapName": { "type": "string" },
    "confinement": { "enum": ["strict", "classic", "devmode"] },
    "interfaces": { "type": "array" }
  },
  "required": ["projectPath", "snapName"]
}

snapcraft.yaml Example

name: myapp
version: '1.0.0'
summary: My Application
description: |
  A longer description of my application.

base: core22
confinement: strict
grade: stable

apps:
  myapp:
    command: bin/myapp
    desktop: share/applications/myapp.desktop
    plugs:
      - desktop
      - desktop-legacy
      - home
      - network
      - x11
      - wayland

parts:
  myapp:
    plugin: dump
    source: .
    stage-packages:
      - libgtk-3-0

Build Commands

snapcraft
sudo snap install myapp_1.0.0_amd64.snap --dangerous

Related Skills

  • flatpak-manifest-generator
  • deb-package-builder