Logo van Init Deps Install

Init Deps Install

Community
NatsuFox
init-deps-install

Wordt automatisch gestart wanneer Tapestry voor het eerst in een nieuwe omgeving wordt geopend of wanneer afhankelijkheden ontbreken. Detecteert de omgeving en installeert de afhankelijkheden van Tapestry op een slimme manier, na bevestiging door de gebruiker.

Add to TypingMind

Overzicht

UitgeverNatsuFox
RepositoryTapestry
Skillnaaminit-deps-install
Sterren
64
Forks
5
Meegeleverde bestanden
8
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 8

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door NatsuFox op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Init Deps Install in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/NatsuFox/Tapestry/tree/main/skills/tapestry/init-deps-install
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NatsuFox/Tapestry.git /tmp/Tapestry
mkdir -p .claude/skills
cp -r /tmp/Tapestry/skills/tapestry/init-deps-install .claude/skills/init-deps-install
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Init Deps Install in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Init Deps Install automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Init Deps Install niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

📦 Tapestry Init Deps Install

Automatic Dependency Installation with Environment Detection

This skill is automatically triggered when Tapestry is first launched on a new environment or when dependencies are missing. It detects the user's Python environment (venv, conda, system Python, etc.) and provides a comprehensive installation plan for all project dependencies, including both Python packages and system-level tools.

When This Skill is Triggered

This skill is automatically invoked when:

  • Tapestry is first launched on a new environment (one-time auto-trigger)
  • Required dependencies are missing or cannot be imported
  • The user explicitly asks to "install dependencies" or "set up the project"
  • After creating a new project that requires dependencies

Important: The automatic trigger only occurs the first time Tapestry runs in a new environment. After successful initialization, the skill will not auto-trigger on subsequent runs to avoid wasting tokens. Manual invocation is always available if needed.

How This Skill Works

  1. Configuration Setup: Checks for user configuration and creates it if missing:

    • Detects if tapestry.config.json exists
    • If not, copies from tapestry.config.example.json
    • Determines the real project root path
    • Updates paths.project_root in the config with the actual path
  2. Environment Detection: Analyzes the current environment to determine:

    • Python version and location
    • Virtual environment status (venv, virtualenv, conda)
    • Package manager availability (pip, conda, poetry, uv)
    • Existing installed packages
  3. Dependency Analysis: Scans for dependency files:

    • pyproject.toml (preferred)
    • requirements.txt
    • setup.py
    • environment.yml (conda)
  4. Plan Generation: Creates a comprehensive installation plan including:

    • Configuration file setup (if needed)
    • Python package installation commands
    • System-level dependencies (e.g., playwright install chromium)
    • Optional dependencies and recommendations
    • Environment-specific considerations
  5. User Confirmation: Presents the plan and asks for approval before executing

  6. Installation: Executes the approved plan and reports results

Usage

This skill is automatically triggered when dependencies are missing. It can also be manually invoked:

bash
# Manually trigger from the project root
/init-deps-install

# Or specify a project path
/init-deps-install /path/to/project

Implementation

When this skill is invoked:

  1. Check and setup configuration if needed
  2. Detect the environment by running the detection script
  3. Analyze dependencies from project files
  4. Generate an installation plan with clear steps
  5. Present the plan to the user with AskUserQuestion
  6. Execute approved steps and report results

Step 0: Configuration Setup

Before installing dependencies, check if this is the first run:

bash
# Check if already initialized
python init-deps-install/_scripts/check_initialized.py
# Exit code 0 = already initialized, 1 = needs initialization

# If not initialized, setup configuration
python init-deps-install/_scripts/setup_config.py [project-root]

The setup script will:

  1. Check if tapestry.config.json exists
  2. If not, copy from tapestry.config.example.json
  3. Determine the project root path (argument or CWD)
  4. Update paths.project_root in the config

Project Root Detection:

  • If invoked with an argument, use that path as project root
  • Otherwise, use the current working directory
  • Convert to absolute path
  • Update the paths.project_root field in tapestry.config.json

Example Output:

json
{
  "config_existed": false,
  "config_path": "/path/to/skills/tapestry/config/tapestry.config.json",
  "project_root": "/home/user/my-tapestry-project",
  "created": true,
  "updated": true
}

Initialization Marker: After successful setup and installation, create a marker file:

bash
# Create .tapestry_initialized marker
python init-deps-install/_scripts/mark_initialized.py

This marker file indicates that Tapestry has been successfully initialized and prevents the skill from auto-triggering on future runs, saving tokens.

Step 1: Environment Detection

Run the environment detection script:

bash
python init-deps-install/_scripts/detect_env.py

This outputs JSON with:

  • python_version: Python version string
  • python_path: Path to Python executable
  • env_type: "venv", "conda", "system", or "unknown"
  • env_name: Name of the environment (if applicable)
  • env_path: Path to the environment (if applicable)
  • package_manager: "pip", "conda", "poetry", "uv", or "pip" (default)
  • installed_packages: List of currently installed packages

Step 2: Dependency Analysis

Read and parse dependency files in order of preference:

  1. pyproject.toml - Parse [project.dependencies] and [project.optional-dependencies]
  2. requirements.txt - Parse line by line
  3. setup.py - Look for install_requires

Identify:

  • Core dependencies (required)
  • Optional dependencies (browser support, dev tools, etc.)
  • Post-install commands (e.g., playwright install chromium)

