new-block

Read docs/platform/block-sdk-guide.md first for the full guide.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "new-block" with this command: npx skills add significant-gravitas/autogpt/significant-gravitas-autogpt-new-block

New Block Creation

Read docs/platform/block-sdk-guide.md first for the full guide.

Steps

  • Provider config (if external service): create _config.py with ProviderBuilder

  • Block file in backend/blocks/ (from autogpt_platform/backend/ ):

  • Generate a UUID once with uuid.uuid4() , then hard-code that string as id (IDs must be stable across imports)

  • Input(BlockSchema) and Output(BlockSchema) classes

  • async def run that yield s output fields

  • Files: use store_media_file() with "for_block_output" for outputs

  • Test: poetry run pytest 'backend/blocks/test/test_block.py::test_available_blocks[MyBlock]' -xvs

  • Format: poetry run format

Rules

  • Analyze interfaces: do inputs/outputs connect well with other blocks in a graph?

  • Use top-level imports, avoid duck typing

  • Always use for_block_output for block outputs

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

vercel-react-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

backend-check

No summary provided by upstream source.

Repository SourceNeeds Review
General

worktree-setup

No summary provided by upstream source.

Repository SourceNeeds Review
General

frontend-check

No summary provided by upstream source.

Repository SourceNeeds Review