opensquad

repository·master·Indexed 24 days ago

https://github.com/renatoasse/opensquad

A multi-agent orchestration framework (v0.1.15) for creating specialized teams of AI agents directly from an IDE. It automates complex workflows like content production, data analysis, and research using natural language descriptions and human-in-the-loop checkpoints. Features include an Architect agent for squad design, a skill catalog for extending capabilities (e.g., Apify, Canva, Resend), and a Virtual Office 2D dashboard for real-time monitoring.

Tokens
162.9K
Snippets
216
Records
662
Agent score
84%

What's inside opensquad

  1. Use the image-fetcher skill for visual asset acquisition

    master

    The image-fetcher skill is a hybrid tool used to acquire visual assets for content creation. It supports three primary acquisition modes:

    1. Web Image Search: Uses the native web_search tool to find images by keyword. You should evaluate the results and download the best match.
    2. Live Screenshot: Uses the Playwright MCP to navigate to a URL, set viewport dimensions, and capture screenshots.
    3. Asset Organization: Saves acquired assets into the squad's reference/ or output/ folder using descriptive filenames.

    Use this skill when you need to gather images, screenshots of live websites, or organize user-provided files into a structured reference folder.

  2. Overview of the Template Designer skill

    master

    The Template Designer is a self-contained skill designed to provide a local visual companion for interactive image template selection during squad creation. It operates as a pure Node.js HTTP server (using only http, fs, and path modules) that serves HTML templates to a browser.

    Workflow:

    1. The agent adapts three base models to the specific squad context.
    2. The user reviews these models via the visual interface.
    3. The agent iterates based on user feedback.
    4. Once approved, the template is saved as an HTML reference and structured style rules into the squad's pipeline data.
  3. Overview of the Phaser Dashboard Migration

    master

    The Phaser Dashboard Migration replaces the existing PixiJS procedural rendering dashboard with a Phaser 3 implementation. This migration moves from an isometric system to a top-down ¾ perspective using Y-sort depth. The core architecture maintains the existing React shell, while a new PhaserGame.tsx component is introduced to wrap the Phaser 3 canvas responsible for rendering the office scene. The scene utilizes pre-made PNG sprites for all elements, including desks, avatars, furniture, and floor/walls.

    Tech Stack:

    • Phaser 3
    • React 19
    • Zustand
    • Vite
    • TypeScript
  4. What is the Formats System and how does it work?

    master

    The Formats System is an abstraction used to inject platform-specific rules, structures, and constraints into an agent's execution context. Instead of agents having generic instructions, they receive a specific format context (e.g., instagram-feed) that defines how they should behave for a particular content type on a particular platform.

    Context Injection Order

    When a pipeline step includes a format field, the system assembles the agent's instructions in this specific order:

    1. Base Agent: The core identity and instructions of the agent.
    2. Squad Overlay: Any .custom.md files specific to the squad.
    3. Format: The content from the selected format file (e.g., _opensquad/core/formats/instagram-feed.md).
    4. Skill Instructions: The specific instructions for the skill being executed.

    Agent Roles in Formats

    Different agents interpret the format context differently based on their role:

    • Copywriter: Writes content that adheres to the format's constraints and guidelines.
    • Reviewer: Validates the output against the format's rules and quality criteria.
    • Strategist: Plans content based on the platform dynamics described in the format.
    • Data Analyst: Interprets metrics specific to that format/platform.
  5. Overview of the Sherlock Content Investigator

    master

    The Sherlock Content Investigator is a subagent designed to extract and analyze real content from social media profiles during the squad creation process. It operates during a new 'Phase 1.5 (Investigation Setup)' of the create-squad workflow.

    Sherlock runs in parallel for each profile URL provided, using Playwright MCP for browser navigation and yt-dlp combined with openai-whisper for video transcription. The goal is to produce raw content dumps and pattern analyses that enrich the Architect's squad design.

  6. Overview of Sherlock Content Investigator

    master
    Sherlock is a content investigation feature for Opensquad designed to extract and analyze real content from social media profiles during the squad creation process. It operates during Phase 1.5 (Investigation Setup), acting as a bridge between Discovery and Research. Instead of relying on generic web research, Sherlock navigates to specific reference profiles to identify patterns that inform the design of the squad (e.g., tone of voice, structural patterns, and engagement metrics).
  7. Design a seamless loop for YouTube Shorts

    master

    To maximize replay signals, use one of these loop design techniques to connect the end of the video back to the beginning:

    • Narrative Connection: End with a statement that leads directly into the opening hook (e.g., end with "And that is exactly why..." and cut to the hook "Here is the trick...").
    • Visual Match Cuts: Ensure the last frame of the Short visually matches the first frame.
    • Question/Answer Loop: Pose a question at the end that the beginning of the Short answers.
    • Circular Storytelling: End the story at the same point it began, but with new context provided by the loop.
  8. Core principles for Strategy & Editorial Planning

    master

    When building or prompting a strategist agent, adhere to these core principles:

    • Audience-first strategy: Define specific demographics, psychographics, pain points, and consumption habits before defining content.
    • Differentiation over imitation: Use competitive awareness to find gaps rather than copying competitor formats or positioning.
    • Measurable goals with specific KPIs: Every objective must have a measurable Key Performance Indicator (e.g., "Increase branded search volume by 15% within 90 days" instead of "Increase brand awareness").
    • Iterative refinement cycle: Include a review cadence (plan, execute, measure, adjust) with defined checkpoints.
    • Content pillar alignment: Map all content to 3-5 thematic territories (content pillars) to prevent brand erosion.
    • Competitive awareness without obsession: Monitor macro trends and market shifts rather than reacting to individual competitor posts.
    • Resource-realistic planning: Ensure strategies are achievable within team size, budget, and tool constraints. Include effort estimates.
    • Platform-native thinking: Adapt format, length, tone, and posting time for each specific platform's logic and audience behavior.
  9. How agents and skills are distributed in Opensquad

    master

    Opensquad uses a tiered distribution model for its core components:

    • Agents (agents/ directory): A predefined catalog of agents distributed via npm. They are automatically installed during npx opensquad init and any new agents are added during npx opensquad update. To prevent loss of user customizations, existing agent files are protected from being overwritten during updates. Users can also install them manually using npx opensquad agents install.

    • Skills (skills/ directory): A bundled catalog of skills distributed via npm.

      • Non-MCP skills: Automatically installed during npx opensquad init.
      • MCP/Hybrid skills: These require user configuration (like API keys or environment variables) and are offered via an interactive prompt during npx opensquad init.
      • Users can also install skills manually using npx opensquad skills install.
  10. Implement Twitter/X content formats and structures

    master

    To generate high-performing Twitter content, use these specific structural patterns:

    Single Tweet Formats

    • Hot take: Contrarian opinions (e.g., "Most people think X. The truth is Y.").
    • Question: Relatable questions to invite replies.
    • Listicle: Numbered lists with one item per line.
    • Quote + take: A quote followed by 1-2 sentences of unique perspective.
    • Data point: A surprising statistic followed by an interpretation.
    • Before/After: Contrasting two states or perspectives.

    Quote Tweet Structure

    1. Highlight the key point from the original tweet.
    2. Add a unique angle, experience, or data.
    3. Constraint: Keep commentary under 200 characters to preserve context.

    Tweet Anatomy

    • Opening words: The first 5-8 words must front-load value or tension.
    • Body: Focus on exactly one idea, developed in 1-3 sentences.
    • Closer: End with a question, bold statement, or implication to invite engagement.