Step 3: Generate Installation Plan

Create a structured plan with:

Environment Summary:

  • Current Python version and path
  • Environment type and name
  • Package manager to use

Installation Steps:

  1. Core dependencies installation command
  2. Optional dependencies (with recommendations)
  3. Post-install commands (system-level tools)
  4. Verification steps

Example Plan:

Configuration:
✓ Created tapestry.config.json from example
✓ Set project_root to: /home/user/my-project

Environment: Python 3.11.5 in conda environment 'myenv'
Package Manager: conda (with pip fallback)

Installation Steps:
1. Install core dependencies:
   conda install httpx pydantic selectolax readability-lxml chardet

2. Install browser support (recommended for JavaScript-heavy sites):
   pip install playwright>=1.40.0
   playwright install chromium

3. [Optional] Install development tools:
   pip install pytest pytest-asyncio pytest-cov black ruff mypy

Step 4: User Confirmation

Use AskUserQuestion to present the plan:

json
{
  "questions": [{
    "question": "I've detected your environment and prepared an installation plan. Would you like to proceed?",
    "header": "Install",
    "multiSelect": false,
    "options": [
      {
        "label": "Install all (recommended)",
        "description": "Install core dependencies, browser support, and post-install tools"
      },
      {
        "label": "Core only",
        "description": "Install only required dependencies, skip optional packages"
      },
      {
        "label": "Custom selection",
        "description": "Let me choose which components to install"
      }
    ]
  }]
}

If user selects "Custom selection", present a second multi-select question with individual components.

Step 5: Execute Installation

Based on user selection, execute the appropriate commands:

bash
# Example for pip in venv
pip install -e .  # If pyproject.toml exists
# OR
pip install -r requirements.txt

# Post-install commands
playwright install chromium

Monitor output and report:

  • ✅ Successfully installed packages
  • ⚠️ Warnings or issues
  • ❌ Failed installations with error messages

Step 6: Verification

After installation, verify:

bash
python init-deps-install/_scripts/verify_install.py

This checks:

  • All required packages are importable
  • Versions meet requirements
  • System tools are available (e.g., chromium for playwright)

Report verification results to the user.

Error Handling

Common issues and solutions:

Issue: No package manager detected Solution: Recommend installing pip or conda

Issue: Permission denied Solution: Suggest using virtual environment or --user flag

Issue: Conflicting dependencies Solution: Show conflict details and suggest resolution strategies

Issue: Network errors Solution: Suggest checking internet connection or using mirrors

Important Notes

  • Never install without confirmation: Always present the plan first
  • Respect user environment: Don't modify system Python without explicit permission
  • Handle failures gracefully: If one package fails, continue with others and report at the end
  • Provide context: Explain why certain dependencies are needed
  • Support multiple package managers: Detect and use the appropriate tool for the environment

Directory Structure

skills/tapestry/init-deps-install/
├── SKILL.md                    # This file
├── README.md                   # Developer documentation
├── _scripts/
│   ├── check_initialized.py   # Check if Tapestry is initialized
│   ├── setup_config.py        # Configuration setup from example
│   ├── mark_initialized.py    # Create initialization marker
│   ├── detect_env.py          # Environment detection
│   ├── parse_deps.py          # Dependency parsing utilities
│   ├── verify_install.py      # Post-install verification
│   └── install_deps.py        # Installation orchestrator
└── _specs/
    └── env_detection.md       # Environment detection specification

Example Workflows

Workflow 1: Fresh Project Setup

User: "Set up this project"

Actions:
1. Check for tapestry.config.json, create from example if missing
2. Detect project root and update config
3. Detect environment (conda with Python 3.11)
4. Find pyproject.toml with dependencies
5. Generate plan:
   - Configuration setup
   - pip install -e .
   - playwright install chromium
6. Ask user for confirmation
7. Execute approved steps
8. Verify installation
9. Create .tapestry_initialized marker
10. Report: "✅ Installed 8 packages successfully. Project ready!"

Workflow 2: Missing Dependencies

User: "Install the missing dependencies"

Actions:
1. Detect environment (venv with Python 3.10)
2. Compare installed vs required packages
3. Generate plan for missing packages only
4. Ask user for confirmation
5. Execute: pip install <missing-packages>
6. Verify installation
7. Report: "✅ Installed 3 missing packages"

Workflow 3: System Python (Risky)

User: "Install dependencies"

Actions:
1. Detect environment (system Python, no venv)
2. Generate plan with WARNING
3. Ask user: "⚠️ You're using system Python. Recommend creating a virtual environment first. Proceed anyway?"
4. If user confirms, install with --user flag
5. Report results with reminder to use venv

Key Principle: Be transparent about what will be installed and why. Never surprise the user with unexpected system modifications.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Init Deps Install?

Wordt automatisch gestart wanneer Tapestry voor het eerst in een nieuwe omgeving wordt geopend of wanneer afhankelijkheden ontbreken. Detecteert de omgeving en installeert de afhankelijkheden van Tapestry op een slimme manier, na bevestiging door de gebruiker.

Waarom Init Deps Install gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Init Deps Install bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Init Deps Install in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/NatsuFox/Tapestry/tree/main/skills/tapestry/init-deps-install. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Init Deps Install gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Init Deps Install gebruiken?

Zoveel als je wilt. Je kunt Init Deps Install gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Init Deps Install gratis?

Ja. Deze skill is door NatsuFox op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