@inneranimalmedia/agentsam-sdk 2.6.13 → 2.6.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTSAM.md +20 -1
- package/LICENSE +97 -8
- package/LICENSING.md +30 -0
- package/README.md +48 -7
- package/apps/agentsam-copro-studio/agentsam.app.json +125 -0
- package/apps/cad-creator/agentsam.app.json +230 -0
- package/apps/cad-creator/shared/cad/package.json +1 -1
- package/apps/cad-creator/shared/cad/src/index.ts +3 -0
- package/apps/cad-creator/shared/cad/src/lighting.test.ts +32 -0
- package/apps/cad-creator/shared/cad/src/lighting.ts +79 -0
- package/apps/cad-creator/shared/cad/src/native-plan.ts +16 -0
- package/apps/cad-creator/shared/cad/src/types.ts +154 -3
- package/apps/design-canvas/agentsam.app.json +144 -0
- package/apps/ecommerce-cms-agentsam/agentsam.app.json +658 -0
- package/apps/local-studio/agentsam.app.json +271 -0
- package/apps/samsketch/agentsam.app.json +136 -0
- package/contracts/source-types.v2.json +9466 -0
- package/contracts/source-types.v2.schema.json +571 -0
- package/docs/2026-11-12-chat-work-whitelabel-scaffold.md +42 -0
- package/docs/CAPABILITIES.md +56 -0
- package/docs/DATABASE_EDITOR_REMASTER_ACCEPTANCE_20261103.md +41 -0
- package/docs/DOCKERIZE.md +2 -2
- package/docs/PRODUCT_LIFECYCLE.md +4 -2
- package/docs/REPOSITORY_KNOWLEDGE.md +24 -0
- package/docs/REPO_FILE_MAP.txt +1 -1
- package/docs/THEME_REFINERY.md +4 -117
- package/docs/acceptance/AGENTSAM_DOCS_CMS_2026-11-10.md +62 -0
- package/docs/acceptance/AGENTSAM_SDK_LOCAL_LAUNCH_2026-11-06.md +42 -0
- package/docs/acceptance/AGENTSAM_SDK_PUBLIC_CMS_2026-11-10.md +35 -0
- package/docs/acceptance/AGENTSAM_WIDGET_UTILITIES_2026-11-06.md +34 -0
- package/docs/acceptance/CREATIVE_DEPARTMENT_BATCH1_2026-11-01.md +47 -0
- package/docs/acceptance/FINANCE_SETTINGS_CMS_WIP_2026-11-07.md +42 -0
- package/docs/adr/ADR-0009-widget-platform-authority.md +130 -0
- package/docs/adr/ADR-0010-widget-contributions-registry-persistence.md +325 -0
- package/docs/adr/README.md +5 -0
- package/docs/agent-briefs/2026-10-28-agent1-ui-product-foundation.md +132 -0
- package/docs/agent-briefs/2026-10-28-agent2-cms-audit.md +144 -0
- package/docs/agent-briefs/2026-10-28-sites-next-wave-acceptance.md +67 -0
- package/docs/architecture/ACP_D1_HOSTING.md +67 -0
- package/docs/architecture/AGENTSAM-PRODUCT-CATALOG-RELEASES-20261028.md +82 -0
- package/docs/architecture/AGENTSAM_ACCOUNT_FIRST_METRICS_V2_2026-10-28.md +38 -0
- package/docs/architecture/AGENTSAM_APPLICATION_CONTRACT.md +42 -1
- package/docs/architecture/AGENTSAM_APPLICATION_INVENTORY.md +135 -0
- package/docs/architecture/AGENTSAM_DISTRIBUTION_OWNERSHIP.md +1 -1
- package/docs/architecture/AGENTSAM_GO_RUNTIME.md +1 -1
- package/docs/architecture/AGENTSAM_WORK_IDE_LANES_2026-10-28.md +51 -0
- package/docs/architecture/APP_PRODUCT_DATA_MODEL.md +121 -0
- package/docs/architecture/BRAND_WORKSPACE_V1.md +71 -0
- package/docs/architecture/CANONICAL_CAD_FORMAT_SPINE.md +79 -0
- package/docs/architecture/DESIGN_WORKSPACE_BOUNDARY.md +69 -0
- package/docs/architecture/ECOMMERCE_THEME_START_FLOW.md +31 -0
- package/docs/architecture/LIVE_AST_AND_CREATIVE_RESOURCE_GRAPH.md +129 -0
- package/docs/architecture/PLATFORM_R2_SOURCE_OF_TRUTH.md +134 -0
- package/docs/architecture/PRIMETECH_SCENE_V2_READINESS.md +89 -0
- package/docs/architecture/PROJECTS_DREAMHOUSE_METRICS_SPRINT_2026-10-28.md +34 -0
- package/docs/architecture/PYTHON_CAD_SERVICE_TRANSPORT.md +116 -0
- package/docs/architecture/SAM_KERNEL.md +8 -2
- package/docs/architecture/SCHEMA_AUTHORITIES.md +170 -0
- package/docs/architecture/app-module-plugin-classification.md +71 -0
- package/docs/architecture/brand-presentation-context-discovery-2026-11-01.md +41 -0
- package/docs/architecture/primetech/BARNDOMINIUM_BIM_BUILDOUT_RUNBOOK_20261123.md +139 -0
- package/docs/architecture/primetech/BARNDOMINIUM_SPACE_DELIVERY_20261123.md +58 -0
- package/docs/architecture/primetech/CAPABILITY_AND_ACCEPTANCE_MATRIX.md +176 -0
- package/docs/architecture/primetech/IMPLEMENTATION_WAVES.md +203 -0
- package/docs/architecture/primetech/PORTABLE_EDITOR_CONTRACTS.md +192 -0
- package/docs/architecture/primetech/README.md +65 -0
- package/docs/architecture/studio-templates-audit-2026-11-01.md +59 -0
- package/docs/architecture/universal-registry-recovery.md +62 -0
- package/docs/audits/2026-10-28-cms-platform-seam-baseline.md +86 -0
- package/docs/audits/2026-10-28-cms-v1-v2-side-by-side.md +53 -0
- package/docs/audits/2026-11-22-sdk-d1-registry-parity.md +116 -0
- package/docs/authoring/agentsam-sdk-docs-portal.json +175 -0
- package/docs/brand/BRAND_CAPABILITY_INVENTORY.md +160 -0
- package/docs/brand/ICONOGRAPHY-WIP-HANDOFF-20261022.md +36 -0
- package/docs/brand/ICONOGRAPHY_INTEGRATION_AUDIT_2026-10-28.md +39 -0
- package/docs/cad/FORMAT_SUPPORT.md +46 -0
- package/docs/cad/LIB_CAD_REMASTER_AUDIT.md +49 -0
- package/docs/engineering/CMS_DATA_AUTHORITY_2026-11-03.md +47 -0
- package/docs/engineering/LOCAL_STUDIO_CMS_INSTALL_2026-11-02.md +23 -0
- package/docs/evidence/COPRO_CREATIVE_V1_20261030.md +22 -0
- package/docs/evidence/media-library-20261031/README.md +39 -0
- package/docs/generated/SDK_CAPABILITY_INVENTORY.md +31 -32
- package/docs/handoffs/COPRO_CREATIVE_V1_AGENT2.md +69 -0
- package/docs/intake/product-capabilities.proposed.ts +6 -6
- package/docs/media/local-intake-r2-backup.md +47 -0
- package/docs/operations/CLOUDFLARE-QUEUE-OBSERVABILITY.md +64 -0
- package/docs/operations/WIP_RECONCILIATION_2026-11-02.md +89 -0
- package/docs/plans/AGENTSAM_MEDIA_LIBRARY_AGENT1_MAP_20261031.md +62 -0
- package/docs/plans/AGENTSAM_SDK_RELEASE_PROGRAM.md +145 -0
- package/docs/plans/LOCAL_STUDIO_DESKTOP_RELEASE_2026-09-29.md +5 -3
- package/docs/plans/TOMORROW-EXTENSIVE-TODO-2026-09-26.md +1 -1
- package/docs/plugins.md +54 -0
- package/docs/primetech/CREATIVE_ENGINEERING.md +125 -0
- package/docs/product/AGENTSAM_PRODUCT_EXPERIENCE_STANDARD.md +1 -1
- package/docs/product/PACKAGE-TAXONOMY.md +3 -12
- package/docs/reference/AGENTSAM-CLI-WORKFLOWS.md +1 -1
- package/docs/reference/AGENTSAM-REGISTRY.generated.md +41 -31
- package/docs/release/NPM-TRUSTED-PUBLISHING.md +13 -0
- package/docs/releases/INDEPENDENT_PACKAGE_PUBLISHING.md +30 -0
- package/docs/roadmaps/2026-10-28-product-platform-stabilization.md +149 -0
- package/docs/sam/opencv-media.md +63 -0
- package/docs/sprints/2026-11-14-companion-media-product-preview.md +42 -0
- package/docs/standards/DELIVERY_CLOSURE.md +9 -1
- package/docs/standards/DESKTOP_WEB_PARITY_ACCEPTANCE.md +42 -0
- package/docs/studio/oauth-ddl-media-completion-2026-11-01.md +22 -0
- package/docs/studio/pwa-build-meta-agentsam-note.md +9 -0
- package/examples/widget-consumer/package.json +12 -0
- package/examples/widget-consumer/src/smoke.mjs +18 -0
- package/migrations/d1/0001_agentsam_plugin_runtime.sql +0 -2
- package/migrations/d1/0021_agentsam_product_releases.sql +94 -0
- package/migrations/d1/0022_agentsam_plugin_registry.sql +182 -0
- package/migrations/d1/0023_agentsam_plugin_install_health.sql +33 -0
- package/migrations/d1/0024_user_oauth_tokens_account_spine.sql +61 -0
- package/migrations/d1/0025_meta_model_api_service.sql +7 -0
- package/migrations/d1/0026_identity_github_signin_product.sql +34 -0
- package/migrations/d1/0027_unified_digital_products_collections.sql +72 -0
- package/migrations/d1/0028_drop_unused_tool_handler_families.sql +4 -0
- package/migrations/d1/0029_agentsam_tools_account_plugin_key_unique.sql +26 -0
- package/migrations/d1/0030_cad_engine_plugins_contract_agnostic.sql +21 -0
- package/migrations/d1/0031_ops_trail_single_tool_call_source.sql +13 -0
- package/migrations/d1/0033_service_registry_model_discovery.sql +50 -0
- package/migrations/d1/20261123_skill_package_staging.sql +64 -0
- package/migrations/d1/20261123_universal_registry_stage.sql +58 -0
- package/migrations/d1/20261126_agentsam_tool_legacy_metadata_compact.sql +6 -0
- package/migrations/d1/20261126_agentsam_tools_archive_legacy_metadata.sql +20 -0
- package/migrations/d1/20261126_agentsam_tools_normalize_intent_tags.sql +49 -0
- package/migrations/d1/20261126_agentsam_tools_normalize_policy_health.sql +89 -0
- package/migrations/d1/20261126_agentsam_tools_remove_legacy_scope_keys.sql +29 -0
- package/migrations/d1/20261126_agentsam_tools_runtime_view_compat.sql +65 -0
- package/migrations/d1/README_PORTABLE_CONTROL_PLANE.md +2 -0
- package/migrations/d1/generated/20261123_portable_cli_seed.sql +97 -0
- package/migrations/d1/generated/20261123_source_skill_seed.sql +3881 -0
- package/migrations/runtime/0010_agentsam_notifications.sql +86 -0
- package/migrations/runtime/0011_agentsam_product_releases.sql +94 -0
- package/migrations/runtime/0012_agent_run_event_sequence.sql +27 -0
- package/native/agentsam-machine/cli/Cargo.toml +1 -1
- package/native/agentsam-machine/cli/LICENSE +110 -0
- package/native/agentsam-machine/core/Cargo.toml +1 -1
- package/native/agentsam-machine/core/LICENSE +110 -0
- package/native/agentsam-machine/core/src/lib.rs +3 -3
- package/package.json +120 -82
- package/packages/agentsam-3d-viewer/LICENSE +110 -0
- package/packages/agentsam-3d-viewer/README.md +63 -0
- package/packages/agentsam-3d-viewer/agentsam.package.json +63 -0
- package/packages/agentsam-3d-viewer/package.json +41 -0
- package/packages/agentsam-3d-viewer/src/atmosphere.js +90 -0
- package/packages/agentsam-3d-viewer/src/format.d.ts +3 -0
- package/packages/agentsam-3d-viewer/src/format.js +24 -0
- package/packages/agentsam-3d-viewer/src/gltf-loader.js +42 -0
- package/packages/agentsam-3d-viewer/src/index.d.ts +156 -0
- package/packages/agentsam-3d-viewer/src/index.js +318 -0
- package/packages/agentsam-3d-viewer/src/occt.d.ts +12 -0
- package/packages/agentsam-3d-viewer/src/occt.js +54 -0
- package/packages/agentsam-3d-viewer/src/pbr-materials.js +330 -0
- package/packages/agentsam-3d-viewer/src/procedural-material.js +96 -0
- package/packages/agentsam-3d-viewer/src/procedural-textures.js +334 -0
- package/packages/agentsam-3d-viewer/src/renderer-capabilities.js +12 -0
- package/packages/agentsam-3d-viewer/src/stroke-geometry.js +4 -0
- package/packages/agentsam-3d-viewer/src/studio-finishes.js +67 -0
- package/packages/agentsam-3d-viewer/test/atmosphere.test.mjs +17 -0
- package/packages/agentsam-3d-viewer/test/format.test.mjs +24 -0
- package/packages/agentsam-3d-viewer/test/gltf-loader.test.mjs +49 -0
- package/packages/agentsam-3d-viewer/test/occt.test.mjs +37 -0
- package/packages/agentsam-3d-viewer/test/pbr-mined-presets.test.mjs +44 -0
- package/packages/agentsam-3d-viewer/test/procedural-material.test.mjs +56 -0
- package/packages/agentsam-3d-viewer/test/renderer-capabilities.test.mjs +18 -0
- package/packages/agentsam-3d-viewer/test/studio-shared.test.mjs +23 -0
- package/packages/agentsam-3d-viewer/test/viewport.test.mjs +128 -0
- package/packages/agentsam-architectural-intelligence/README.md +8 -0
- package/packages/agentsam-architectural-intelligence/data/materials.json +9 -0
- package/packages/agentsam-architectural-intelligence/data/sources.json +15 -0
- package/packages/agentsam-architectural-intelligence/mcp/server.mjs +80 -0
- package/packages/agentsam-architectural-intelligence/package.json +23 -0
- package/packages/agentsam-architectural-intelligence/test/reference.test.mjs +30 -0
- package/packages/agentsam-architectural-intelligence/test/sam-integration.test.mjs +20 -0
- package/packages/agentsam-brand/README.md +6 -0
- package/packages/agentsam-brand/package.json +9 -5
- package/packages/agentsam-brand/src/cli/controller.js +28 -1
- package/packages/agentsam-brand/src/core/capabilities.js +108 -48
- package/packages/agentsam-brand/src/core/iconography/build.js +617 -0
- package/packages/agentsam-brand/src/core/iconography/render_clay.py +409 -0
- package/packages/agentsam-brand/src/core/preview.js +4 -0
- package/packages/agentsam-brand/src/core/processors/sharp.js +5 -3
- package/packages/agentsam-brand/src/extract.js +6 -1
- package/packages/agentsam-brand/src/index.js +3 -0
- package/packages/agentsam-brand/src/public.js +15 -1
- package/packages/agentsam-brand/src/scan.js +47 -0
- package/packages/agentsam-brand/src/workspace.d.ts +19 -0
- package/packages/agentsam-brand/src/workspace.js +166 -0
- package/packages/agentsam-cms/LICENSE +110 -0
- package/packages/agentsam-cms/README.md +82 -56
- package/packages/agentsam-cms/agentsam.package.json +23 -8
- package/packages/agentsam-cms/package.json +16 -4
- package/packages/agentsam-cms/src/account-context.js +135 -0
- package/packages/agentsam-cms/src/aliases.js +1 -1
- package/packages/agentsam-cms/src/application.js +252 -0
- package/packages/agentsam-cms/src/chat-storage.js +300 -0
- package/packages/agentsam-cms/src/contracts.js +121 -63
- package/packages/agentsam-cms/src/index.d.ts +84 -29
- package/packages/agentsam-cms/src/index.js +1 -0
- package/packages/agentsam-cms/src/machine.js +121 -119
- package/packages/agentsam-cms/src/node.d.ts +3 -7
- package/packages/agentsam-cms/src/node.js +8 -1
- package/packages/agentsam-cms/src/site-nav-defaults.js +16 -0
- package/packages/agentsam-cms/src/site-settings-contract.js +37 -0
- package/packages/agentsam-cms/src/studio-bridge-protocol.js +113 -0
- package/packages/agentsam-cms/test/application.test.mjs +134 -0
- package/packages/agentsam-cms/test/chat-storage.test.mjs +212 -0
- package/packages/agentsam-cms/test/standalone.test.mjs +75 -10
- package/packages/agentsam-cms/test/studio-bridge-protocol.test.mjs +26 -0
- package/packages/agentsam-cms/test/support/memory-repository.mjs +78 -0
- package/packages/agentsam-communications/README.md +52 -0
- package/packages/agentsam-communications/package.json +31 -0
- package/packages/agentsam-communications/src/adapters.js +78 -0
- package/packages/agentsam-communications/src/index.js +3 -0
- package/packages/agentsam-communications/src/outbox.js +56 -0
- package/packages/agentsam-communications/src/samspeaks-runtime.js +126 -0
- package/packages/agentsam-communications/src/service.js +126 -0
- package/packages/agentsam-communications/test/communications.test.mjs +188 -0
- package/packages/agentsam-contracts/README.md +90 -0
- package/packages/agentsam-contracts/agentsam.package.json +46 -12
- package/packages/agentsam-contracts/dist/agent.d.ts +6 -3
- package/packages/agentsam-contracts/dist/agent.js +20 -0
- package/packages/agentsam-contracts/dist/authority.d.ts +2 -1
- package/packages/agentsam-contracts/dist/authority.js +12 -0
- package/packages/agentsam-contracts/dist/bim-model.d.ts +95 -0
- package/packages/agentsam-contracts/dist/bim-model.js +57 -0
- package/packages/agentsam-contracts/dist/cad-source-formats.d.ts +55 -0
- package/packages/agentsam-contracts/dist/cad-source-formats.js +9617 -0
- package/packages/agentsam-contracts/dist/design-workspace-bridge.d.ts +20 -0
- package/packages/agentsam-contracts/dist/design-workspace-registry.d.ts +12 -0
- package/packages/agentsam-contracts/dist/design-workspace-registry.js +133 -0
- package/packages/agentsam-contracts/dist/design-workspace.d.ts +127 -0
- package/packages/agentsam-contracts/dist/design-workspace.js +64 -0
- package/packages/agentsam-contracts/dist/index.d.ts +13 -0
- package/packages/agentsam-contracts/dist/index.js +18076 -9
- package/packages/agentsam-contracts/dist/json-schema.d.ts +8 -0
- package/packages/agentsam-contracts/dist/json-schema.js +7787 -0
- package/packages/agentsam-contracts/dist/operations.d.ts +143 -0
- package/packages/agentsam-contracts/dist/operations.js +7907 -0
- package/packages/agentsam-contracts/dist/resource-ref.d.ts +21 -0
- package/packages/agentsam-contracts/dist/resource-ref.js +23 -0
- package/packages/agentsam-contracts/dist/resource-scope.d.ts +24 -0
- package/packages/agentsam-contracts/dist/resource-scope.js +25 -0
- package/packages/agentsam-contracts/dist/run.d.ts +91 -3
- package/packages/agentsam-contracts/dist/run.js +28 -0
- package/packages/agentsam-contracts/dist/scene-document.d.ts +32 -0
- package/packages/agentsam-contracts/dist/scene-document.js +30 -0
- package/packages/agentsam-contracts/dist/scene-format.d.ts +44 -0
- package/packages/agentsam-contracts/dist/scene-format.js +35 -0
- package/packages/agentsam-contracts/dist/source-types-registry.d.ts +9 -0
- package/packages/agentsam-contracts/dist/source-types-registry.js +9512 -0
- package/packages/agentsam-contracts/dist/source-types.d.ts +92 -0
- package/packages/agentsam-contracts/dist/source-types.js +13 -0
- package/packages/agentsam-contracts/dist/spawn-policy.d.ts +32 -0
- package/packages/agentsam-contracts/dist/spawn-policy.js +27 -0
- package/packages/agentsam-contracts/dist/tools.d.ts +14 -6
- package/packages/agentsam-contracts/dist/tools.js +7949 -0
- package/packages/agentsam-contracts/dist/widgets.d.ts +2 -0
- package/packages/agentsam-contracts/package.json +74 -5
- package/packages/agentsam-contracts/schemas/activity.v1.schema.json +142 -0
- package/packages/agentsam-contracts/schemas/agent-tool-definition.v1.schema.json +78 -0
- package/packages/agentsam-contracts/schemas/bim-model.v1.schema.json +76 -0
- package/packages/agentsam-contracts/schemas/resource-ref.v1.schema.json +18 -0
- package/packages/agentsam-contracts/schemas/run-receipt.v1.schema.json +411 -0
- package/packages/agentsam-contracts/schemas/run-start.v1.schema.json +40 -0
- package/packages/agentsam-contracts/schemas/run.v1.schema.json +243 -0
- package/packages/agentsam-contracts/schemas/sam-operation.v1.schema.json +167 -0
- package/packages/agentsam-contracts/schemas/sam-result.v1.schema.json +76 -0
- package/packages/agentsam-contracts/schemas/scene-document.v2.schema.json +212 -0
- package/packages/agentsam-contracts/schemas/scene-format.v1.schema.json +173 -0
- package/packages/agentsam-contracts/schemas/source-types.v2.json +9466 -0
- package/packages/agentsam-contracts/schemas/source-types.v2.schema.json +571 -0
- package/packages/agentsam-contracts/scripts/build.mjs +22 -5
- package/packages/agentsam-contracts/src/agent.ts +10 -18
- package/packages/agentsam-contracts/src/authority.ts +9 -7
- package/packages/agentsam-contracts/src/bim-model.ts +143 -0
- package/packages/agentsam-contracts/src/cad-source-formats.ts +195 -0
- package/packages/agentsam-contracts/src/design-workspace-bridge.ts +99 -0
- package/packages/agentsam-contracts/src/design-workspace-registry.ts +130 -0
- package/packages/agentsam-contracts/src/design-workspace.ts +265 -0
- package/packages/agentsam-contracts/src/index.ts +13 -0
- package/packages/agentsam-contracts/src/json-schema.ts +37 -0
- package/packages/agentsam-contracts/src/operations.ts +240 -0
- package/packages/agentsam-contracts/src/resource-ref.ts +36 -0
- package/packages/agentsam-contracts/src/resource-scope.ts +39 -0
- package/packages/agentsam-contracts/src/run.ts +93 -16
- package/packages/agentsam-contracts/src/scene-document.ts +58 -0
- package/packages/agentsam-contracts/src/scene-format.ts +91 -0
- package/packages/agentsam-contracts/src/source-types-registry.ts +65 -0
- package/packages/agentsam-contracts/src/source-types.ts +92 -0
- package/packages/agentsam-contracts/src/spawn-policy.ts +43 -0
- package/packages/agentsam-contracts/src/tools.ts +149 -26
- package/packages/agentsam-contracts/src/widgets.ts +2 -0
- package/packages/agentsam-contracts/test/bim-model.test.mjs +66 -0
- package/packages/agentsam-contracts/test/cad-source-formats.test.mjs +103 -0
- package/packages/agentsam-contracts/test/contracts.test.mjs +135 -3
- package/packages/agentsam-contracts/test/design-workspace.test.mjs +238 -0
- package/packages/agentsam-contracts/test/resource-ref.test.mjs +29 -0
- package/packages/agentsam-contracts/test/resource-scope.test.mjs +22 -0
- package/packages/agentsam-contracts/test/run-contract.test.mjs +44 -0
- package/packages/agentsam-contracts/test/scene-document.test.mjs +30 -0
- package/packages/agentsam-contracts/test/scene-format.test.mjs +40 -0
- package/packages/agentsam-contracts/test/source-types.test.mjs +60 -0
- package/packages/agentsam-contracts/test/spawn-policy.test.mjs +20 -0
- package/packages/agentsam-desktop-shell/scripts/app-discovery.mjs +36 -25
- package/packages/agentsam-errors/agentsam.package.json +1 -1
- package/packages/agentsam-errors/package.json +2 -2
- package/packages/agentsam-errors/protocol/agentsam.error.v2.schema.json +1 -1
- package/packages/agentsam-goalguru/agentsam.app.json +97 -0
- package/packages/agentsam-goap/LICENSE +110 -0
- package/packages/agentsam-goap/package.json +4 -4
- package/packages/agentsam-hooks/agentsam.package.json +1 -1
- package/packages/agentsam-hooks/package.json +2 -2
- package/packages/agentsam-hooks/schema/manifest.json +1 -1
- package/packages/agentsam-knowledge/LICENSE +110 -0
- package/packages/agentsam-knowledge/package.json +3 -3
- package/packages/agentsam-merch/LICENSE +110 -0
- package/packages/agentsam-merch/README.md +59 -39
- package/packages/agentsam-merch/agentsam.package.json +1 -1
- package/packages/agentsam-merch/package.json +18 -3
- package/packages/agentsam-merch/profiles/completeful/dtg-back-large.json +1 -1
- package/packages/agentsam-merch/profiles/completeful/laser-engraving.json +1 -1
- package/packages/agentsam-merch/profiles/generic/embroidery-digitization.json +1 -1
- package/packages/agentsam-merch/schemas/collection-candidate.schema.json +1 -1
- package/packages/agentsam-merch/schemas/manufacturing-profile.schema.json +1 -1
- package/packages/agentsam-merch/src/adapters-printify.js +66 -0
- package/packages/agentsam-merch/src/collection-planning.d.ts +46 -0
- package/packages/agentsam-merch/src/collection-planning.js +135 -0
- package/packages/agentsam-merch/src/collection-showcase.css +34 -0
- package/packages/agentsam-merch/src/collection-showcase.d.ts +2 -0
- package/packages/agentsam-merch/src/collection-showcase.js +62 -0
- package/packages/agentsam-merch/src/compatibility.js +18 -1
- package/packages/agentsam-merch/src/geometry.js +82 -0
- package/packages/agentsam-merch/src/index.d.ts +33 -0
- package/packages/agentsam-merch/src/index.js +2 -0
- package/packages/agentsam-merch/src/merch-hero.css +32 -0
- package/packages/agentsam-merch/src/merch-hero.d.ts +5 -0
- package/packages/agentsam-merch/src/merch-hero.js +123 -0
- package/packages/agentsam-merch/src/node/index.js +1 -0
- package/packages/agentsam-merch/src/node/vector.js +83 -0
- package/packages/agentsam-merch/test/collection-planning.test.mjs +17 -0
- package/packages/agentsam-merch/test/collection-showcase.test.mjs +12 -0
- package/packages/agentsam-merch/test/geometry.test.mjs +32 -0
- package/packages/agentsam-merch/test/printify-adapter.test.mjs +42 -0
- package/packages/agentsam-merch/test/svg-normalization.test.mjs +33 -0
- package/packages/agentsam-nav/README.md +21 -1
- package/packages/agentsam-nav/dist/AdminAppsDialog.d.ts +15 -0
- package/packages/agentsam-nav/dist/Nav.d.ts +3 -1
- package/packages/agentsam-nav/dist/NavProvider.d.ts +8 -1
- package/packages/agentsam-nav/dist/NavTrigger.d.ts +1 -1
- package/packages/agentsam-nav/dist/Surfaces.d.ts +27 -2
- package/packages/agentsam-nav/dist/browser.d.ts +18 -0
- package/packages/agentsam-nav/dist/browser.global.js +62 -22
- package/packages/agentsam-nav/dist/browser.js +7150 -5613
- package/packages/agentsam-nav/dist/contracts.d.ts +73 -2
- package/packages/agentsam-nav/dist/index.d.ts +4 -0
- package/packages/agentsam-nav/dist/index.js +1395 -191
- package/packages/agentsam-nav/dist/legacy.css +7 -4
- package/packages/agentsam-nav/dist/shell.css +525 -11
- package/packages/agentsam-nav/dist/state.d.ts +25 -0
- package/packages/agentsam-nav/dist/theme.css +525 -11
- package/packages/agentsam-nav/dist/useAdminApps.d.ts +74 -0
- package/packages/agentsam-nav/dist/utils.d.ts +4 -0
- package/packages/agentsam-nav/package.json +7 -3
- package/packages/agentsam-occt/.native-build/CMakeCache.txt +433 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CMakeCXXCompiler.cmake +103 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CMakeDetermineCompilerABI_CXX.bin +0 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CMakeSystem.cmake +15 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CompilerIdCXX/CMakeCXXCompilerId.cpp +954 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CompilerIdCXX/a.out +0 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/4.4.4/CompilerIdCXX/apple-sdk.cpp +1 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/CMakeConfigureLog.yaml +2968 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/CMakeDirectoryInformation.cmake +16 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/InstallScripts.json +7 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/Makefile.cmake +53 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/Makefile2 +157 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/TargetDirectories.txt +4 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/DependInfo.cmake +24 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/build.make +146 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/cmake_clean.cmake +13 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/compiler_depend.internal +3152 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/compiler_depend.make +6886 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/compiler_depend.ts +2 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/depend.make +2 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/engine.cpp.o +0 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/engine.cpp.o.d +1868 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/flags.make +12 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/link.txt +1 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/main.cpp.o +0 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/main.cpp.o.d +1279 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-occt.dir/progress.make +4 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/DependInfo.cmake +23 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/build.make +114 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/cmake_clean.cmake +11 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/cmake_clean_target.cmake +3 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/compiler_depend.internal +1256 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/compiler_depend.make +3757 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/compiler_depend.ts +2 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/depend.make +2 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/flags.make +12 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/link.txt +2 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/progress.make +3 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/sketch_solver.cpp.o +0 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/agentsam-sketch-solver.dir/sketch_solver.cpp.o.d +1252 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/cmake.check_cache +1 -0
- package/packages/agentsam-occt/.native-build/CMakeFiles/progress.marks +1 -0
- package/packages/agentsam-occt/.native-build/Makefile +249 -0
- package/packages/agentsam-occt/.native-build/agentsam-occt +0 -0
- package/packages/agentsam-occt/.native-build/cmake_install.cmake +61 -0
- package/packages/agentsam-occt/.native-build/libagentsam-sketch-solver.a +0 -0
- package/packages/agentsam-occt/LICENSE +110 -0
- package/packages/agentsam-occt/README.md +100 -0
- package/packages/agentsam-occt/agentsam.package.json +60 -0
- package/packages/agentsam-occt/dist/browser.d.ts +32 -0
- package/packages/agentsam-occt/dist/browser.js +71 -0
- package/packages/agentsam-occt/dist/browser.js.map +1 -0
- package/packages/agentsam-occt/dist/index.d.ts +8 -0
- package/packages/agentsam-occt/dist/index.js +25 -0
- package/packages/agentsam-occt/dist/index.js.map +1 -0
- package/packages/agentsam-occt/dist/native-provider.d.mts +107 -0
- package/packages/agentsam-occt/dist/native-provider.mjs +177 -0
- package/packages/agentsam-occt/dist/native-provider.mjs.map +1 -0
- package/packages/agentsam-occt/dist/native-session.d.mts +8 -0
- package/packages/agentsam-occt/dist/native-session.mjs +64 -0
- package/packages/agentsam-occt/dist/native-session.mjs.map +1 -0
- package/packages/agentsam-occt/native/CMakeLists.txt +47 -0
- package/packages/agentsam-occt/native/engine.cpp +864 -0
- package/packages/agentsam-occt/native/engine.hpp +2 -0
- package/packages/agentsam-occt/native/main.cpp +123 -0
- package/packages/agentsam-occt/native/sketch_solver.cpp +198 -0
- package/packages/agentsam-occt/native/sketch_solver.hpp +5 -0
- package/packages/agentsam-occt/package.json +46 -0
- package/packages/agentsam-occt/src/browser.ts +92 -0
- package/packages/agentsam-occt/src/index.js +24 -0
- package/packages/agentsam-occt/src/native-provider.mjs +156 -0
- package/packages/agentsam-occt/src/native-session.d.mts +5 -0
- package/packages/agentsam-occt/src/native-session.mjs +35 -0
- package/packages/agentsam-occt/test/browser-provider.test.mjs +90 -0
- package/packages/agentsam-occt/test/contracts.test.mjs +32 -0
- package/packages/agentsam-occt/test/native-engine.test.mjs +49 -0
- package/packages/agentsam-occt/tsconfig.json +18 -0
- package/packages/agentsam-queue-control/LICENSE +110 -0
- package/packages/agentsam-queue-control/agentsam.package.json +1 -1
- package/packages/agentsam-queue-control/package.json +3 -3
- package/packages/agentsam-queue-control/schemas/job-envelope.schema.json +1 -1
- package/packages/agentsam-queue-control/src/adapters/cloudflare.js +39 -3
- package/packages/agentsam-queue-control/src/adapters/sqlite.js +8 -6
- package/packages/agentsam-queue-control/test/cloudflare-observability.test.mjs +54 -0
- package/packages/agentsam-rapid-rust/Cargo.toml +1 -1
- package/packages/agentsam-rapid-rust/LICENSE +110 -0
- package/packages/agentsam-repository/LICENSE +110 -0
- package/packages/agentsam-repository/package.json +3 -3
- package/packages/agentsam-site-scrape/README.md +1 -1
- package/packages/agentsam-site-scrape/tests/test_contract.py +1 -1
- package/packages/agentsam-vault/package.json +7 -3
- package/packages/agentsam-vault/src/crypto/aes-gcm.d.ts +25 -0
- package/packages/agentsam-vault/src/crypto/aes-gcm.js +149 -0
- package/packages/agentsam-vault/src/crypto/classify.d.ts +22 -0
- package/packages/agentsam-vault/src/crypto/classify.js +83 -0
- package/packages/agentsam-vault/src/crypto/oauth-envelope.d.ts +7 -0
- package/packages/agentsam-vault/src/index.js +10 -0
- package/packages/agentsam-vault/src/providers/registry.js +8 -0
- package/packages/agentsam-workbench/README.md +27 -3
- package/packages/agentsam-workbench/package.json +42 -5
- package/packages/agentsam-workbench/src/agent/AgentRuntimeField.tsx +12 -7
- package/packages/agentsam-workbench/src/agent/AskAgentSamPill.tsx +17 -0
- package/packages/agentsam-workbench/src/agent/Composer.tsx +10 -3
- package/packages/agentsam-workbench/src/agent/MiniAgentSam.tsx +257 -20
- package/packages/agentsam-workbench/src/agent/SelectionToolbar.tsx +161 -0
- package/packages/agentsam-workbench/src/agent/capability-catalog.ts +15 -8
- package/packages/agentsam-workbench/src/agent/contextual-composer.css +7 -0
- package/packages/agentsam-workbench/src/agent/index.ts +3 -0
- package/packages/agentsam-workbench/src/agent/mini-agentsam.css +72 -6
- package/packages/agentsam-workbench/src/agent/selection-toolbar.css +84 -0
- package/packages/agentsam-workbench/src/design/DesignWorkspaceFrame.tsx +404 -0
- package/packages/agentsam-workbench/src/design/canvas-handoff.ts +44 -0
- package/packages/agentsam-workbench/src/design/design-workspace.css +331 -0
- package/packages/agentsam-workbench/src/design/index.ts +7 -0
- package/packages/agentsam-workbench/src/index.ts +2 -0
- package/packages/agentsam-workbench/src/resources/ResourceCard.tsx +90 -0
- package/packages/agentsam-workbench/src/resources/index.ts +6 -0
- package/packages/agentsam-workbench/src/resources/resource-card.css +174 -0
- package/packages/agentsam-workbench/src/shell/InspectorPicker.tsx +38 -0
- package/packages/agentsam-workbench/src/shell/ResizableStage.tsx +26 -5
- package/packages/agentsam-workbench/src/shell/SidePanel.tsx +3 -3
- package/packages/agentsam-workbench/src/shell/StudioCommands.tsx +32 -0
- package/packages/agentsam-workbench/src/shell/appearance.d.mts +28 -0
- package/packages/agentsam-workbench/src/shell/appearance.mjs +279 -0
- package/packages/agentsam-workbench/src/shell/index.ts +2 -0
- package/packages/agentsam-workbench/src/shell/inspector-picker.css +48 -0
- package/packages/agentsam-workbench/src/shell/studio-icons.ts +104 -0
- package/packages/agentsam-workbench/src/shell/studio-panels.ts +21 -0
- package/packages/agentsam-workbench/src/widgets/BuiltinWidget.tsx +6 -0
- package/packages/agentsam-workbench/src/widgets/CalculatorWidget.tsx +81 -0
- package/packages/agentsam-workbench/src/widgets/ClockWidget.tsx +66 -0
- package/packages/agentsam-workbench/src/widgets/QueueDepthWidget.tsx +122 -0
- package/packages/agentsam-workbench/src/widgets/calculator.ts +57 -0
- package/packages/agentsam-workbench/src/widgets/clock.ts +54 -0
- package/packages/agentsam-workbench/src/widgets/index.ts +5 -0
- package/packages/agentsam-workbench/src/widgets/registry.ts +28 -25
- package/packages/agentsam-workbench/src/widgets/widgets.css +31 -0
- package/packages/agentsam-workbench/src/workflows/WorkflowStudio.tsx +936 -0
- package/packages/agentsam-workbench/src/workflows/index.ts +5 -0
- package/packages/agentsam-workbench/src/workflows/model.ts +207 -0
- package/packages/agentsam-workbench/src/workflows/types.ts +206 -0
- package/packages/agentsam-workbench/src/workflows/workflow-studio.css +290 -0
- package/packages/catalog/evidence/theme-scenes.json +5 -14
- package/packages/catalog/generated/packages.json +488 -529
- package/packages/catalog/src/theme-products.mjs +64 -0
- package/packages/connectors/cfoa/LICENSE +110 -0
- package/packages/connectors/cfoa/OAUTH_STORAGE_AUDIT.md +5 -0
- package/packages/connectors/cfoa/package.json +8 -3
- package/packages/connectors/cfoa/src/PERMISSION_REGISTRY.md +45 -0
- package/packages/connectors/cfoa/src/api-client.js +58 -8
- package/packages/connectors/cfoa/src/capabilities.js +136 -258
- package/packages/connectors/cfoa/src/credential.js +381 -48
- package/packages/connectors/cfoa/src/families/media.js +626 -0
- package/packages/connectors/cfoa/src/index.js +67 -39
- package/packages/connectors/cfoa/src/oauth-persist.js +249 -97
- package/packages/connectors/cfoa/src/permission-options.js +147 -1038
- package/packages/connectors/cfoa/src/routes.js +346 -53
- package/packages/connectors/cfoa/src/scope-catalog.js +18 -340
- package/packages/connectors/cfoa/src/scope-registry.js +248 -0
- package/packages/connectors/cfoa/test/scope-registry.test.mjs +168 -0
- package/packages/connectors/cfoa/tests/api-client-fetch.test.mjs +71 -0
- package/packages/connectors/cfoa/tests/capabilities.test.mjs +105 -39
- package/packages/connectors/cfoa/tests/connector.test.mjs +148 -5
- package/packages/connectors/cfoa/tests/cross-host-recovery.test.mjs +125 -0
- package/packages/connectors/cfoa/tests/media-discovery.test.mjs +284 -0
- package/packages/connectors/cfoa/tests/oauth-persist.test.mjs +114 -14
- package/packages/identity/.agentsam/features/oauth-login-portal/agentsam.feature.json +1 -1
- package/packages/identity/LICENSE +110 -0
- package/packages/identity/README.md +25 -0
- package/packages/identity/agentsam.package.json +4 -4
- package/packages/identity/migrations/apply-portable.js +12 -4
- package/packages/identity/migrations/sqlite/006_identity_account_security.sql +31 -0
- package/packages/identity/migrations/sqlite/007_identity_session_revoke_reason.sql +3 -0
- package/packages/identity/migrations/sqlite/008_identity_accounts.sql +41 -0
- package/packages/identity/migrations/sqlite/009_identity_scope.sql +30 -0
- package/packages/identity/package.json +13 -6
- package/packages/identity/schema/agentsam.identity/manifest.json +49 -10
- package/packages/identity/src/adapters/account-security-store.js +243 -0
- package/packages/identity/src/adapters/column-support.js +39 -0
- package/packages/identity/src/adapters/iam-compat/index.js +32 -4
- package/packages/identity/src/adapters/portable-d1/index.js +3 -1
- package/packages/identity/src/adapters/portable-store.js +93 -49
- package/packages/identity/src/app/verify-app.js +27 -0
- package/packages/identity/src/contracts/identity-store.js +2 -2
- package/packages/identity/src/contracts/sign-in-options.js +10 -0
- package/packages/identity/src/core/account-security.js +149 -0
- package/packages/identity/src/core/password-gate.js +116 -0
- package/packages/identity/src/frontend/auth-portal/pages/login.html +15 -3
- package/packages/identity/src/frontend/auth-portal/pages/reset.html +1 -1
- package/packages/identity/src/frontend/auth-portal/pages/signup.html +11 -5
- package/packages/identity/src/frontend/auth-portal/shared/company-branding.js +18 -7
- package/packages/identity/src/frontend/auth-portal/shared/default-auth-logo.svg +4 -0
- package/packages/identity/src/frontend/auth-portal/store-access.js +97 -0
- package/packages/identity/src/frontend/merchant-onboarding/store-start.css +9 -0
- package/packages/identity/src/frontend/merchant-onboarding/store-start.html +73 -0
- package/packages/identity/src/frontend/merchant-onboarding/store-start.js +166 -0
- package/packages/identity/src/migrations/0004_account_security.sql +24 -0
- package/packages/identity/src/migrations/0005_session_audit_columns.sql +6 -0
- package/packages/identity/src/migrations/README.md +2 -0
- package/packages/identity/src/oauth/native-handoff.js +2 -2
- package/packages/identity/src/server/identity-service.js +1 -1
- package/packages/identity/src/server/merchant-onboarding.js +103 -0
- package/packages/identity/src/server/worker-router.js +208 -10
- package/packages/identity/tests/account-security.test.mjs +341 -0
- package/packages/identity/tests/chatgpt-provider.test.mjs +4 -2
- package/packages/identity/tests/identity-portal-e2e.test.mjs +166 -0
- package/packages/identity/tests/lane1-identity-store-parity.test.mjs +17 -6
- package/packages/identity/tests/lane1-packed-consumer.test.mjs +18 -4
- package/packages/identity/tests/merchant-onboarding-portability.test.mjs +77 -0
- package/packages/identity/tests/password-gate.test.mjs +66 -0
- package/packages/identity/tests/portable-identity-architecture.test.mjs +3 -3
- package/packages/identity/tests/portable-identity-scope.test.mjs +59 -0
- package/packages/identity/tests/preview-auth-portal.test.mjs +2 -0
- package/packages/identity/tests/session-audit.test.mjs +135 -0
- package/packages/identity/tests/stock-product-provenance.test.mjs +22 -0
- package/packages/identity/tests/worker-portal-assets.test.mjs +47 -0
- package/packages/primetech-procedures/LICENSE +110 -0
- package/packages/primetech-procedures/README.md +102 -0
- package/packages/primetech-procedures/agentsam.package.json +63 -0
- package/packages/primetech-procedures/package.json +33 -0
- package/packages/primetech-procedures/procedures/arch.assembly.calculate/procedure.json +83 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/README.md +21 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/__pycache__/test_generate_toolpaths.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/build_freecad.py +514 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/finalize_bundle.py +26 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/generate_assets.py +284 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/generate_toolpaths.py +715 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/package_artifacts.py +154 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/parameters.json +51 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/procedure.json +101 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/render_preview.py +98 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/run.py +214 -0
- package/packages/primetech-procedures/procedures/cad.motor-bearing-end-plate/test_generate_toolpaths.py +50 -0
- package/packages/primetech-procedures/procedures/media.asset.preflight/procedure.json +85 -0
- package/packages/primetech-procedures/procedures/media.image.optimize-asset/procedure.json +102 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/__pycache__/run.cpython-312.pyc +0 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/__pycache__/run.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/procedure.json +65 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/run.py +116 -0
- package/packages/primetech-procedures/procedures/repo.asset.inventory/run.sh +11 -0
- package/packages/primetech-procedures/procedures/repo.git.status/procedure.json +58 -0
- package/packages/primetech-procedures/procedures/repo.git.status/run.sh +10 -0
- package/packages/primetech-procedures/profiles/PRIMETECH_PROCEDURE_ENGINEER.md +25 -0
- package/packages/primetech-procedures/src/index.js +646 -0
- package/packages/primetech-procedures/test/__pycache__/test_inventory.cpython-312.pyc +0 -0
- package/packages/primetech-procedures/test/__pycache__/test_inventory.cpython-314.pyc +0 -0
- package/packages/primetech-procedures/test/procedure.test.mjs +207 -0
- package/packages/primetech-procedures/test/runtime-kinds.test.mjs +210 -0
- package/packages/primetech-procedures/test/test_inventory.py +57 -0
- package/packages/providers/completeful/LICENSE +110 -0
- package/packages/providers/completeful/README.md +67 -27
- package/packages/providers/completeful/dist/client.d.ts +118 -0
- package/packages/providers/completeful/dist/client.js +221 -0
- package/packages/providers/completeful/dist/generated/operations.generated.d.ts +760 -0
- package/packages/providers/completeful/dist/generated/operations.generated.js +931 -0
- package/packages/providers/completeful/dist/generated/types.generated.d.ts +1173 -0
- package/packages/providers/completeful/dist/generated/types.generated.js +1 -0
- package/packages/providers/completeful/openapi/openapi.json +5320 -0
- package/packages/providers/completeful/package.json +34 -8
- package/packages/providers/completeful/scripts/generate.mjs +156 -0
- package/packages/providers/completeful/src/client.js +12 -162
- package/packages/providers/completeful/src/core/client.ts +248 -0
- package/packages/providers/completeful/src/core/generated/operations.generated.ts +931 -0
- package/packages/providers/completeful/src/core/generated/types.generated.ts +94 -0
- package/packages/providers/completeful/src/index.d.ts +24 -0
- package/packages/providers/completeful/src/index.js +3 -0
- package/packages/providers/completeful/test/openapi.test.mjs +70 -0
- package/packages/providers/completeful/test/types/consumer.ts +30 -0
- package/packages/providers/completeful/test/types/tsconfig.json +12 -0
- package/packages/providers/completeful/tsconfig.json +15 -0
- package/packages/theme-scenes/LICENSE +110 -0
- package/packages/theme-scenes/README.md +57 -2
- package/packages/theme-scenes/agentsam.package.json +42 -19
- package/packages/theme-scenes/package.json +11 -12
- package/packages/theme-scenes/src/cms/adapter.js +232 -0
- package/packages/theme-scenes/src/cms/browser.js +5 -0
- package/packages/theme-scenes/src/cms/index.js +22 -0
- package/packages/theme-scenes/src/cms/runtime.js +524 -0
- package/packages/theme-scenes/src/contracts/index.js +40 -0
- package/packages/theme-scenes/src/index.js +1 -0
- package/packages/theme-scenes/src/runtime/compile.js +24 -0
- package/packages/theme-scenes/src/scenes/index.js +3 -1
- package/packages/theme-scenes/src/visuals/index.js +7 -0
- package/packages/theme-scenes/test/cms.test.mjs +118 -0
- package/packages/theme-scenes/test/theme-scenes.test.mjs +52 -0
- package/packages/work-graph/LICENSE +110 -0
- package/packages/work-graph/package.json +2 -2
- package/protocol/README.md +20 -2
- package/protocol/apps/agentsam.app.v1.schema.json +1 -1
- package/protocol/apps/agentsam.host-install.v1.schema.json +1 -1
- package/protocol/assets/asset-record.v1.schema.json +1 -1
- package/protocol/brand/brandpack.v1.schema.json +1 -1
- package/protocol/cad/README.md +8 -0
- package/protocol/cad/blender-recipe.schema.json +1 -1
- package/protocol/cad/cad.project.v2.schema.json +107 -4
- package/protocol/canvas/knowledge-core.mjs +35 -0
- package/protocol/capabilities/capability-manifest.schema.json +112 -20
- package/protocol/capabilities/cloudflare-cpu-audit-input.schema.json +1 -1
- package/protocol/capabilities/cloudflare-cpu-profile-input.schema.json +1 -1
- package/protocol/capabilities/cloudflare-wrangler-native-input.schema.json +1 -1
- package/protocol/capabilities/evidence-manifest.schema.json +1 -1
- package/protocol/capabilities/knowledge-search-input.schema.json +1 -1
- package/protocol/capabilities/manifest.json +47 -1
- package/protocol/capabilities/repository-audit-input.schema.json +1 -1
- package/protocol/capabilities/repository-audit.schema.json +1 -1
- package/protocol/capabilities/repository-crawl-input.schema.json +1 -0
- package/protocol/capabilities/repository-crawl-result.schema.json +1 -0
- package/protocol/capabilities/repository-mine-input.schema.json +1 -0
- package/protocol/capabilities/repository-mine-result.schema.json +1 -0
- package/protocol/capabilities/repository-snapshot-input.schema.json +1 -1
- package/protocol/capabilities/repository-snapshot.schema.json +1 -1
- package/protocol/capabilities/site-index.schema.json +1 -1
- package/protocol/capabilities/site-scrape-evidence-manifest.schema.json +1 -1
- package/protocol/capabilities/site-scrape-input.schema.json +1 -1
- package/protocol/capabilities/site-scrape-project-authority.schema.json +1 -1
- package/protocol/capabilities/site-scrape-result.schema.json +1 -1
- package/protocol/capabilities/site-scrape-worker-job.schema.json +1 -1
- package/protocol/capabilities/terminal-exec-input.schema.json +1 -1
- package/protocol/context/context-budget.schema.json +1 -1
- package/protocol/context/context-item.schema.json +1 -1
- package/protocol/context/resolved-context-pack.schema.json +3 -3
- package/protocol/context/result-policy.schema.json +1 -1
- package/protocol/contracts/source-types.v2.json +9466 -0
- package/protocol/contracts/source-types.v2.schema.json +571 -0
- package/protocol/credentials/issue.v1.schema.json +2 -2
- package/protocol/database/agentsam.schema-pack.v1.schema.json +1 -1
- package/protocol/database/connection.v1.schema.json +1 -1
- package/protocol/embeddings/embedding-profile.v1.schema.json +1 -1
- package/protocol/errors/agentsam.error.v2.schema.json +1 -1
- package/protocol/errors/error-envelope.schema.json +1 -1
- package/protocol/errors/recovery.v1.schema.json +1 -1
- package/protocol/features/agentsam.feature.v1.schema.json +1 -1
- package/protocol/hooks/README.md +2 -0
- package/protocol/hooks/agentsam.hook.output.v1.schema.json +1 -1
- package/protocol/hooks/agentsam.hook.receipt.v1.schema.json +1 -1
- package/protocol/hooks/agentsam.hook.v1.schema.json +1 -1
- package/protocol/hooks/agentsam.hooks.config.v1.schema.json +1 -1
- package/protocol/knowledge/chunk.schema.json +1 -1
- package/protocol/knowledge/context-pack.schema.json +3 -3
- package/protocol/knowledge/document.schema.json +1 -1
- package/protocol/knowledge/index-config.schema.json +1 -1
- package/protocol/knowledge/ingest-receipt.schema.json +1 -1
- package/protocol/knowledge/repository.schema.json +1 -1
- package/protocol/knowledge/retrieval-hit.schema.json +1 -1
- package/protocol/knowledge/retrieval-query.schema.json +2 -2
- package/protocol/knowledge/source.schema.json +1 -1
- package/protocol/local-engine/benchmark.v1.schema.json +1 -1
- package/protocol/local-engine/engine.v1.schema.json +1 -1
- package/protocol/models/discovery.mjs +409 -0
- package/protocol/models/model-inventory-v2.schema.json +1 -1
- package/protocol/models/provider-model-snapshot.v1.schema.json +1 -1
- package/protocol/notifications/README.md +45 -0
- package/protocol/packages/agentsam.package-schema-registry.v1.schema.json +108 -0
- package/protocol/plugins/agentsam.plugin-evidence-bundle.v1.schema.json +1 -1
- package/protocol/plugins/agentsam.plugin-product.v1.schema.json +1 -1
- package/protocol/plugins/agentsam.plugin-quality-evidence.v1.schema.json +1 -1
- package/protocol/plugins/agentsam.plugin-quality-receipt.v1.schema.json +1 -1
- package/protocol/presets/catalog.json +4 -4
- package/protocol/product-releases/README.md +135 -0
- package/protocol/receipts/agentsam.receipt.v1.json +2 -2
- package/protocol/recon/finding-report.schema.json +1 -1
- package/protocol/recon/task-packet.schema.json +1 -1
- package/protocol/registry/universal-catalog.v1.json +2820 -0
- package/protocol/repository/repository-contract.schema.json +1 -1
- package/protocol/repository/repository-dependency.schema.json +1 -1
- package/protocol/repository/repository-identity.schema.json +1 -1
- package/protocol/runtime/agentsam.runtime.v1.schema.json +1 -1
- package/protocol/runtime/primetech-procedure.v1.schema.json +125 -0
- package/protocol/runtime/terminal-exec.conformance.v1.json +88 -0
- package/protocol/runtime/workspace-fs.conformance.v1.json +96 -0
- package/protocol/runtime/workspace-fs.v1.schema.json +2 -1
- package/protocol/sam/activity.v1.schema.json +112 -18
- package/protocol/sam/answer.v1.schema.json +1 -1
- package/protocol/sam/calibration.v1.schema.json +1 -1
- package/protocol/sam/decision-receipt.v1.schema.json +1 -1
- package/protocol/sam/evaluation.v1.schema.json +1 -1
- package/protocol/sam/operation.schema.json +111 -10
- package/protocol/sam/outcome.v1.schema.json +1 -1
- package/protocol/sam/question.v1.schema.json +1 -1
- package/protocol/sam/result.schema.json +33 -10
- package/protocol/sam/run-receipt.v1.schema.json +411 -0
- package/protocol/sam/run-start.v1.schema.json +40 -0
- package/protocol/sam/run.v1.schema.json +243 -0
- package/protocol/sam/state.v1.schema.json +1 -1
- package/protocol/scoring/scorecard.v1.schema.json +1 -1
- package/protocol/skills/agentsam.interaction.v1.schema.json +1 -1
- package/protocol/skills/agentsam.skill.v1.schema.json +1 -1
- package/protocol/theme-refinery/d1-reconciliation.md +66 -32
- package/protocol/theme-refinery/product-metadata.schema.json +2 -2
- package/protocol/theme-refinery/reconciliation-receipt.schema.json +1 -1
- package/protocol/tools/agent-tool-definition.v1.schema.json +78 -0
- package/protocol/ui/agentsam.ui-quality.v1.schema.json +1 -1
- package/protocol/ui/icon.v1.schema.json +1 -1
- package/python/README.md +170 -21
- package/python/agentsam_sdk/__init__.py +5 -2
- package/python/agentsam_sdk/assets/__init__.py +4 -0
- package/python/agentsam_sdk/assets/geaux_boot.json +25 -0
- package/python/agentsam_sdk/assets/procedures.py +40 -0
- package/python/agentsam_sdk/cad/__init__.py +28 -0
- package/python/agentsam_sdk/cad/adapters/__init__.py +6 -0
- package/python/agentsam_sdk/cad/adapters/freecad.py +200 -0
- package/python/agentsam_sdk/cad/building.py +42 -0
- package/python/agentsam_sdk/cad/jobs.py +174 -0
- package/python/agentsam_sdk/cad/native.py +248 -0
- package/python/agentsam_sdk/cad/occt.py +96 -0
- package/python/agentsam_sdk/cad/service.py +570 -0
- package/python/agentsam_sdk/cli.py +88 -12
- package/python/agentsam_sdk/client.py +264 -31
- package/python/agentsam_sdk/data/d1_adapter.py +71 -2
- package/python/agentsam_sdk/data/d1_bloat.py +0 -1
- package/python/agentsam_sdk/diagnostics.py +44 -0
- package/python/agentsam_sdk/media/__init__.py +8 -0
- package/python/agentsam_sdk/media/opencv.py +188 -0
- package/python/agentsam_sdk/procedures/__init__.py +4 -0
- package/python/agentsam_sdk/procedures/client.py +75 -0
- package/python/agentsam_sdk/py.typed +0 -0
- package/python/agentsam_sdk/registry_cli.py +88 -0
- package/python/agentsam_sdk/runtime/native.py +918 -0
- package/python/agentsam_sdk/terminal_art.py +84 -0
- package/python/agentsam_sdk/terminal_ui.py +187 -0
- package/python/agentsam_sdk/tui/README.md +3 -3
- package/python/agentsam_sdk/tui/__init__.py +1 -1
- package/python/agentsam_sdk/tui/bootstrap.py +2 -2
- package/python/agentsam_sdk/tui/demo.py +2 -2
- package/python/docs/gaps.md +12 -3
- package/python/docs/release.md +55 -0
- package/python/pyproject.toml +35 -5
- package/python/scripts/check-dist.py +65 -0
- package/python/tests/fixtures/freecad_host_cases.json +30 -0
- package/python/tests/test_asset_procedure_api.py +66 -0
- package/python/tests/test_bridge_policy.py +40 -0
- package/python/tests/test_cad_building_client.py +47 -0
- package/python/tests/test_cad_jobs_client.py +102 -0
- package/python/tests/test_cad_native.py +176 -0
- package/python/tests/test_cad_occt.py +52 -0
- package/python/tests/test_cad_service_client.py +288 -0
- package/python/tests/test_cli_distribution.py +82 -0
- package/python/tests/test_d1_write_adapter.py +66 -0
- package/python/tests/test_native_runtime.py +298 -0
- package/python/tests/test_opencv_media.py +79 -0
- package/python/tests/test_packaging.py +43 -0
- package/python/tests/test_procedure_client.py +86 -0
- package/python/tests/test_public_client.py +21 -5
- package/python/tests/test_terminal_art.py +36 -0
- package/services/cad/blender/adapter.py +49 -0
- package/services/cad/ifc/__pycache__/adapter.cpython-311.pyc +0 -0
- package/services/cad/ifc/adapter.py +836 -0
- package/services/cad/occt/CMakeLists.txt +7 -41
- package/services/cad/occt/README.md +4 -28
- package/services/cad/server.py +599 -77
- package/skills/README.md +13 -5
- package/skills/agentsam-app-fundamentals/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-accessibility/SKILL.md +19 -0
- package/skills/agentsam-arch-accessibility/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-assemblies/SKILL.md +20 -0
- package/skills/agentsam-arch-assemblies/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-bim/SKILL.md +180 -0
- package/skills/agentsam-arch-bim/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-cad/SKILL.md +19 -0
- package/skills/agentsam-arch-cad/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-codes/SKILL.md +19 -0
- package/skills/agentsam-arch-codes/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-coordination/SKILL.md +19 -0
- package/skills/agentsam-arch-coordination/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-documents/SKILL.md +19 -0
- package/skills/agentsam-arch-documents/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-geometry/SKILL.md +19 -0
- package/skills/agentsam-arch-geometry/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-materials/SKILL.md +19 -0
- package/skills/agentsam-arch-materials/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-orchestrate/SKILL.md +21 -0
- package/skills/agentsam-arch-orchestrate/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-specifications/SKILL.md +19 -0
- package/skills/agentsam-arch-specifications/agentsam.skill.json +20 -0
- package/skills/agentsam-arch-verify/SKILL.md +20 -0
- package/skills/agentsam-arch-verify/agentsam.skill.json +20 -0
- package/skills/agentsam-cad/SKILL.md +122 -36
- package/skills/agentsam-cad/agentsam.skill.json +20 -0
- package/skills/agentsam-cad/evals/README.md +56 -0
- package/skills/agentsam-cad/references/engines-and-lanes.md +70 -0
- package/skills/agentsam-cad/references/projects-and-operations.md +112 -0
- package/skills/agentsam-cad/references/proof-and-triage.md +89 -0
- package/skills/agentsam-cad/references/python-service-and-jobs.md +102 -0
- package/skills/agentsam-cad/references/scene-geometry-bim.md +113 -0
- package/skills/agentsam-canvas-creation/SKILL.md +79 -0
- package/skills/agentsam-canvas-creation/agentsam.skill.json +20 -0
- package/skills/agentsam-canvas-creation/references/creation-journey.md +55 -0
- package/skills/agentsam-canvas-creation/references/fullstack-creation-checklist.md +28 -0
- package/skills/agentsam-canvas-creation/references/quality-and-consistency.md +39 -0
- package/skills/agentsam-cloudflare-workers/agentsam.skill.json +20 -0
- package/skills/agentsam-cms-ready-creation/SKILL.md +68 -0
- package/skills/agentsam-cms-ready-creation/agentsam.skill.json +20 -0
- package/skills/agentsam-cms-ready-creation/references/cms-handoff-map.md +50 -0
- package/skills/agentsam-cms-ready-creation/references/web-fullstack-readiness.md +38 -0
- package/skills/agentsam-codebaseindex/agentsam.skill.json +20 -0
- package/skills/agentsam-jr-dev/agentsam.skill.json +20 -0
- package/skills/agentsam-plan-and-goap/SKILL.md +14 -1
- package/skills/agentsam-plan-and-goap/agentsam.skill.json +20 -0
- package/skills/agentsam-progression-guard/agentsam.skill.json +20 -0
- package/skills/agentsam-repo-recon/agentsam.skill.json +20 -0
- package/skills/agentsam-sam-operations/SKILL.md +76 -36
- package/skills/agentsam-sam-operations/agentsam.skill.json +20 -0
- package/skills/agentsam-sdk-orientation/SKILL.md +10 -7
- package/skills/agentsam-sdk-orientation/agentsam.skill.json +20 -0
- package/skills/catalog.json +350 -4
- package/src/acp/agent-executor.js +38 -2
- package/src/acp/client.js +128 -39
- package/src/acp/dependencies.js +159 -19
- package/src/acp/http.js +14 -0
- package/src/acp/index.js +3 -0
- package/src/acp/runs.js +5 -3
- package/src/agent/capability-adapter.js +25 -24
- package/src/capabilities/index.js +2 -0
- package/src/capabilities/terminal-exec.js +16 -4
- package/src/capabilities/workspace-files.js +58 -2
- package/src/cli/command-catalog.js +26 -3
- package/src/cli/desktop-launch.js +107 -0
- package/src/cli/update-check.js +131 -0
- package/src/cli.js +49 -13
- package/src/commands/account-auth.js +36 -26
- package/src/commands/app-inventory.js +343 -0
- package/src/commands/app.js +164 -29
- package/src/commands/ast.js +80 -0
- package/src/commands/cad.js +2 -0
- package/src/commands/cheat-sheet.js +1 -1
- package/src/commands/cloudflare-login.js +170 -65
- package/src/commands/cloudflare-status.js +38 -0
- package/src/commands/cloudflare.js +54 -42
- package/src/commands/codebaseindex.js +34 -13
- package/src/commands/db.js +2 -2
- package/src/commands/dockerize.js +11 -2
- package/src/commands/go.js +1 -1
- package/src/commands/goals.js +59 -0
- package/src/commands/goap.js +48 -1
- package/src/commands/interactive.js +5 -0
- package/src/commands/knowledge.js +4 -2
- package/src/commands/mcp.js +85 -18
- package/src/commands/memory.js +102 -0
- package/src/commands/package.js +1 -1
- package/src/commands/plugins.js +47 -7
- package/src/commands/preferences.js +48 -6
- package/src/commands/product.js +4 -4
- package/src/commands/run.js +3 -4
- package/src/commands/sam.js +20 -5
- package/src/commands/shell.js +47 -8
- package/src/commands/skill.js +1 -1
- package/src/commands/start-local.js +29 -1
- package/src/go/contract.js +1 -1
- package/src/go/official-registry.js +41 -36
- package/src/go/product-catalog.test.mjs +52 -0
- package/src/go/receipts.js +19 -6
- package/src/indexing/index.js +10 -0
- package/src/indexing/ingest/style-evidence.js +10 -6
- package/src/indexing/live-ast.js +200 -0
- package/src/indexing/live-cad-graph.js +107 -0
- package/src/indexing/live-resource-graph.js +95 -0
- package/src/knowledge/config.js +5 -4
- package/src/knowledge/store-discovery.js +22 -5
- package/src/knowledge/stores/d1.js +141 -0
- package/src/lib/auth.js +7 -4
- package/src/lib/cad/bim-bridge.d.ts +6 -0
- package/src/lib/cad/bim-bridge.js +96 -0
- package/src/lib/cad/d1-project-store.js +1 -1
- package/src/lib/cad/delivery-profiles.d.ts +1 -1
- package/src/lib/cad/delivery-profiles.js +82 -6
- package/src/lib/cad/discovery.js +6 -1
- package/src/lib/cad/editable-project-contract.js +6 -0
- package/src/lib/cad/format-policy.d.ts +11 -0
- package/src/lib/cad/format-policy.js +14 -0
- package/src/lib/cad/freecad-host.d.ts +19 -0
- package/src/lib/cad/freecad-host.js +171 -0
- package/src/lib/cad/freecad.js +38 -65
- package/src/lib/cad/ifc-cli.js +82 -0
- package/src/lib/cad/ifc.js +152 -0
- package/src/lib/cad/index.js +3 -0
- package/src/lib/cad/occt-native-provider.mjs +3 -138
- package/src/lib/cad/production-operations.js +2 -0
- package/src/lib/cad/project-runtime.js +18 -2
- package/src/lib/cad/project-tools.js +4 -4
- package/src/lib/cad/project-v2.d.ts +32 -4
- package/src/lib/cad/project-v2.js +27 -2
- package/src/lib/cad-docker.js +86 -32
- package/src/lib/deploy/local-studio.js +9 -1
- package/src/lib/dockerize.js +2 -2
- package/src/lib/scaffold/wizards/cms.js +0 -79
- package/src/lib/terminal-scopes.js +5 -2
- package/src/lib/whoami-capabilities.js +8 -14
- package/src/mcp/authority.js +26 -2
- package/src/mcp/browsermcp.js +28 -0
- package/src/mcp/client-adapters.js +22 -5
- package/src/mcp/client.js +33 -6
- package/src/mcp/cloudflare-bundles.js +39 -41
- package/src/models/discovery.js +1 -373
- package/src/models/inventory-core.d.ts +53 -1
- package/src/models/inventory-core.js +162 -37
- package/src/plugins/browsermcp.js +47 -0
- package/src/plugins/cloudflare.js +3 -3
- package/src/plugins/completeful.js +2 -4
- package/src/plugins/contracts.js +10 -3
- package/src/plugins/creative.js +38 -0
- package/src/plugins/index.js +3 -0
- package/src/plugins/registry.js +141 -107
- package/src/plugins/runtime.js +76 -16
- package/src/providers/factory.js +13 -0
- package/src/registry/generated/inventory.json +644 -535
- package/src/registry/universal-reconcile.js +120 -0
- package/src/registry/universal-source.js +253 -0
- package/src/sam/adapters/opencv-video.js +206 -0
- package/src/sam/adapters/workspace-media.js +15 -2
- package/src/sam/bridge/policy.mjs +50 -0
- package/src/sam/bridge/stdio.mjs +61 -38
- package/src/sam/client.js +1 -1
- package/src/sam/define.js +11 -2
- package/src/sam/index.js +1 -0
- package/src/sam/operation-packs/generated-v2/operation-pack.js +1 -1
- package/src/sam/operations/architectural-knowledge.js +31 -0
- package/src/sam/operations/artifact-render.js +3 -2
- package/src/sam/operations/brand-scan.js +1 -1
- package/src/sam/operations/cad-bim-ifc.js +89 -0
- package/src/sam/operations/codebaseindex-ingest.js +1 -1
- package/src/sam/operations/decision-evaluate.js +2 -1
- package/src/sam/operations/package-audit.js +1 -1
- package/src/sam/operations/planning-astar.js +1 -1
- package/src/sam/operations/planning-goap.js +2 -1
- package/src/sam/operations/repository-inspect.js +2 -1
- package/src/sam/operations/robotics.js +2 -2
- package/src/sam/packs/authoring/index.js +1 -1
- package/src/sam/packs/cad/http-ports.js +59 -0
- package/src/sam/packs/cms/node.js +1 -1
- package/src/sam/packs/core.js +4 -0
- package/src/sam/packs/evidence/endpoint.js +39 -0
- package/src/sam/packs/evidence/media.js +3 -2
- package/src/sam/packs/evidence/store-hosted.js +91 -0
- package/src/sam/robotics/chess-adapter.js +8 -2
- package/src/sam/shell-host.js +26 -8
- package/src/sam/types.js +17 -98
- package/src/security/inventory.js +11 -9
- package/src/skills/canvas-knowledge-core.js +1 -0
- package/src/skills/canvas-knowledge.js +8 -0
- package/src/skills/catalog.js +12 -1
- package/src/skills/index.js +2 -0
- package/src/skills/registry.js +16 -17
- package/src/tools/registry.js +9 -11
- package/src/ui/boot.js +19 -20
- package/src/ui/brand/agentsam-mark.generated.js +49 -0
- package/src/ui/cli/prompt-box.js +151 -0
- package/src/ui/home-screen.js +49 -0
- package/apps/README.md +0 -67
- package/apps/cad-creator/README.md +0 -743
- package/apps/client-cms-editor/AGENTS.md +0 -17
- package/apps/client-cms-editor/IMPORT_PROVENANCE.json +0 -8
- package/apps/client-cms-editor/LICENSE +0 -21
- package/apps/client-cms-editor/README.md +0 -103
- package/apps/client-cms-editor/agentsam.app.json +0 -74
- package/apps/client-cms-editor/backend/README.md +0 -5
- package/apps/client-cms-editor/backend/package.json +0 -37
- package/apps/client-cms-editor/backend/src/api/client.ts +0 -233
- package/apps/client-cms-editor/backend/src/index.ts +0 -6
- package/apps/client-cms-editor/backend/src/model.ts +0 -11
- package/apps/client-cms-editor/backend/src/preview/bridge.ts +0 -79
- package/apps/client-cms-editor/backend/src/preview/urls.ts +0 -55
- package/apps/client-cms-editor/backend/src/routing/cms-route.js +0 -293
- package/apps/client-cms-editor/backend/src/routing/index.js +0 -10
- package/apps/client-cms-editor/backend/src/storefront.ts +0 -52
- package/apps/client-cms-editor/backend/tsconfig.json +0 -20
- package/apps/client-cms-editor/backend/worker/index.js +0 -34
- package/apps/client-cms-editor/backend/wrangler.jsonc +0 -11
- package/apps/client-cms-editor/bin/agentsam-cms.js +0 -262
- package/apps/client-cms-editor/bin/agentsam-cms.mjs +0 -3
- package/apps/client-cms-editor/frontend/index.html +0 -12
- package/apps/client-cms-editor/frontend/package.json +0 -40
- package/apps/client-cms-editor/frontend/src/AgentSamDrawer.tsx +0 -156
- package/apps/client-cms-editor/frontend/src/CmsAgentSurface.tsx +0 -36
- package/apps/client-cms-editor/frontend/src/adapters/heuristic.ts +0 -29
- package/apps/client-cms-editor/frontend/src/adapters/http-authoring.test.ts +0 -161
- package/apps/client-cms-editor/frontend/src/adapters/http.ts +0 -871
- package/apps/client-cms-editor/frontend/src/adapters/memory.ts +0 -510
- package/apps/client-cms-editor/frontend/src/editor/CmsEditor.tsx +0 -247
- package/apps/client-cms-editor/frontend/src/editor/CmsEditorProvider.tsx +0 -20
- package/apps/client-cms-editor/frontend/src/editor/canvas/PreviewCanvas.tsx +0 -81
- package/apps/client-cms-editor/frontend/src/editor/composition-groups.test.ts +0 -40
- package/apps/client-cms-editor/frontend/src/editor/host-preview.test.tsx +0 -104
- package/apps/client-cms-editor/frontend/src/editor/legacy/CmsEditorPrototype.tsx +0 -1374
- package/apps/client-cms-editor/frontend/src/editor/useCmsEditorController.ts +0 -218
- package/apps/client-cms-editor/frontend/src/env.d.ts +0 -14
- package/apps/client-cms-editor/frontend/src/index.ts +0 -22
- package/apps/client-cms-editor/frontend/src/lib/agent-host.ts +0 -24
- package/apps/client-cms-editor/frontend/src/lib/content-safety.ts +0 -63
- package/apps/client-cms-editor/frontend/src/main.tsx +0 -91
- package/apps/client-cms-editor/frontend/src/mount.tsx +0 -113
- package/apps/client-cms-editor/frontend/src/styles/agentsam-drawer.css +0 -215
- package/apps/client-cms-editor/frontend/src/styles/cmsShell.css +0 -1739
- package/apps/client-cms-editor/frontend/src/styles/studio.css +0 -159
- package/apps/client-cms-editor/frontend/src/surfaces/CmsDashboard.tsx +0 -313
- package/apps/client-cms-editor/frontend/src/surfaces/CmsGuidedChatHero.tsx +0 -121
- package/apps/client-cms-editor/frontend/src/surfaces/CmsHubPage.tsx +0 -132
- package/apps/client-cms-editor/frontend/src/surfaces/CmsSiteSwitcher.tsx +0 -176
- package/apps/client-cms-editor/frontend/src/surfaces/index.ts +0 -5
- package/apps/client-cms-editor/frontend/src/surfaces/types.ts +0 -48
- package/apps/client-cms-editor/frontend/tsconfig.json +0 -55
- package/apps/client-cms-editor/frontend/vite.config.ts +0 -25
- package/apps/client-cms-editor/package-lock.json +0 -4671
- package/apps/client-cms-editor/package.json +0 -136
- package/apps/client-cms-editor/reference/DONOR_README.md +0 -52
- package/apps/client-cms-editor/reference/DONOR_package-lock.json +0 -1253
- package/apps/client-cms-editor/reference/DONOR_tsconfig.json +0 -15
- package/apps/client-cms-editor/reference/harvest/HARVEST_RECEIPT.json +0 -201
- package/apps/client-cms-editor/reference/harvest/PROVENANCE_HISTORY.txt +0 -10
- package/apps/client-cms-editor/reference/harvest/README.md +0 -8
- package/apps/client-cms-editor/reference/harvest/plans/ARCHIVE-INTAKE.md +0 -135
- package/apps/client-cms-editor/reference/harvest/plans/CHATGPT-IDENTITY-HARVEST.md +0 -83
- package/apps/client-cms-editor/reference/harvest/plans/CMS-EDITOR-HARVEST.md +0 -166
- package/apps/client-cms-editor/reference/harvest/plans/HARVEST-INDEX.md +0 -196
- package/apps/client-cms-editor/reference/harvest/plans/INNERANIMALS-CONTENT-001.md +0 -137
- package/apps/client-cms-editor/reference/harvest/plans/NO-IMPLICIT-SIDE-EFFECTS.md +0 -87
- package/apps/client-cms-editor/reference/harvest/plans/STOREFRONT-SURFACE-MAP.md +0 -140
- package/apps/client-cms-editor/reference/harvest/plans/THEME-INNERANIMALS-HARVEST.md +0 -137
- package/apps/client-cms-editor/reference/harvest/plans/TOOLING-LAB.md +0 -63
- package/apps/client-cms-editor/reference/harvest/plans/harvest-manifest.json +0 -97
- package/apps/client-cms-editor/reference/harvest/plans/local-cms-harvest-schema.sql +0 -328
- package/apps/client-cms-editor/shared/cms/package.json +0 -29
- package/apps/client-cms-editor/shared/cms/src/adapter.ts +0 -204
- package/apps/client-cms-editor/shared/cms/src/agent-context.ts +0 -37
- package/apps/client-cms-editor/shared/cms/src/cloudflare-bindings.ts +0 -51
- package/apps/client-cms-editor/shared/cms/src/editor-types.ts +0 -131
- package/apps/client-cms-editor/shared/cms/src/host.ts +0 -82
- package/apps/client-cms-editor/shared/cms/src/index.ts +0 -9
- package/apps/client-cms-editor/shared/cms/src/map.ts +0 -115
- package/apps/client-cms-editor/shared/cms/src/publication.ts +0 -24
- package/apps/client-cms-editor/shared/cms/src/routes.ts +0 -11
- package/apps/client-cms-editor/shared/cms/src/starter-pack.ts +0 -158
- package/apps/client-cms-editor/shared/cms/tsconfig.json +0 -12
- package/docs/client-cms-editor.md +0 -15
- package/packages/agentsam-cms/src/node-sqlite-repository.js +0 -148
- package/packages/agentsam-cms/src/schema/cms-local-runtime.v1.sql +0 -365
- package/packages/agentsam-desktop-shell/README.md +0 -38
- package/packages/agentsam-ide/README.md +0 -59
- package/packages/catalog/evidence/cms-runtime.json +0 -49
- package/packages/catalog/evidence/fnf-theme.json +0 -34
- package/packages/catalog/evidence/theme-cypress.json +0 -41
- package/packages/catalog/evidence/theme-ember.json +0 -41
- package/packages/catalog/evidence/theme-forge.json +0 -41
- package/packages/catalog/evidence/theme-grove.json +0 -41
- package/packages/catalog/evidence/theme-harbor.json +0 -41
- package/packages/catalog/evidence/theme-heuristic.json +0 -50
- package/packages/catalog/evidence/theme-iasf.json +0 -48
- package/packages/catalog/evidence/theme-resolve.json +0 -41
- package/packages/catalog/evidence/theme-summit.json +0 -41
- package/packages/catalog/evidence/theme-violet.json +0 -41
- package/packages/heuristic-theme/README.md +0 -25
- package/packages/heuristic-theme/agentsam.package.json +0 -42
- package/packages/heuristic-theme/contracts/README.md +0 -15
- package/packages/heuristic-theme/contracts/block.schema.json +0 -33
- package/packages/heuristic-theme/contracts/header-presets.json +0 -20
- package/packages/heuristic-theme/contracts/page.schema.json +0 -18
- package/packages/heuristic-theme/contracts/preset.schema.json +0 -18
- package/packages/heuristic-theme/contracts/section.schema.json +0 -83
- package/packages/heuristic-theme/package.json +0 -40
- package/packages/heuristic-theme/presets/fuel-free-time/assets.json +0 -8
- package/packages/heuristic-theme/presets/fuel-free-time/globals/shell.json +0 -30
- package/packages/heuristic-theme/presets/fuel-free-time/pages/about.json +0 -4
- package/packages/heuristic-theme/presets/fuel-free-time/pages/cart.json +0 -4
- package/packages/heuristic-theme/presets/fuel-free-time/pages/collection.json +0 -4
- package/packages/heuristic-theme/presets/fuel-free-time/pages/collections.json +0 -4
- package/packages/heuristic-theme/presets/fuel-free-time/pages/community.json +0 -4
- package/packages/heuristic-theme/presets/fuel-free-time/pages/home.json +0 -92
- package/packages/heuristic-theme/presets/fuel-free-time/pages/order-confirmation.json +0 -39
- package/packages/heuristic-theme/presets/fuel-free-time/pages/product.json +0 -4
- package/packages/heuristic-theme/presets/fuel-free-time/pages/shop.json +0 -9
- package/packages/heuristic-theme/presets/fuel-free-time/preset.json +0 -23
- package/packages/heuristic-theme/presets/fuel-free-time/tokens.json +0 -23
- package/packages/heuristic-theme/src/index.js +0 -2
- package/packages/heuristic-theme/src/registry.js +0 -36
- package/packages/heuristic-theme/src/theme.js +0 -41
- package/packages/heuristic-theme/storefront/about.html +0 -1103
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/GENERATED-ASSETS.md +0 -15
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/earned-hours-hero.webp +0 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/essentials.webp +0 -0
- package/packages/heuristic-theme/storefront/assets/presets/fuel-free-time/masters.webp +0 -0
- package/packages/heuristic-theme/storefront/cart.html +0 -64
- package/packages/heuristic-theme/storefront/collaborate.html +0 -58
- package/packages/heuristic-theme/storefront/collection.html +0 -10
- package/packages/heuristic-theme/storefront/collections.html +0 -10
- package/packages/heuristic-theme/storefront/community.html +0 -921
- package/packages/heuristic-theme/storefront/css/content-page.css +0 -199
- package/packages/heuristic-theme/storefront/css/global-footer.css +0 -401
- package/packages/heuristic-theme/storefront/css/heuristic-theme.css +0 -81
- package/packages/heuristic-theme/storefront/css/page-composer.css +0 -76
- package/packages/heuristic-theme/storefront/css/shop-hero.css +0 -230
- package/packages/heuristic-theme/storefront/css/store-cart.css +0 -422
- package/packages/heuristic-theme/storefront/css/store-collections.css +0 -36
- package/packages/heuristic-theme/storefront/css/store-pdp.css +0 -459
- package/packages/heuristic-theme/storefront/css/store-shell.css +0 -474
- package/packages/heuristic-theme/storefront/css/store-shop.css +0 -117
- package/packages/heuristic-theme/storefront/home.html +0 -25
- package/packages/heuristic-theme/storefront/js/cms-hydrate.js +0 -395
- package/packages/heuristic-theme/storefront/js/cms-structure.js +0 -85
- package/packages/heuristic-theme/storefront/js/fnf-attribution.js +0 -98
- package/packages/heuristic-theme/storefront/js/fnf-head.js +0 -47
- package/packages/heuristic-theme/storefront/js/fnf-newsletter.js +0 -64
- package/packages/heuristic-theme/storefront/js/global-footer.js +0 -277
- package/packages/heuristic-theme/storefront/js/heuristic-runtime.js +0 -78
- package/packages/heuristic-theme/storefront/js/order-confirmation.js +0 -109
- package/packages/heuristic-theme/storefront/js/page-composer.js +0 -310
- package/packages/heuristic-theme/storefront/js/shop-hero.js +0 -85
- package/packages/heuristic-theme/storefront/js/store-cart.js +0 -276
- package/packages/heuristic-theme/storefront/js/store-catalog.js +0 -140
- package/packages/heuristic-theme/storefront/js/store-collections.js +0 -45
- package/packages/heuristic-theme/storefront/js/store-product.js +0 -287
- package/packages/heuristic-theme/storefront/js/store-shell.js +0 -449
- package/packages/heuristic-theme/storefront/order-confirmation.html +0 -30
- package/packages/heuristic-theme/storefront/policies.html +0 -43
- package/packages/heuristic-theme/storefront/product.html +0 -27
- package/packages/heuristic-theme/storefront/shop.html +0 -113
- package/packages/heuristic-theme/storefront/terms.html +0 -45
- package/packages/heuristic-theme/test/commerce-portability.test.mjs +0 -16
- package/packages/heuristic-theme/test/theme.test.mjs +0 -26
- package/packages/heuristic-theme/theme.json +0 -55
- package/packages/heuristic-theme/theme.schema.json +0 -32
- package/packages/theme-cypress/README.md +0 -11
- package/packages/theme-cypress/agentsam.package.json +0 -42
- package/packages/theme-cypress/package.json +0 -44
- package/packages/theme-cypress/prebuild.json +0 -23
- package/packages/theme-cypress/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-cypress/site/assets/generated/media-044ba16613.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-0a1ea6f6d9.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-0c06778307.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-1539ed373a.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-2df479fd2d.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-2e8bd0d9bc.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-41d4e2643c.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-46205bfde8.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-50c5f3e279.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-5f1467778c.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-6703642b22.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-87a490bc8e.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-997c10ef39.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-a423735c21.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-c9cea5245b.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-cab3c84c60.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-ce06595d59.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-d268905e7e.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-f6711b5053.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/media-manifest.json +0 -226
- package/packages/theme-cypress/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-cypress/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-cypress/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-cypress/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-cypress/site/beliefs.html +0 -175
- package/packages/theme-cypress/site/community.html +0 -175
- package/packages/theme-cypress/site/connect.html +0 -319
- package/packages/theme-cypress/site/donate.html +0 -106
- package/packages/theme-cypress/site/groups.html +0 -1352
- package/packages/theme-cypress/site/help.html +0 -1
- package/packages/theme-cypress/site/icons/clock.svg +0 -4
- package/packages/theme-cypress/site/icons/email.svg +0 -4
- package/packages/theme-cypress/site/icons/giving.svg +0 -4
- package/packages/theme-cypress/site/icons/home.svg +0 -4
- package/packages/theme-cypress/site/icons/location.svg +0 -4
- package/packages/theme-cypress/site/icons/media.svg +0 -4
- package/packages/theme-cypress/site/icons/ministries.svg +0 -6
- package/packages/theme-cypress/site/icons/prayer.svg +0 -5
- package/packages/theme-cypress/site/icons/visit.svg +0 -6
- package/packages/theme-cypress/site/index.html +0 -1013
- package/packages/theme-cypress/site/mensgroup.html +0 -477
- package/packages/theme-cypress/site/mission.html +0 -512
- package/packages/theme-cypress/site/unified-footer.css +0 -172
- package/packages/theme-cypress/site/unified-footer.js +0 -175
- package/packages/theme-cypress/site/unified-header.css +0 -226
- package/packages/theme-cypress/site/unified-header.js +0 -111
- package/packages/theme-cypress/site/womansgroup.html +0 -452
- package/packages/theme-cypress/src/index.js +0 -76
- package/packages/theme-cypress/src/node.js +0 -69
- package/packages/theme-cypress/test/theme.test.mjs +0 -47
- package/packages/theme-ember/README.md +0 -11
- package/packages/theme-ember/agentsam.package.json +0 -42
- package/packages/theme-ember/package.json +0 -44
- package/packages/theme-ember/prebuild.json +0 -23
- package/packages/theme-ember/site/about.html +0 -1840
- package/packages/theme-ember/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-ember/site/assets/generated/media-1e0b1e6ee6.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-2371dcb426.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-2db4f5ff9e.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-4ed07a756e.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-58182cf167.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-5b8b8472ae.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-71f4bd16a1.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-7c1c8120bc.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-832b176433.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-931439701c.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-c2860d40d1.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-c56974d198.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-cb83a44ff4.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-df02ccdfcf.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-fab72cd344.webp +0 -0
- package/packages/theme-ember/site/assets/generated/media-manifest.json +0 -190
- package/packages/theme-ember/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-ember/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-ember/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-ember/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-ember/site/community.html +0 -1664
- package/packages/theme-ember/site/index.html +0 -2044
- package/packages/theme-ember/site/shop.html +0 -2104
- package/packages/theme-ember/src/index.js +0 -76
- package/packages/theme-ember/src/node.js +0 -69
- package/packages/theme-ember/test/theme.test.mjs +0 -47
- package/packages/theme-forge/README.md +0 -11
- package/packages/theme-forge/agentsam.package.json +0 -42
- package/packages/theme-forge/package.json +0 -44
- package/packages/theme-forge/prebuild.json +0 -23
- package/packages/theme-forge/site/apple-touch-icon.png +0 -0
- package/packages/theme-forge/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-forge/site/assets/generated/media-manifest.json +0 -17
- package/packages/theme-forge/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-forge/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-forge/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-forge/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-forge/site/assets/index-DBOqQVsA.css +0 -1
- package/packages/theme-forge/site/assets/index-pXC0o9jp.js +0 -241
- package/packages/theme-forge/site/assets/workbox-window.prod.es5-Bd17z0YL.js +0 -2
- package/packages/theme-forge/site/index.html +0 -5
- package/packages/theme-forge/site/manifest.webmanifest +0 -1
- package/packages/theme-forge/site/pwa-192x192.png +0 -0
- package/packages/theme-forge/site/pwa-512x512.png +0 -0
- package/packages/theme-forge/site/sw.js +0 -107
- package/packages/theme-forge/site/workbox-7e5eb42b.js +0 -3395
- package/packages/theme-forge/src/index.js +0 -76
- package/packages/theme-forge/src/node.js +0 -69
- package/packages/theme-forge/test/theme.test.mjs +0 -47
- package/packages/theme-grove/README.md +0 -11
- package/packages/theme-grove/agentsam.package.json +0 -42
- package/packages/theme-grove/package.json +0 -44
- package/packages/theme-grove/prebuild.json +0 -23
- package/packages/theme-grove/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-grove/site/assets/generated/media-098b13d75a.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-0c064db1aa.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-0fbfef655e.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-14759c7460.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-19b23d2a8f.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-2012f04243.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-23b8c5e2bb.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-2bffb1a6ef.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-2e1523a5b0.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-31107c21f2.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-31373ec865.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-45e8e27542.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-4aa9846fe7.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-5476b24219.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-7a227d3e4b.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-b183eed550.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-b2c650f9ab.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-b5d7471694.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-c86498fdb4.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-ce2cfff9a1.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-cf41a5f324.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-ec6c01bf8d.webp +0 -0
- package/packages/theme-grove/site/assets/generated/media-manifest.json +0 -267
- package/packages/theme-grove/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-grove/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-grove/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-grove/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-grove/site/index.html +0 -1429
- package/packages/theme-grove/site/pages/contact.html +0 -664
- package/packages/theme-grove/site/pages/gallery.html +0 -216
- package/packages/theme-grove/site/pages/privacy.html +0 -180
- package/packages/theme-grove/site/pages/process.html +0 -592
- package/packages/theme-grove/site/pages/services.html +0 -567
- package/packages/theme-grove/site/pages/terms.html +0 -189
- package/packages/theme-grove/site/shared/footer.css +0 -140
- package/packages/theme-grove/site/shared/footer.html +0 -41
- package/packages/theme-grove/src/index.js +0 -76
- package/packages/theme-grove/src/node.js +0 -69
- package/packages/theme-grove/test/theme.test.mjs +0 -47
- package/packages/theme-harbor/README.md +0 -11
- package/packages/theme-harbor/agentsam.package.json +0 -42
- package/packages/theme-harbor/package.json +0 -44
- package/packages/theme-harbor/prebuild.json +0 -23
- package/packages/theme-harbor/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-harbor/site/assets/generated/media-manifest.json +0 -17
- package/packages/theme-harbor/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-harbor/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-harbor/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-harbor/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-harbor/site/assets/index-D58RKkr-.js +0 -239
- package/packages/theme-harbor/site/assets/index-Dd3YN9Mf.css +0 -1
- package/packages/theme-harbor/site/index.html +0 -15
- package/packages/theme-harbor/src/index.js +0 -76
- package/packages/theme-harbor/src/node.js +0 -69
- package/packages/theme-harbor/test/theme.test.mjs +0 -47
- package/packages/theme-resolve/README.md +0 -11
- package/packages/theme-resolve/agentsam.package.json +0 -42
- package/packages/theme-resolve/package.json +0 -44
- package/packages/theme-resolve/prebuild.json +0 -23
- package/packages/theme-resolve/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-resolve/site/assets/generated/media-216610d365.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-2a9e0f623f.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-a70660bfa9.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-bc1322e813.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-ced60fcecc.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/media-manifest.json +0 -72
- package/packages/theme-resolve/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-resolve/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-resolve/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-resolve/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-resolve/site/assets/index-BSaLpPG1.css +0 -2
- package/packages/theme-resolve/site/assets/index-D8au46Z5.js +0 -17
- package/packages/theme-resolve/site/index.html +0 -22
- package/packages/theme-resolve/src/index.js +0 -69
- package/packages/theme-resolve/src/node.js +0 -69
- package/packages/theme-resolve/test/theme.test.mjs +0 -47
- package/packages/theme-scenes/src/registry.js +0 -170
- package/packages/theme-summit/README.md +0 -11
- package/packages/theme-summit/agentsam.package.json +0 -42
- package/packages/theme-summit/package.json +0 -44
- package/packages/theme-summit/prebuild.json +0 -23
- package/packages/theme-summit/site/adventures.html +0 -450
- package/packages/theme-summit/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-summit/site/assets/generated/media-1e958ea679.webp +0 -0
- package/packages/theme-summit/site/assets/generated/media-9d4521abba.webp +0 -0
- package/packages/theme-summit/site/assets/generated/media-manifest.json +0 -39
- package/packages/theme-summit/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-summit/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-summit/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-summit/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-summit/site/business-card.html +0 -315
- package/packages/theme-summit/site/chatbot.js +0 -312
- package/packages/theme-summit/site/gallery.html +0 -524
- package/packages/theme-summit/site/i18n.js +0 -947
- package/packages/theme-summit/site/icons.svg +0 -87
- package/packages/theme-summit/site/index.html +0 -2415
- package/packages/theme-summit/site/pages/about.html +0 -100
- package/packages/theme-summit/site/pages/contact.html +0 -117
- package/packages/theme-summit/site/pages/dashboard.html +0 -111
- package/packages/theme-summit/site/pages/index.html +0 -129
- package/packages/theme-summit/site/pages/services.html +0 -125
- package/packages/theme-summit/site/shared/footer.html +0 -41
- package/packages/theme-summit/site/shared/layout.js +0 -315
- package/packages/theme-summit/site/shared/nav.html +0 -19
- package/packages/theme-summit/site/shared/styles.css +0 -696
- package/packages/theme-summit/site/theme-styles.css +0 -131
- package/packages/theme-summit/site/themes.js +0 -442
- package/packages/theme-summit/src/index.js +0 -76
- package/packages/theme-summit/src/node.js +0 -69
- package/packages/theme-summit/test/theme.test.mjs +0 -47
- package/packages/theme-violet/README.md +0 -11
- package/packages/theme-violet/agentsam.package.json +0 -42
- package/packages/theme-violet/package.json +0 -44
- package/packages/theme-violet/prebuild.json +0 -23
- package/packages/theme-violet/site/assets/generated/favicon.svg +0 -7
- package/packages/theme-violet/site/assets/generated/media-07b46d6457.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-09d38ddffc.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-254b0e2ad3.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-3a1b5c0a8d.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-3a78eb7d9d.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-49076977d8.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-6342d50dbd.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-646c65381e.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-7a5fb7c91a.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-9bbd133220.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-9e73307c2a.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-af382146a0.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-b2ae348b43.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-b8f43a3887.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-c96a3e1979.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-cd07daa54a.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-e03ab6b5fe.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-eae4917d25.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-f227ec5690.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-fb57ffd474.webp +0 -0
- package/packages/theme-violet/site/assets/generated/media-manifest.json +0 -245
- package/packages/theme-violet/site/assets/generated/social-card.webp +0 -0
- package/packages/theme-violet/site/assets/generated/theme-mark-192.png +0 -0
- package/packages/theme-violet/site/assets/generated/theme-mark-512.png +0 -0
- package/packages/theme-violet/site/assets/generated/theme-mark.svg +0 -7
- package/packages/theme-violet/site/global/cpas-contact.css +0 -405
- package/packages/theme-violet/site/global/cpas-donate-v2.css +0 -931
- package/packages/theme-violet/site/global/cpas-drawer-override.css +0 -1
- package/packages/theme-violet/site/global/cpas-footer.html +0 -38
- package/packages/theme-violet/site/global/cpas-header.html +0 -30
- package/packages/theme-violet/site/global/cpas-hero-watercolor.css +0 -275
- package/packages/theme-violet/site/global/cpas-modals.js +0 -802
- package/packages/theme-violet/site/global/cpas-public-surface.css +0 -982
- package/packages/theme-violet/site/global/cpas-shell.css +0 -3980
- package/packages/theme-violet/site/global/cpas-shell.js +0 -107
- package/packages/theme-violet/site/global/cpas-shelter-hub.css +0 -326
- package/packages/theme-violet/site/index.html +0 -141
- package/packages/theme-violet/site/pages/about/campaigns.html +0 -28
- package/packages/theme-violet/site/pages/about/cta.html +0 -25
- package/packages/theme-violet/site/pages/about/hero.html +0 -46
- package/packages/theme-violet/site/pages/about/paths.html +0 -24
- package/packages/theme-violet/site/pages/about/why_we_exist.html +0 -28
- package/packages/theme-violet/site/pages/home/campaigns.html +0 -67
- package/packages/theme-violet/site/pages/home/hero.html +0 -42
- package/packages/theme-violet/site/pages/home/how-it-helps.html +0 -32
- package/packages/theme-violet/site/pages/home/impact-stats.html +0 -31
- package/packages/theme-violet/site/pages/home/mission.html +0 -36
- package/packages/theme-violet/site/pages/home/newsletter.html +0 -29
- package/packages/theme-violet/site/pages/home/transport-win.html +0 -22
- package/packages/theme-violet/site/pages/index.html +0 -141
- package/packages/theme-violet/src/index.js +0 -76
- package/packages/theme-violet/src/node.js +0 -69
- package/packages/theme-violet/test/theme.test.mjs +0 -47
- package/services/cad/occt/main.cpp +0 -95
- /package/{apps/cad-creator → python}/LICENSE +0 -0
|
@@ -0,0 +1,3881 @@
|
|
|
1
|
+
-- Generated staging for agentsam_skill_next; none auto-published or activated.
|
|
2
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_91656810137a94662003e998','platform','AgentSam Jr Dev','/jr-dev','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Teach, inspect, build, and revise real software using beginner-friendly language grounded in repository and runtime evidence.','---
|
|
3
|
+
name: agentsam-jr-dev
|
|
4
|
+
description: >
|
|
5
|
+
Teach, inspect, build, and revise software in junior-developer-friendly language
|
|
6
|
+
without replacing real engineering with toy explanations. Use when a user asks
|
|
7
|
+
what code, HTTP, frontend/backend, APIs, databases, auth, services, workers,
|
|
8
|
+
repositories, packages, deployments, or application architecture mean; when
|
|
9
|
+
onboarding someone to an unfamiliar repo; or when explaining why a proposed
|
|
10
|
+
implementation belongs in a particular layer. Also use while building or
|
|
11
|
+
reviewing software when the user benefits from understanding the real mechanics.
|
|
12
|
+
Triggers on "jr dev", "junior dev", "explain this", "what is HTTP", "frontend",
|
|
13
|
+
"backend", "API", "service", "microservice", "how does this app work", "repo map",
|
|
14
|
+
"teach me", "break this down", and "why does this go here".
|
|
15
|
+
metadata:
|
|
16
|
+
short-description: "Teach real software mechanics from the actual repo, then prove the implementation"
|
|
17
|
+
aliases:
|
|
18
|
+
- agentsam_jr_dev
|
|
19
|
+
- jr-dev
|
|
20
|
+
user-invocable: true
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# AgentSam Jr Dev
|
|
24
|
+
|
|
25
|
+
Teach software by connecting **simple mental models to the actual system in front
|
|
26
|
+
of you**. The goal is not to make engineering sound easy. The goal is to make
|
|
27
|
+
real engineering understandable without hiding the mechanics.
|
|
28
|
+
|
|
29
|
+
A successful Jr Dev answer leaves the user knowing:
|
|
30
|
+
|
|
31
|
+
1. **what the thing is,**
|
|
32
|
+
2. **why it exists,**
|
|
33
|
+
3. **where it lives in this project,**
|
|
34
|
+
4. **what talks to it,**
|
|
35
|
+
5. **what state or authority it owns,** and
|
|
36
|
+
6. **how to prove it works.**
|
|
37
|
+
|
|
38
|
+
Do not teach a fake generic architecture when repository evidence is available.
|
|
39
|
+
Inspect first, then explain what is actually there.
|
|
40
|
+
|
|
41
|
+
## Core behavior
|
|
42
|
+
|
|
43
|
+
### 1. Start with the smallest useful explanation
|
|
44
|
+
|
|
45
|
+
Use this progression unless the user asks for a different depth:
|
|
46
|
+
|
|
47
|
+
- **10-second model** — one plain-language sentence.
|
|
48
|
+
- **mechanics** — the actual request/data/control flow.
|
|
49
|
+
- **repo proof** — name the real files, directories, routes, schemas, or services.
|
|
50
|
+
- **engineering consequence** — explain why the boundary matters when building or changing it.
|
|
51
|
+
|
|
52
|
+
Example:
|
|
53
|
+
|
|
54
|
+
> HTTP is the agreed request/response language two programs use to talk over a
|
|
55
|
+
> network. In this repo, the browser calls `/api/models`; the backend route
|
|
56
|
+
> receives that request, uses trusted server-side configuration, and returns a
|
|
57
|
+
> response the frontend can render.
|
|
58
|
+
|
|
59
|
+
Never stop at an analogy when the user needs the real mechanism.
|
|
60
|
+
|
|
61
|
+
### 2. Inspect before teaching repo-specific facts
|
|
62
|
+
|
|
63
|
+
For an unfamiliar project, establish the system shape before making claims:
|
|
64
|
+
|
|
65
|
+
- project/package manifests,
|
|
66
|
+
- top-level tree,
|
|
67
|
+
- runtime entrypoints,
|
|
68
|
+
- frontend entrypoint and routes,
|
|
69
|
+
- backend/server/worker entrypoint,
|
|
70
|
+
- shared contracts,
|
|
71
|
+
- API/transport boundaries,
|
|
72
|
+
- persistence/storage,
|
|
73
|
+
- auth/identity,
|
|
74
|
+
- environment/config,
|
|
75
|
+
- tests,
|
|
76
|
+
- deployment/runtime configuration.
|
|
77
|
+
|
|
78
|
+
Prefer deterministic repository/index/search tools over reading giant trees or
|
|
79
|
+
hundreds of files into context. Read the smallest relevant spans that prove the
|
|
80
|
+
explanation.
|
|
81
|
+
|
|
82
|
+
### 3. Teach boundaries as ownership
|
|
83
|
+
|
|
84
|
+
When explaining architecture, answer **who owns what**:
|
|
85
|
+
|
|
86
|
+
- frontend owns presentation and browser interaction,
|
|
87
|
+
- backend owns trusted execution and privileged access,
|
|
88
|
+
- shared/contracts own the shape both sides agree on,
|
|
89
|
+
- database/storage owns durable state,
|
|
90
|
+
- auth owns verified identity,
|
|
91
|
+
- HTTP/RPC/WebSocket is transport, not business logic,
|
|
92
|
+
- workers/servers are runtime entrypoints, not automatically the whole backend,
|
|
93
|
+
- packages expose reusable capabilities,
|
|
94
|
+
- apps compose those capabilities into complete products,
|
|
95
|
+
- services are independently running capabilities with explicit interfaces.
|
|
96
|
+
|
|
97
|
+
Do not teach folder names as universal laws. A repo may call these layers
|
|
98
|
+
`client/server`, `web/api`, `ui/core`, `worker`, or something else. Explain the
|
|
99
|
+
**responsibility** first, then map it to this repo''s names.
|
|
100
|
+
|
|
101
|
+
Read `references/web-application-fundamentals.md` for the canonical beginner
|
|
102
|
+
mental models and request-flow examples.
|
|
103
|
+
|
|
104
|
+
### 4. Real application logic is the standard
|
|
105
|
+
|
|
106
|
+
A polished screen is not proof of a working application. For any build/revision,
|
|
107
|
+
trace the behavior end-to-end:
|
|
108
|
+
|
|
109
|
+
```text
|
|
110
|
+
user intent
|
|
111
|
+
-> UI/input
|
|
112
|
+
-> validated action/request
|
|
113
|
+
-> trusted business logic
|
|
114
|
+
-> state/storage/provider side effect
|
|
115
|
+
-> response/event
|
|
116
|
+
-> UI state update
|
|
117
|
+
-> verification
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
If the requested feature crosses layers, implement and verify every required
|
|
121
|
+
layer. Do not hide missing backend/storage/auth/integration work behind mocked
|
|
122
|
+
frontend state unless the user explicitly asked for a prototype.
|
|
123
|
+
|
|
124
|
+
Read `references/real-application-logic.md` before claiming a new application,
|
|
125
|
+
service, or cross-layer feature is complete.
|
|
126
|
+
|
|
127
|
+
### 5. Explain changes in terms of consequences
|
|
128
|
+
|
|
129
|
+
Instead of:
|
|
130
|
+
|
|
131
|
+
> I moved this into the backend because that''s cleaner.
|
|
132
|
+
|
|
133
|
+
Prefer:
|
|
134
|
+
|
|
135
|
+
> This operation needs a secret and writes durable state, so the browser cannot
|
|
136
|
+
> be its authority. The frontend sends the user''s intent; the backend verifies
|
|
137
|
+
> it and performs the write. That keeps the secret off the client and gives us
|
|
138
|
+
> one trusted place to enforce validation.
|
|
139
|
+
|
|
140
|
+
Teach *why*, not just style conventions.
|
|
141
|
+
|
|
142
|
+
## No-bullshit rules
|
|
143
|
+
|
|
144
|
+
1. **Never invent a repo architecture.** Inspect it.
|
|
145
|
+
2. **Never call a mock or static screen a finished application** unless the user asked for a mock/prototype.
|
|
146
|
+
3. **Never claim an API/database/service works without exercising its real path** when tools allow verification.
|
|
147
|
+
4. **Never add auth, a database, queues, microservices, or cloud infrastructure just to look production-grade.** Add them when the behavior requires them.
|
|
148
|
+
5. **Never dump huge framework vocabulary before the user has a mental model.** Introduce terms when they explain a real observed mechanism.
|
|
149
|
+
6. **Never equate HTTP with "the backend."** HTTP is one transport. The backend is the trusted logic/runtime behind the interface.
|
|
150
|
+
7. **Never equate a Worker/server file with all business logic.** Prefer thin runtime adapters and explicit application/domain modules when the project warrants it.
|
|
151
|
+
8. **Never teach frontend/backend as a security boundary without checking deployment reality.** Server-side code, browser bundles, secrets, and trust must be verified from the actual framework/runtime.
|
|
152
|
+
9. **Never replace evidence with confidence.** Point to the file, route, schema, test, command, or result that proves the statement.
|
|
153
|
+
10. **Never make "junior" mean patronizing.** Use plain language while preserving the real technical model.
|
|
154
|
+
|
|
155
|
+
## Repo explanation template
|
|
156
|
+
|
|
157
|
+
When someone asks "how does this repo/app work?", prefer a compact map like:
|
|
158
|
+
|
|
159
|
+
```text
|
|
160
|
+
Product
|
|
161
|
+
what a user can do
|
|
162
|
+
|
|
163
|
+
Frontend
|
|
164
|
+
entrypoint:
|
|
165
|
+
routes/views:
|
|
166
|
+
state:
|
|
167
|
+
calls out to:
|
|
168
|
+
|
|
169
|
+
Backend
|
|
170
|
+
runtime entrypoint:
|
|
171
|
+
API/actions:
|
|
172
|
+
trusted integrations:
|
|
173
|
+
|
|
174
|
+
Shared contracts
|
|
175
|
+
types/schemas/events:
|
|
176
|
+
|
|
177
|
+
State
|
|
178
|
+
browser-local:
|
|
179
|
+
durable database/storage:
|
|
180
|
+
|
|
181
|
+
External systems
|
|
182
|
+
model providers / Git / payments / etc.:
|
|
183
|
+
|
|
184
|
+
Request flow
|
|
185
|
+
user -> frontend -> transport -> backend -> state/provider -> response -> UI
|
|
186
|
+
|
|
187
|
+
Proof
|
|
188
|
+
tests / health checks / real execution path:
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Only include sections the actual project has.
|
|
192
|
+
|
|
193
|
+
## Build/revision workflow
|
|
194
|
+
|
|
195
|
+
For a real task:
|
|
196
|
+
|
|
197
|
+
1. Restate the user-visible behavior in one sentence.
|
|
198
|
+
2. Identify current architecture from repository evidence.
|
|
199
|
+
3. Identify the authority/state owner for the behavior.
|
|
200
|
+
4. Trace the end-to-end flow before editing.
|
|
201
|
+
5. Reuse existing project patterns/contracts where sound.
|
|
202
|
+
6. Make the smallest coherent cross-layer change.
|
|
203
|
+
7. Exercise the real path.
|
|
204
|
+
8. Explain the result at the user''s requested depth.
|
|
205
|
+
|
|
206
|
+
When debugging, teach the failing boundary:
|
|
207
|
+
|
|
208
|
+
```text
|
|
209
|
+
input -> frontend -> transport -> backend -> dependency -> persistence -> response
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
Find the first point where expected and actual behavior diverge.
|
|
213
|
+
|
|
214
|
+
## Teaching vocabulary
|
|
215
|
+
|
|
216
|
+
Prefer plain term -> precise term:
|
|
217
|
+
|
|
218
|
+
- "the browser screen" -> frontend/client
|
|
219
|
+
- "the trusted code doing the work" -> backend/server
|
|
220
|
+
- "the agreed message shape" -> contract/schema
|
|
221
|
+
- "the request language" -> HTTP
|
|
222
|
+
- "a named HTTP endpoint" -> API route/endpoint
|
|
223
|
+
- "long-lived two-way connection" -> WebSocket
|
|
224
|
+
- "saved state" -> persistence/database/storage
|
|
225
|
+
- "proof of who the user is" -> authentication
|
|
226
|
+
- "what that user is allowed to do" -> authorization
|
|
227
|
+
- "a separately running capability" -> service
|
|
228
|
+
- "a small independently deployed service" -> microservice, only when it actually is one
|
|
229
|
+
- "the program''s starting door" -> entrypoint
|
|
230
|
+
- "code reused by multiple products" -> package/library
|
|
231
|
+
|
|
232
|
+
Introduce the precise term immediately after the plain one so the user learns the
|
|
233
|
+
real vocabulary rather than remaining dependent on analogies.
|
|
234
|
+
','skills/agentsam-jr-dev/SKILL.md','bef6d24e15e33b36309d1bcee4d72ea6b6d8c051f3d53a7a3f90d04952e5dbf3','read_only','{"origin":"sdk_source","source_id":"agentsam-jr-dev","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
235
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_4676fb2e152bb723a5a9e7e6','platform','AgentSam Application Fundamentals','/app-fundamentals','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Build and review applications using explicit execution ownership, contracts, credentialed destinations, dependency graphs, AST evidence, and Merkle evidence.','---
|
|
236
|
+
name: agentsam-app-fundamentals
|
|
237
|
+
description: >
|
|
238
|
+
Keep application-building work grounded in execution domains, contracts, credentials,
|
|
239
|
+
dependency graphs, AST evidence, Merkle evidence, and explicit I/O boundaries. Use when
|
|
240
|
+
adding or reviewing a feature, service, package, API, auth flow, secret, integration,
|
|
241
|
+
frontend/backend boundary, worker, webhook, or external credentialed destination. Also
|
|
242
|
+
use for quick reminders when a large codebase makes the underlying mechanics hard to
|
|
243
|
+
keep in working memory. Triggers on "app fundamentals", "quick bytes", "trust boundary",
|
|
244
|
+
"client secret", "redirect URI", "frontend/backend", "AST", "Merkle", "contract drift",
|
|
245
|
+
"service boundary", "credentialed destination", and "where should this logic live".
|
|
246
|
+
metadata:
|
|
247
|
+
short-description: "Application-building laws: ownership, contracts, credentials, graphs, AST, and Merkle evidence"
|
|
248
|
+
aliases:
|
|
249
|
+
- app-fundamentals
|
|
250
|
+
- application-fundamentals
|
|
251
|
+
- quick-bytes
|
|
252
|
+
user-invocable: true
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
# AgentSam Application Fundamentals
|
|
256
|
+
|
|
257
|
+
Use this skill as a **small engineering compass**, not a giant textbook. A large
|
|
258
|
+
platform becomes manageable when every feature can answer a few mechanical
|
|
259
|
+
questions: who executes it, who owns authority, what contract crosses the boundary,
|
|
260
|
+
what credential is used, what it depends on, and what evidence proves the change.
|
|
261
|
+
|
|
262
|
+
## Quick bytes
|
|
263
|
+
|
|
264
|
+
- **Execution domain:** trust follows who controls the machine/runtime, not the folder name.
|
|
265
|
+
- **Browser/client:** user-controlled and therefore observable/tamperable. Never make it the final authority for security or privileged state changes.
|
|
266
|
+
- **Server/backend:** operator-controlled execution. Re-verify identity, authorization, ownership, prices, permissions, and other invariants here.
|
|
267
|
+
- **Import:** a dependency edge. **Export:** a public contract another module may depend on.
|
|
268
|
+
- **AST:** parsed code structure. Use it to identify symbols, imports/exports, calls, environment access, and execution-domain contradictions without relying on text grep alone.
|
|
269
|
+
- **Dependency graph/DAG:** the map of what depends on what. It determines blast radius, build order, affected tests, and what can run in parallel.
|
|
270
|
+
- **Schema/contract:** the agreed shape at a boundary. Compile-time types help; runtime validation proves real external data matches the contract.
|
|
271
|
+
- **Merkle/content hash:** identity for observed bytes. A changed root proves something changed; an unchanged root proves the captured content is identical under the same policy.
|
|
272
|
+
- **Semantic metadata root:** identity for the indexed/classified view of those bytes. It can change when execution classification or parser-derived meaning changes even when content does not.
|
|
273
|
+
- **Client ID:** usually a public application identifier. **Client secret/API secret:** a credential proving authority; keep it out of browser code and public bundles.
|
|
274
|
+
- **Redirect URI:** an explicitly registered destination for an authorization flow. The provider returns to the callback; your backend verifies the flow, establishes your app session, then chooses the final in-app destination.
|
|
275
|
+
- **Firewall/WAF:** an ingress filter. It reduces hostile traffic; it does not replace authentication, authorization, ownership checks, runtime validation, or least privilege.
|
|
276
|
+
- **Hook:** code that runs automatically because a lifecycle event occurred. Treat hooks as explicit I/O contracts, not mystery scripts.
|
|
277
|
+
|
|
278
|
+
If one of those concepts is fuzzy for the current task, read the matching reference
|
|
279
|
+
before editing.
|
|
280
|
+
|
|
281
|
+
## The six questions for every feature
|
|
282
|
+
|
|
283
|
+
Before changing code, be able to answer:
|
|
284
|
+
|
|
285
|
+
1. **User behavior:** what can the user now do?
|
|
286
|
+
2. **Execution owner:** which runtime is trusted to make the decision or perform the side effect?
|
|
287
|
+
3. **Contract:** what request/event/type/schema crosses each boundary?
|
|
288
|
+
4. **State:** what is ephemeral, browser-local, durable, cached, or externally owned?
|
|
289
|
+
5. **Credentialed destinations:** which external systems are called, from which runtime, with which public IDs/secrets/scopes?
|
|
290
|
+
6. **Proof:** which tests, AST/index evidence, Merkle receipt, runtime response, or observable metric proves it works?
|
|
291
|
+
|
|
292
|
+
If a feature cannot answer these, it is not ready to be called complete.
|
|
293
|
+
|
|
294
|
+
## Build vertical slices, not disconnected layers
|
|
295
|
+
|
|
296
|
+
For application work, trace the real behavior end to end:
|
|
297
|
+
|
|
298
|
+
```text
|
|
299
|
+
user action
|
|
300
|
+
-> client intent
|
|
301
|
+
-> validated boundary contract
|
|
302
|
+
-> trusted server/domain operation
|
|
303
|
+
-> database/service/provider side effect
|
|
304
|
+
-> response/event
|
|
305
|
+
-> client state/render
|
|
306
|
+
-> test + runtime proof
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
A button without the trusted operation behind it is incomplete. A backend endpoint
|
|
310
|
+
without a real consumer may be dead surface area. A shared type without runtime
|
|
311
|
+
validation is not proof that an external system obeyed the type.
|
|
312
|
+
|
|
313
|
+
## Credentialed-destination card
|
|
314
|
+
|
|
315
|
+
Whenever a feature talks to Google, GitHub, Cloudflare, Stripe, a model provider,
|
|
316
|
+
a database, another Worker/service, or any other privileged destination, write down
|
|
317
|
+
this card before wiring it:
|
|
318
|
+
|
|
319
|
+
```text
|
|
320
|
+
Destination
|
|
321
|
+
provider/service:
|
|
322
|
+
purpose:
|
|
323
|
+
caller execution domain:
|
|
324
|
+
public identifier(s):
|
|
325
|
+
secret credential(s):
|
|
326
|
+
credential owner/runtime:
|
|
327
|
+
allowed origin/host:
|
|
328
|
+
callback/redirect/webhook URI(s):
|
|
329
|
+
scopes/permissions:
|
|
330
|
+
request contract:
|
|
331
|
+
response contract:
|
|
332
|
+
timeout/retry/idempotency:
|
|
333
|
+
failure behavior:
|
|
334
|
+
audit/observability:
|
|
335
|
+
rotation/revocation path:
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
This turns "a pile of env vars" into an explicit relationship. Environment variable
|
|
339
|
+
names are configuration labels; the credential value is the sensitive authority.
|
|
340
|
+
Validate required configuration at boot or boundary entry and fail clearly.
|
|
341
|
+
|
|
342
|
+
Read `references/trust-credentials-and-destinations.md` for auth/OAuth and destination
|
|
343
|
+
mechanics.
|
|
344
|
+
|
|
345
|
+
## Graph law for packages/services/apps
|
|
346
|
+
|
|
347
|
+
As a system grows, do not rely on remembering which file "goes with" another file.
|
|
348
|
+
Make coupling machine-visible:
|
|
349
|
+
|
|
350
|
+
```text
|
|
351
|
+
package/service A
|
|
352
|
+
imports / calls / subscribes to
|
|
353
|
+
package/service B
|
|
354
|
+
implements contract C
|
|
355
|
+
owns state D
|
|
356
|
+
uses credential E
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
Prefer a single contract authority for cross-surface behavior: a shared type/schema,
|
|
360
|
+
OpenAPI/GraphQL/Protobuf definition, event schema, or other versioned interface. Use
|
|
361
|
+
AST/import graphs and package metadata to determine affected dependents instead of
|
|
362
|
+
manually searching a million-line repository.
|
|
363
|
+
|
|
364
|
+
Read `references/graphs-contracts-ast-merkle.md` for the deeper model.
|
|
365
|
+
|
|
366
|
+
## AgentSam evidence tools
|
|
367
|
+
|
|
368
|
+
Prefer deterministic evidence before broad model reasoning:
|
|
369
|
+
|
|
370
|
+
```bash
|
|
371
|
+
agentsam inspect --json
|
|
372
|
+
agentsam inspect --execution-domain browser --view files --json
|
|
373
|
+
agentsam security scan --path .
|
|
374
|
+
agentsam merkle ...
|
|
375
|
+
agentsam index ...
|
|
376
|
+
agentsam search ...
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
Use repository/index tools to narrow the relevant graph. Do not dump the whole repo
|
|
380
|
+
or all tool schemas into context.
|
|
381
|
+
|
|
382
|
+
## Rules while building
|
|
383
|
+
|
|
384
|
+
1. Never infer trust from `frontend/`, `backend/`, `worker/`, or `shared/` names alone; verify execution reality.
|
|
385
|
+
2. Never put a long-lived secret into code delivered to a user-controlled runtime.
|
|
386
|
+
3. Never let client-side validation be the only security or correctness check.
|
|
387
|
+
4. Never introduce a second contract authority when an existing canonical schema/type can be extended.
|
|
388
|
+
5. Never change a shared contract without identifying downstream dependents.
|
|
389
|
+
6. Never treat a Merkle hash as proof of correctness; it proves observed identity/change, not behavior.
|
|
390
|
+
7. Never treat AST/index output as infallible; account for parser coverage, generated/framework code, and explicit classification overrides.
|
|
391
|
+
8. Never let a hook silently mutate unrelated state. Bound its inputs, outputs, permissions, timeout, and failure policy.
|
|
392
|
+
9. Never call a credential "just an env var." Record who owns it, where it may exist, and what it authorizes.
|
|
393
|
+
10. Never ship a cross-layer feature from screenshots alone. Exercise the real I/O path.
|
|
394
|
+
|
|
395
|
+
## Handoff to progression guard
|
|
396
|
+
|
|
397
|
+
Once the feature''s boundaries are coherent, use `agentsam-progression-guard` to decide
|
|
398
|
+
**when and where those invariants must be re-proven** during commit, CI, deploy, and
|
|
399
|
+
runtime promotion.
|
|
400
|
+
','skills/agentsam-app-fundamentals/SKILL.md','f6854193ca713b05241e8f10d075961df743fb844eeef7110330233ade5aa87a','read_only','{"origin":"sdk_source","source_id":"agentsam-app-fundamentals","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
401
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_a1ab6a77c6d633dcde682e18','platform','AgentSam Canvas Creation','/canvas-creation','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Open a clean Canvas, choose one of four contextual creative directions, read real skills and create incrementally with consistent editing UX.','---
|
|
402
|
+
name: agentsam-canvas-creation
|
|
403
|
+
description: >
|
|
404
|
+
Start and progressively build an editable Canvas in any supported AgentSam
|
|
405
|
+
host. Use when + New opens a creation workspace, AgentSam offers four
|
|
406
|
+
contextual creative directions, or a user asks to create/refine a design.
|
|
407
|
+
metadata:
|
|
408
|
+
short-description: "Clean Canvas entry, four contextual directions, source-backed creation and consistent editing"
|
|
409
|
+
aliases:
|
|
410
|
+
- canvas-creation
|
|
411
|
+
- creative-canvas
|
|
412
|
+
user-invocable: true
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
# AgentSam Canvas Creation
|
|
416
|
+
|
|
417
|
+
## The non-negotiable sequence
|
|
418
|
+
|
|
419
|
+
**+ New → clean loading workspace → exactly four prepared creative directions →
|
|
420
|
+
one user choice → load the relevant skills and project docs → real operations →
|
|
421
|
+
visible incremental editable work → save/reopen.**
|
|
422
|
+
|
|
423
|
+
A Canvas is a **creation document**, not implicitly a CMS theme, installed site,
|
|
424
|
+
Figma file, CAD file, marketing template, or publication. Its owner/host may later
|
|
425
|
+
convert or export it using a proven domain-specific adapter. Never create a
|
|
426
|
+
customer site, mutate a published theme, or invoke a publishing path merely because
|
|
427
|
+
a Canvas was opened.
|
|
428
|
+
|
|
429
|
+
1. **Entry:** Present a clean spatial stage quickly; restore authorized project
|
|
430
|
+
context if present. Loading must correspond to real initialization. No fixture
|
|
431
|
+
artboards, prefabricated client data, invented stages or compulsory site selector.
|
|
432
|
+
2. **Creative invitation:** AgentSam prepares **four** distinct, concise,
|
|
433
|
+
context-appropriate *vibes/directions*. These are choices about treatment,
|
|
434
|
+
narrative and creative energy—not backend schemas or pre-selected templates.
|
|
435
|
+
Include a short title, perceptible differentiator and visual/design intent.
|
|
436
|
+
Do not bake the same four styles into source for every user and every medium.
|
|
437
|
+
3. **Selection starts work:** One click on a direction begins real planning and
|
|
438
|
+
execution. Do not add another questionnaire unless an indispensable missing
|
|
439
|
+
permission or material blocks a specific operation.
|
|
440
|
+
4. **Read deliberately:** Only after the direction is selected, load this skill''s
|
|
441
|
+
references, the current project''s actual authorized docs, and applicable
|
|
442
|
+
domain skills. Load `agentsam-cms-ready-creation` for CMS-compatible web,
|
|
443
|
+
commerce or application work, not automatically for CAD/3D/video. Record real
|
|
444
|
+
file/skill load receipts; do not simulate reading or claim an unavailable
|
|
445
|
+
document was loaded.
|
|
446
|
+
5. **Full-stack thinking:** Plan content hierarchy, reusable components,
|
|
447
|
+
interactions, state, responsive behavior, assets, data bindings, security,
|
|
448
|
+
backend operations and save semantics. Visual mockups are not functioning
|
|
449
|
+
experiences. Scope each change to available capabilities and the actual host.
|
|
450
|
+
6. **Progressive editing:** Emit real resource/operation receipts as actual
|
|
451
|
+
work lands: structure, edit, render, validation, save. Let the user inspect,
|
|
452
|
+
select, undo and intervene during generation. No animated fake cursor, fake
|
|
453
|
+
file writes, or progress percentages disconnected from execution.
|
|
454
|
+
7. **Continuity:** Keep project identity, source lineage and revision tokens
|
|
455
|
+
stable. Save to the authorized domain owner; distinguish working/saved/published
|
|
456
|
+
state; recover after refresh, cancellation or connection loss.
|
|
457
|
+
8. **Finish:** Show the actual editable result, actions completed, and concrete
|
|
458
|
+
gaps. A screenshot, placeholder, model response or passing isolated test is
|
|
459
|
+
not an accepted or deployed creation experience.
|
|
460
|
+
|
|
461
|
+
## Consistent system, different instruments
|
|
462
|
+
|
|
463
|
+
Use the same + New entry rhythm, direction cards, assistant hierarchy,
|
|
464
|
+
operation activity, selection clarity, context menus, save feedback, keyboard
|
|
465
|
+
language and error recovery across simple and advanced canvases.
|
|
466
|
+
|
|
467
|
+
**Do not** flatten specialist tools. Site Canvas supports pages/artboards and
|
|
468
|
+
responsive components; SamSketch handles meshes and transforms; CAD uses its
|
|
469
|
+
geometry engine; MovieMode has timeline/tracks. All share host authority and
|
|
470
|
+
interaction grammar, not a common fake object format or fixed theme palette.
|
|
471
|
+
|
|
472
|
+
Read on demand:
|
|
473
|
+
- `references/creation-journey.md` for the four-choice experience and states.
|
|
474
|
+
- `references/quality-and-consistency.md` for professional interface rules.
|
|
475
|
+
- `references/fullstack-creation-checklist.md` for implementation acceptance.
|
|
476
|
+
|
|
477
|
+
Use existing `agentsam-experience-delivery`, `agentsam-app-fundamentals`,
|
|
478
|
+
`agentsam-sam-operations`, and `agentsam-progression-guard` when appropriate;
|
|
479
|
+
never interpret a skill itself as authorization or an executable tool.
|
|
480
|
+
','skills/agentsam-canvas-creation/SKILL.md','828a43017618e005eda863aee970940bc26618e91727a35a399a5e85a8bca5d9','read_only','{"origin":"sdk_source","source_id":"agentsam-canvas-creation","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
481
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_08037f8b2064555294043af9','platform','AgentSam CMS-Ready Creation','/cms-ready-creation','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Prepare independent web/app Canvas work for an optional full-stack CMS theme conversion without creating or publishing a site by default.','---
|
|
482
|
+
name: agentsam-cms-ready-creation
|
|
483
|
+
description: >
|
|
484
|
+
Prepare an independent web, UI or commerce Canvas for optional conversion
|
|
485
|
+
to a real CMS theme or website while preserving its original editable
|
|
486
|
+
document and using the authorized CMS source and revision owners.
|
|
487
|
+
metadata:
|
|
488
|
+
short-description: "Full-stack CMS-capable design without automatically creating a theme"
|
|
489
|
+
aliases:
|
|
490
|
+
- cms-ready-canvas
|
|
491
|
+
- canvas-to-theme
|
|
492
|
+
user-invocable: true
|
|
493
|
+
---
|
|
494
|
+
|
|
495
|
+
# AgentSam CMS-Ready Creation
|
|
496
|
+
|
|
497
|
+
## The boundary that must never be blurred
|
|
498
|
+
|
|
499
|
+
**Canvas ≠ CMS theme ≠ installed website ≠ published site.** A Canvas can be
|
|
500
|
+
an independent editable creative project while using structures that later map
|
|
501
|
+
cleanly into a CMS theme. Converting it is an explicit, authenticated,
|
|
502
|
+
validated operation, never a side effect of + New or choosing a creative vibe.
|
|
503
|
+
|
|
504
|
+
Load this skill **after** the user chooses one of the four creative directions
|
|
505
|
+
and the selected medium is web/app UI/commerce or the user explicitly wants
|
|
506
|
+
CMS conversion. Do not require it for CAD, SamSketch, SamSculpt or MovieMode.
|
|
507
|
+
|
|
508
|
+
## Build the real experience first
|
|
509
|
+
|
|
510
|
+
1. Audit the consuming host''s CMS owner, project storage, permissions, page
|
|
511
|
+
model, section/block settings, revisions, assets and publication workflow.
|
|
512
|
+
Inspect current source and schemas; do not guess entity names from a guide.
|
|
513
|
+
2. Define source-backed structure: sitemap or routes, reusable components,
|
|
514
|
+
blocks/sections, design tokens, editable rich content, typography,
|
|
515
|
+
responsive behavior and appropriate data slots.
|
|
516
|
+
3. Define actual frontend states and interactions; map each required dynamic
|
|
517
|
+
behavior to existing or newly authorized backend operations. No mock fetches,
|
|
518
|
+
hardcoded prices/customer identities, or pretend inventory.
|
|
519
|
+
4. Preserve source layers, component IDs, assets and portable design
|
|
520
|
+
metadata. Separate visual design intent from a particular site/theme ID.
|
|
521
|
+
5. Track CMS compatibility as a **mapping/validation result**, not a claim
|
|
522
|
+
that the current Canvas is already deployed, bound or installed.
|
|
523
|
+
6. Keep preview rendering against the Canvas''s current working revision
|
|
524
|
+
until explicit handoff. Preview is not publication.
|
|
525
|
+
7. On request to convert: validate page and component mappings, required
|
|
526
|
+
bindings, access, authoring restrictions, assets and draft revisions.
|
|
527
|
+
Then invoke the **existing** CMS project/draft owner; never write straight
|
|
528
|
+
to published R2 paths or invent a parallel theme table.
|
|
529
|
+
8. Publish only through the owning CMS''s verified publishing workflow and
|
|
530
|
+
explicit user approval. A valid draft is not a live website.
|
|
531
|
+
|
|
532
|
+
## Existing integration guidance (inspect current code before using)
|
|
533
|
+
|
|
534
|
+
The host has CMS site authority, theme-project storage and revision
|
|
535
|
+
functions; the SDK''s `studio-website-theme-install.js` and
|
|
536
|
+
`studio-theme-drafts.js` coordinate theme install and drafts.
|
|
537
|
+
`cms-source.js` writes private R2 HTML draft revisions with version
|
|
538
|
+
checks. Theme-projects use canonical CMS storage, not legacy
|
|
539
|
+
`cms_themes` appearance presets. The actual adapter/route may evolve;
|
|
540
|
+
always verify current runtime capabilities and ownership.
|
|
541
|
+
|
|
542
|
+
Read on demand:
|
|
543
|
+
- `references/cms-handoff-map.md` for independent Canvas → CMS draft mapping.
|
|
544
|
+
- `references/web-fullstack-readiness.md` for real CMS-capable web behaviors.
|
|
545
|
+
|
|
546
|
+
Read `agentsam-canvas-creation` for the shared + New/choice/progressive
|
|
547
|
+
creation sequence. These skills guide implementation; they grant no site,
|
|
548
|
+
store, customer or deployment permissions.
|
|
549
|
+
','skills/agentsam-cms-ready-creation/SKILL.md','78dfadf97e12cc320798610ad5002ea550fe08477e9c10f8a8003c41b684a8e3','read_only','{"origin":"sdk_source","source_id":"agentsam-cms-ready-creation","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
550
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_5e07e736ccdd08f2d3748912','platform','AgentSam Progression Guard','/progression-guard','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Prevent silent regression with explicit local, CI, predeploy, deploy, postdeploy, promotion, and runtime evidence gates.','---
|
|
551
|
+
name: agentsam-progression-guard
|
|
552
|
+
description: >
|
|
553
|
+
Turn application growth into explicit no-regression checkpoints across local work,
|
|
554
|
+
Git/PR CI, predeploy, deploy, postdeploy, and runtime operation. Use when adding a
|
|
555
|
+
feature/service/package, designing hooks or CI/CD, preparing a release, deciding what
|
|
556
|
+
should block a merge/deploy, implementing canary/rollback/feature-flag mechanics, or
|
|
557
|
+
proving a change is safer than the last promoted baseline. Triggers on "no regress",
|
|
558
|
+
"progression guard", "ship guard", "CI", "deploy hook", "pre-commit", "predeploy",
|
|
559
|
+
"postdeploy", "rollback", "canary", "feature flag", "release gate", and "promotion".
|
|
560
|
+
metadata:
|
|
561
|
+
short-description: "Evidence gates and hook contracts that let a growing app progress without silently regressing"
|
|
562
|
+
aliases:
|
|
563
|
+
- progression-guard
|
|
564
|
+
- no-regress
|
|
565
|
+
- ship-guard
|
|
566
|
+
- release-guard
|
|
567
|
+
user-invocable: true
|
|
568
|
+
---
|
|
569
|
+
|
|
570
|
+
# AgentSam Progression Guard
|
|
571
|
+
|
|
572
|
+
The system should not depend on a developer remembering every rule in a million-line
|
|
573
|
+
codebase. Put important invariants at lifecycle checkpoints and make promotion depend
|
|
574
|
+
on evidence.
|
|
575
|
+
|
|
576
|
+
## Core law
|
|
577
|
+
|
|
578
|
+
**A state may be promoted only after the checks appropriate to that boundary pass. A
|
|
579
|
+
failed candidate must not advance the last-known-good baseline.**
|
|
580
|
+
|
|
581
|
+
This is the same principle whether the boundary is a commit, merge, deployment,
|
|
582
|
+
feature rollout, schema migration, or service version.
|
|
583
|
+
|
|
584
|
+
## Checkpoint chain
|
|
585
|
+
|
|
586
|
+
```text
|
|
587
|
+
intent/design
|
|
588
|
+
-> local edit loop
|
|
589
|
+
-> commit/push gate
|
|
590
|
+
-> clean CI / PR gate
|
|
591
|
+
-> predeploy evidence capture
|
|
592
|
+
-> deploy
|
|
593
|
+
-> postdeploy smoke + contract checks
|
|
594
|
+
-> promote baseline
|
|
595
|
+
-> runtime observe / canary / rollback
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
Do not run the heaviest possible suite at every keystroke. Use the dependency graph to
|
|
599
|
+
make early gates fast and affected-only, then require broader proof at merge/release.
|
|
600
|
+
|
|
601
|
+
Read `references/checkpoint-chain.md` for the detailed gate matrix.
|
|
602
|
+
|
|
603
|
+
## Hooks are operational I/O contracts
|
|
604
|
+
|
|
605
|
+
A hook is not "some script that happens to run." Every hook should have a small
|
|
606
|
+
contract:
|
|
607
|
+
|
|
608
|
+
```text
|
|
609
|
+
Hook
|
|
610
|
+
event:
|
|
611
|
+
scope/affected graph:
|
|
612
|
+
immutable input refs:
|
|
613
|
+
allowed reads:
|
|
614
|
+
allowed writes/side effects:
|
|
615
|
+
credential scope:
|
|
616
|
+
command/handler:
|
|
617
|
+
timeout/retry:
|
|
618
|
+
output receipt:
|
|
619
|
+
failure policy: warn | block | rollback | quarantine
|
|
620
|
+
```
|
|
621
|
+
|
|
622
|
+
Prefer idempotent hooks when practical. Never give a hook broader credentials than the
|
|
623
|
+
work it performs. Never let its output leak secret values. Never mark a deploy
|
|
624
|
+
successful because the provider command returned zero if the required postdeploy
|
|
625
|
+
checks have not run.
|
|
626
|
+
|
|
627
|
+
Read `references/hooks-operational-io.md` for hook design and failure semantics.
|
|
628
|
+
|
|
629
|
+
## AgentSam''s existing proof chain
|
|
630
|
+
|
|
631
|
+
Use the SDK mechanics as one coherent gate system rather than unrelated commands:
|
|
632
|
+
|
|
633
|
+
```bash
|
|
634
|
+
# Architecture/index/trust evidence
|
|
635
|
+
agentsam inspect --json
|
|
636
|
+
agentsam security scan --path .
|
|
637
|
+
|
|
638
|
+
# Capture exact predeploy state and delta from the last promoted baseline
|
|
639
|
+
agentsam deploy-receipt capture . --project <project> --json
|
|
640
|
+
|
|
641
|
+
# Run the real provider deploy here
|
|
642
|
+
# e.g. npm run deploy / wrangler deploy / project-specific release command
|
|
643
|
+
|
|
644
|
+
# Only after required postdeploy checks succeed
|
|
645
|
+
agentsam deploy-receipt success . --deployment-id <id> --worker-version <id> --json
|
|
646
|
+
|
|
647
|
+
# If deploy or postdeploy verification fails
|
|
648
|
+
agentsam deploy-receipt failure . --deployment-id <id> --json
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
A successful finalize advances the local promoted Merkle baseline. A failure preserves
|
|
652
|
+
the previous trusted baseline. Keep provider deployment identity and AgentSam evidence
|
|
653
|
+
identity together in the receipt when available.
|
|
654
|
+
|
|
655
|
+
## What each layer should catch
|
|
656
|
+
|
|
657
|
+
- **AST/index gate:** structural contradictions, dependency edges, execution-domain mistakes, contract ownership drift.
|
|
658
|
+
- **Merkle gate:** exact before/after source identity and change scope.
|
|
659
|
+
- **Security gate:** dependency advisories plus client/server trust-boundary contradictions.
|
|
660
|
+
- **Type/schema gate:** compile-time and runtime contract drift.
|
|
661
|
+
- **Test gate:** behavior regressions at unit/integration/end-to-end boundaries.
|
|
662
|
+
- **Firewall/WAF/rate-limit gate:** hostile or abusive ingress patterns before application logic.
|
|
663
|
+
- **Auth/authorization gate:** verified identity, scope, ownership, and privileged action rules inside the application.
|
|
664
|
+
- **Deploy/postdeploy gate:** provider accepted the artifact *and* critical live behavior still works.
|
|
665
|
+
- **Runtime gate:** error/latency/saturation/security signals after promotion.
|
|
666
|
+
|
|
667
|
+
None of these replaces the others.
|
|
668
|
+
|
|
669
|
+
## Package/service progression rule
|
|
670
|
+
|
|
671
|
+
When a package/service changes:
|
|
672
|
+
|
|
673
|
+
```text
|
|
674
|
+
changed node
|
|
675
|
+
-> compute affected downstream nodes
|
|
676
|
+
-> run local affected checks
|
|
677
|
+
-> run clean CI for required contract/build/security coverage
|
|
678
|
+
-> deploy only the changed deployable units plus required dependents
|
|
679
|
+
-> smoke their public contracts
|
|
680
|
+
-> promote their evidence baseline
|
|
681
|
+
```
|
|
682
|
+
|
|
683
|
+
For a cross-service contract change, producers and consumers are one change set even
|
|
684
|
+
if they live in separate packages/repositories. Use versioned schemas/contracts and
|
|
685
|
+
consumer tests to make the coupling explicit.
|
|
686
|
+
|
|
687
|
+
## Deployment safety ladder
|
|
688
|
+
|
|
689
|
+
Not every app needs every rung on day one. Add protection as risk grows:
|
|
690
|
+
|
|
691
|
+
```text
|
|
692
|
+
single deploy + smoke test
|
|
693
|
+
-> automatic rollback on failed smoke
|
|
694
|
+
-> feature flag separating deploy from release
|
|
695
|
+
-> canary / small traffic cohort
|
|
696
|
+
-> metrics comparison window
|
|
697
|
+
-> gradual promotion
|
|
698
|
+
```
|
|
699
|
+
|
|
700
|
+
The point is not ceremony. The point is reducing blast radius and making the system
|
|
701
|
+
prove health before widening exposure.
|
|
702
|
+
|
|
703
|
+
## Regression rules
|
|
704
|
+
|
|
705
|
+
1. Never advance a trusted baseline after a failed deploy or failed postdeploy check.
|
|
706
|
+
2. Never let local success substitute for clean-environment CI on merge/release.
|
|
707
|
+
3. Never make all hooks blocking; classify fast/blocking versus informational/async deliberately.
|
|
708
|
+
4. Never make a pre-commit hook so expensive developers bypass it; move broad work to CI.
|
|
709
|
+
5. Never let branch protection depend on checks that are not deterministic/reproducible enough to trust.
|
|
710
|
+
6. Never deploy a breaking contract without proving affected consumers or a compatibility strategy.
|
|
711
|
+
7. Never use a WAF rule as a substitute for application authorization.
|
|
712
|
+
8. Never auto-rollback a database/schema change unless the data migration itself is designed and proven reversible; prefer forward-fix/expand-contract strategies where rollback would lose data.
|
|
713
|
+
9. Never make feature flags permanent invisible architecture. Give them an owner and cleanup condition.
|
|
714
|
+
10. Never call observability "monitoring later." Define the success/failure signal before promotion.
|
|
715
|
+
|
|
716
|
+
## Completion receipt
|
|
717
|
+
|
|
718
|
+
When acting as the release/build agent, finish with a compact receipt:
|
|
719
|
+
|
|
720
|
+
```text
|
|
721
|
+
Candidate
|
|
722
|
+
git/revision:
|
|
723
|
+
merkle root:
|
|
724
|
+
semantic metadata root:
|
|
725
|
+
affected packages/services:
|
|
726
|
+
|
|
727
|
+
Gates
|
|
728
|
+
type/build:
|
|
729
|
+
tests:
|
|
730
|
+
contracts:
|
|
731
|
+
security:
|
|
732
|
+
deploy:
|
|
733
|
+
postdeploy:
|
|
734
|
+
|
|
735
|
+
Promotion
|
|
736
|
+
provider deployment/version:
|
|
737
|
+
baseline advanced: yes/no
|
|
738
|
+
feature flag/canary state:
|
|
739
|
+
rollback/failure action:
|
|
740
|
+
|
|
741
|
+
Open risks
|
|
742
|
+
...
|
|
743
|
+
```
|
|
744
|
+
|
|
745
|
+
A human should be able to understand why this state was promoted without reading the
|
|
746
|
+
entire CI log.
|
|
747
|
+
','skills/agentsam-progression-guard/SKILL.md','4ec73834b3782e3c1e5f362a7b339f8ee3352e84253cd1e03f19437eca43782d','read_only','{"origin":"sdk_source","source_id":"agentsam-progression-guard","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
748
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_48a8484605e05f3dce56c348','platform','AgentSam Cloudflare Workers','/cloudflare-workers','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Operate and debug Cloudflare Workers with typed Wrangler operations, runtime-aware observability, structured errors, and CPU profiling discipline.','---
|
|
749
|
+
name: agentsam-cloudflare-workers
|
|
750
|
+
description: >
|
|
751
|
+
Treat Cloudflare Workers, Wrangler, Durable Objects, D1, R2, Queues, Hyperdrive,
|
|
752
|
+
Browser, Containers, observability, versions, and deployment mechanics as a native
|
|
753
|
+
AgentSam execution dialect. Use when inspecting, debugging, profiling, operating,
|
|
754
|
+
or shipping Cloudflare-backed applications. Prefer typed Wrangler operations,
|
|
755
|
+
machine-readable output, explicit risk classes, real error/trace identifiers, and
|
|
756
|
+
Worker-runtime semantics over generic shell guessing.
|
|
757
|
+
metadata:
|
|
758
|
+
short-description: "Cloudflare Workers/Wrangler native operations, observability, errors, and CPU discipline"
|
|
759
|
+
aliases:
|
|
760
|
+
- cloudflare
|
|
761
|
+
- workers
|
|
762
|
+
- wrangler
|
|
763
|
+
- cf-native
|
|
764
|
+
user-invocable: true
|
|
765
|
+
---
|
|
766
|
+
|
|
767
|
+
# AgentSam Cloudflare Workers
|
|
768
|
+
|
|
769
|
+
Cloudflare is a first-class execution environment, not just a deploy target. Use its
|
|
770
|
+
runtime rules and Wrangler command contracts as native vocabulary.
|
|
771
|
+
|
|
772
|
+
## Operating laws
|
|
773
|
+
|
|
774
|
+
- Prefer structured Wrangler output such as `whoami --json`, deployments/versions JSON, and JSON tail events where supported.
|
|
775
|
+
- Never ask a model to read or print `wrangler auth token`, API tokens, secrets, cookies, or credential files. Identity status is useful evidence; credential bytes are not.
|
|
776
|
+
- Classify every operation before execution: read, local-runtime, filesystem-write, remote-write, secret-bearing, or long-running stream.
|
|
777
|
+
- Keep `cwd`, account authority, connection identity, and execution leases runtime-owned. Do not accept them from model arguments when they are security-relevant.
|
|
778
|
+
- Preserve real provider/runtime errors: process exit code, HTTP status, machine error type/code, request/Ray IDs, retry metadata, and bounded redacted stderr/body.
|
|
779
|
+
- Do not infer CPU time from `performance.now()` or `Date.now()` around pure computation in a deployed Worker. Production timers advance around I/O; use local workerd/DevTools CPU profiles and production CPU metrics.
|
|
780
|
+
- For expensive CPU investigations, collect a bounded profile summary and selected source evidence first, then hand that packet to the chosen reasoning model. Do not dump the repository or raw multi-megabyte profile into model context.
|
|
781
|
+
- Prefer Web Crypto/native runtime primitives for CPU-intensive cryptography instead of pure-JavaScript reimplementations where the Worker contract allows it.
|
|
782
|
+
- Remember that open TCP sockets have runtime and Durable Object lifecycle/cost implications; close them deliberately and prefer platform-native database connectivity such as Hyperdrive where appropriate.
|
|
783
|
+
|
|
784
|
+
## Native workflow
|
|
785
|
+
|
|
786
|
+
```text
|
|
787
|
+
identify worker/config
|
|
788
|
+
-> verify Cloudflare identity without exposing token
|
|
789
|
+
-> inspect deployments/versions/config/types
|
|
790
|
+
-> reproduce locally with wrangler dev/workerd
|
|
791
|
+
-> collect JSON logs / CPU profile / production metrics
|
|
792
|
+
-> normalize errors and trace IDs
|
|
793
|
+
-> select only implicated source evidence
|
|
794
|
+
-> deterministic summary
|
|
795
|
+
-> optional high-reasoning model audit
|
|
796
|
+
-> verify locally
|
|
797
|
+
-> deploy only through the normal progression guard
|
|
798
|
+
```
|
|
799
|
+
|
|
800
|
+
Read the references for command risk classes, error envelopes, and CPU/observability mechanics.
|
|
801
|
+
','skills/agentsam-cloudflare-workers/SKILL.md','9c4f20f5b103b414b99d71df1bb513a7011bec89682b3aef8d45ac0320eda886','read_only','{"origin":"sdk_source","source_id":"agentsam-cloudflare-workers","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
802
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_57500b4741b6c411744759bc','platform','AgentSam Codebaseindex','/codebaseindex','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Inventory-first codebase ingest. Pipeline IDs are not shell commands — use agentsam codebaseindex / codebaseindex.ingest.','---
|
|
803
|
+
name: agentsam-codebaseindex
|
|
804
|
+
description: Inventory-first codebase ingest — materials, scope, optional embeddings/storage. Pipeline IDs are not shell commands.
|
|
805
|
+
---
|
|
806
|
+
|
|
807
|
+
# AgentSam CodebaseIndex
|
|
808
|
+
|
|
809
|
+
`agentsam-codebaseindex` teaches you how to inventory, scope, index, search,
|
|
810
|
+
and migrate code/document knowledge with AgentSam.
|
|
811
|
+
|
|
812
|
+
CodebaseIndex is designed to work **locally first**.
|
|
813
|
+
|
|
814
|
+
You do NOT need an AgentSam account, a paid LLM, a cloud database, embeddings,
|
|
815
|
+
Supabase, or Cloudflare to build a useful codebase index.
|
|
816
|
+
|
|
817
|
+
Minimum useful setup:
|
|
818
|
+
|
|
819
|
+
```text
|
|
820
|
+
repository/files → deterministic inventory → AST + text index → local SQLite
|
|
821
|
+
→ literal / structural retrieval
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
Embeddings, hosted storage, and model-assisted scope suggestions are upgrades,
|
|
825
|
+
not prerequisites.
|
|
826
|
+
|
|
827
|
+
---
|
|
828
|
+
|
|
829
|
+
## Quick start
|
|
830
|
+
|
|
831
|
+
```sh
|
|
832
|
+
agentsam codebaseindex
|
|
833
|
+
# alias: agentsam ingest
|
|
834
|
+
# tip: use skill agentsam-codebaseindex
|
|
835
|
+
```
|
|
836
|
+
|
|
837
|
+
Guided flow (inventory-first):
|
|
838
|
+
|
|
839
|
+
1. Connection
|
|
840
|
+
2. Materials
|
|
841
|
+
3. Inventory / file map
|
|
842
|
+
4. Scope
|
|
843
|
+
5. Embedding profile
|
|
844
|
+
6. Vector / data source lane
|
|
845
|
+
7. Execution
|
|
846
|
+
|
|
847
|
+
AgentSam shows what exists before asking what should be indexed.
|
|
848
|
+
|
|
849
|
+
---
|
|
850
|
+
|
|
851
|
+
## Important: "pipeline" is not a shell command
|
|
852
|
+
|
|
853
|
+
You may see:
|
|
854
|
+
|
|
855
|
+
```text
|
|
856
|
+
Plan complete · pipeline id sam.codebaseindex.index.run
|
|
857
|
+
```
|
|
858
|
+
|
|
859
|
+
Do **not** type:
|
|
860
|
+
|
|
861
|
+
```sh
|
|
862
|
+
pipeline sam.codebaseindex.index.run
|
|
863
|
+
sam.codebaseindex.index.run
|
|
864
|
+
agentsam sam.codebaseindex.index.run
|
|
865
|
+
```
|
|
866
|
+
|
|
867
|
+
`sam.codebaseindex.index.run` is the **canonical SAM pipeline identifier** —
|
|
868
|
+
receipts, job graphs, telemetry, Workbench, machine-to-machine metadata.
|
|
869
|
+
|
|
870
|
+
| Layer | Identity |
|
|
871
|
+
|-------|----------|
|
|
872
|
+
| CLI | `agentsam codebaseindex` |
|
|
873
|
+
| SAM operation | `codebaseindex.ingest` |
|
|
874
|
+
| SAM pipeline | `sam.codebaseindex.index.run` |
|
|
875
|
+
|
|
876
|
+
```js
|
|
877
|
+
await sam.invoke(''codebaseindex.ingest'', { root: ''.'', planOnly: false });
|
|
878
|
+
```
|
|
879
|
+
|
|
880
|
+
The pipeline name is an identity. zsh does not execute it.
|
|
881
|
+
|
|
882
|
+
---
|
|
883
|
+
|
|
884
|
+
## Plan vs Run
|
|
885
|
+
|
|
886
|
+
### Plan (Dry-run)
|
|
887
|
+
|
|
888
|
+
Planning stages typically complete:
|
|
889
|
+
|
|
890
|
+
```text
|
|
891
|
+
material.stage → repository.snapshot → inventory.classify → scope.resolve
|
|
892
|
+
→ profile.resolve → lane.resolve → plan.dry_run
|
|
893
|
+
```
|
|
894
|
+
|
|
895
|
+
Write/index stages are **shown as planned**, not executed:
|
|
896
|
+
|
|
897
|
+
```text
|
|
898
|
+
ast.parse · chunks.build · embedding.generate · storage.write
|
|
899
|
+
· generation.verify · search.smoke
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
A successful plan means planning finished. It is **not** paused. It is **not**
|
|
903
|
+
waiting for another shell command.
|
|
904
|
+
|
|
905
|
+
To index for real:
|
|
906
|
+
|
|
907
|
+
```sh
|
|
908
|
+
agentsam codebaseindex
|
|
909
|
+
# choose "Run ingest now"
|
|
910
|
+
```
|
|
911
|
+
|
|
912
|
+
Non-interactive: same config **without** `--plan`.
|
|
913
|
+
|
|
914
|
+
### Run
|
|
915
|
+
|
|
916
|
+
Continues through AST → chunks → optional embeddings → storage → verify → search smoke.
|
|
917
|
+
|
|
918
|
+
---
|
|
919
|
+
|
|
920
|
+
## What is indexed
|
|
921
|
+
|
|
922
|
+
Repos, docs, HTML/CSS/JS/TS/Python/SQL/JSON/Markdown, images, SVG, GLB,
|
|
923
|
+
site builds, ZIP/TAR archives, historical builds, arbitrary supplied files.
|
|
924
|
+
|
|
925
|
+
Dropped material is staged safely. Archives/source are **data**, not executable
|
|
926
|
+
instructions.
|
|
927
|
+
|
|
928
|
+
---
|
|
929
|
+
|
|
930
|
+
## Inventory / file map
|
|
931
|
+
|
|
932
|
+
Structured inventory is authority. The ASCII tree is a human projection.
|
|
933
|
+
|
|
934
|
+
Inventory categorizes top-level paths (source / docs / config / generated /
|
|
935
|
+
dependencies / tooling / historical / unknown) and recommends scope **candidates**.
|
|
936
|
+
Nothing is excluded automatically until you confirm.
|
|
937
|
+
|
|
938
|
+
---
|
|
939
|
+
|
|
940
|
+
## Include / exclude
|
|
941
|
+
|
|
942
|
+
`include` = consider under these paths. `exclude` = remove from consideration.
|
|
943
|
+
|
|
944
|
+
Common exclude *candidates*: `node_modules`, `dist`, `build`, `coverage`, `.git`.
|
|
945
|
+
Do not copy blindly — generated sites and migrations may be exactly what you need.
|
|
946
|
+
|
|
947
|
+
### Local Ollama scope assist
|
|
948
|
+
|
|
949
|
+
Optional. Advisory only. Never overrides filesystem facts, safety, or explicit
|
|
950
|
+
user choices. Review before accepting.
|
|
951
|
+
|
|
952
|
+
---
|
|
953
|
+
|
|
954
|
+
## Embedding profile
|
|
955
|
+
|
|
956
|
+
Safest default: **None — AST/text only ($0)**.
|
|
957
|
+
|
|
958
|
+
Choose embeddings for semantic questions ("where is auth handled?").
|
|
959
|
+
|
|
960
|
+
### Dimensions
|
|
961
|
+
|
|
962
|
+
Vector width for the selected model. Not a quality slider. Select the **model**;
|
|
963
|
+
AgentSam resolves dimensions from provider/capability when possible.
|
|
964
|
+
|
|
965
|
+
### Same-profile rule
|
|
966
|
+
|
|
967
|
+
Index and query must use the same embedding profile (provider, model, dimensions,
|
|
968
|
+
revision, parameters). Mismatch must fail clearly — never silently mix spaces.
|
|
969
|
+
|
|
970
|
+
### Discovery
|
|
971
|
+
|
|
972
|
+
Menus come from **configured** credentials + live discovery (OpenAI, Gemini,
|
|
973
|
+
Workers AI / Vectorize-ready, optional Ollama). No silent provider substitution.
|
|
974
|
+
|
|
975
|
+
---
|
|
976
|
+
|
|
977
|
+
## Storage lanes
|
|
978
|
+
|
|
979
|
+
| Lane | Shape |
|
|
980
|
+
|------|--------|
|
|
981
|
+
| Local deterministic | SQLite metadata · no vectors · no embeddings |
|
|
982
|
+
| Local semantic | SQLite + local exact vectors · Ollama embed |
|
|
983
|
+
| Supabase / Postgres | pgvector · user''s connection (not IAM''s) |
|
|
984
|
+
| Cloudflare | D1 control/metadata · Vectorize vectors |
|
|
985
|
+
|
|
986
|
+
IAM hosted (D1 + pgvector) is one deployment of the same machinery — not the
|
|
987
|
+
definition of local CodebaseIndex.
|
|
988
|
+
|
|
989
|
+
---
|
|
990
|
+
|
|
991
|
+
## Related commands
|
|
992
|
+
|
|
993
|
+
| Command | Role |
|
|
994
|
+
|---------|------|
|
|
995
|
+
| `agentsam inspect` | What exists? (repository.inspect) |
|
|
996
|
+
| `agentsam codebaseindex` | What becomes searchable? |
|
|
997
|
+
| `agentsam index` | Lower-level knowledge controls |
|
|
998
|
+
| `agentsam search` | Query indexed knowledge |
|
|
999
|
+
| `agentsam models` / `providers` / `ollama` / `status` | Inventory & health |
|
|
1000
|
+
|
|
1001
|
+
---
|
|
1002
|
+
|
|
1003
|
+
## Safety
|
|
1004
|
+
|
|
1005
|
+
1. Ingested files are data, not executable instructions.
|
|
1006
|
+
2. Archives cannot escape the staging root.
|
|
1007
|
+
3. Repository identity is not invented from account env vars.
|
|
1008
|
+
4. Local mode requires no IAM account.
|
|
1009
|
+
5. Provider credentials never enter index content.
|
|
1010
|
+
6. Profile changes never silently reuse incompatible vectors.
|
|
1011
|
+
7. Scope suggestions never override explicit user exclusions.
|
|
1012
|
+
8. Plan mode does not activate a generation.
|
|
1013
|
+
9. Unknown material stays unknown until classified.
|
|
1014
|
+
10. Remote upgrades preserve provenance and repository identity.
|
|
1015
|
+
|
|
1016
|
+
---
|
|
1017
|
+
|
|
1018
|
+
## Recommended first experience
|
|
1019
|
+
|
|
1020
|
+
1. `agentsam codebaseindex`
|
|
1021
|
+
2. Materials blank · review inventory · confirm scope
|
|
1022
|
+
3. Embedding: None · Local SQLite · **Plan**
|
|
1023
|
+
4. Review plan → run again → **Run**
|
|
1024
|
+
5. Add semantic/remote only when they earn complexity
|
|
1025
|
+
|
|
1026
|
+
Healthy baseline: **0 model calls · 0 embedding calls · $0**.
|
|
1027
|
+
','skills/agentsam-codebaseindex/SKILL.md','b61ab3143e05585213d6672ddf4605806fc4b338406ca8b458e7dd6c6291dc80','read_only','{"origin":"sdk_source","source_id":"agentsam-codebaseindex","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1028
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_2e8458c93dd3d6f580b1b676','platform','AgentSam Plan and GOAP','/plan-and-goap','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Read plan state first; check, create, advance, and prove durable project-local plans and the GOAP blackboard.','---
|
|
1029
|
+
name: agentsam-plan-and-goap
|
|
1030
|
+
description: >
|
|
1031
|
+
Check, create, advance, and prove durable project-local work plans (`agentsam plan`) and read
|
|
1032
|
+
the GOAP blackboard (`agentsam goap`). Use before planning from scratch, when resuming work or
|
|
1033
|
+
switching sessions, and whenever a task spans several steps. Triggers on "plan", "next step",
|
|
1034
|
+
"where did we leave off", "resume", "todo", "sprint", "goap", "blackboard", "what is active",
|
|
1035
|
+
and "acceptance criteria".
|
|
1036
|
+
metadata:
|
|
1037
|
+
short-description: "Read plan state first; advance steps with evidence, only when asked"
|
|
1038
|
+
aliases:
|
|
1039
|
+
- plan
|
|
1040
|
+
- plans
|
|
1041
|
+
- goap
|
|
1042
|
+
- blackboard
|
|
1043
|
+
- resume-work
|
|
1044
|
+
user-invocable: true
|
|
1045
|
+
---
|
|
1046
|
+
|
|
1047
|
+
# AgentSam plans and GOAP
|
|
1048
|
+
|
|
1049
|
+
A plan ledger and a GOAP blackboard already exist. Do not invent a second todo list, a
|
|
1050
|
+
`PLAN.md`, or another tracker. **Read state first, then act.**
|
|
1051
|
+
|
|
1052
|
+
## 1. Read state (always safe)
|
|
1053
|
+
|
|
1054
|
+
```bash
|
|
1055
|
+
agentsam plan list # active plans and progress (e.g. 3/9)
|
|
1056
|
+
agentsam plan show current # goal, steps, and each step''s status
|
|
1057
|
+
agentsam plan next --json # the next step; add --start only to begin it
|
|
1058
|
+
agentsam goap # blackboard: active task, world snapshot, knowledge freshness
|
|
1059
|
+
```
|
|
1060
|
+
|
|
1061
|
+
The project-local GOAP view prints freshness when a local plan is available. If state is old or
|
|
1062
|
+
stale, say so before relying on it. Re-indexing is heavy: do it only when asked.
|
|
1063
|
+
|
|
1064
|
+
### Shared Goals and GOAP
|
|
1065
|
+
|
|
1066
|
+
```bash
|
|
1067
|
+
agentsam goals list --json
|
|
1068
|
+
agentsam goap status --shared --json
|
|
1069
|
+
```
|
|
1070
|
+
|
|
1071
|
+
`agentsam goals set "<title>"` creates an account-owned Work goal that appears in Studio.
|
|
1072
|
+
`agentsam goap new "<title>"` creates and focuses a GOAP ticket in the registered GitHub
|
|
1073
|
+
repository. Studio shows that same ticket and its current status in Goals. Link it to an
|
|
1074
|
+
account goal with `agentsam goals link <goal-id> <ticket-id>` when the ticket advances that goal.
|
|
1075
|
+
The shared commands use the AgentSam login session.
|
|
1076
|
+
|
|
1077
|
+
## 2. Lifecycle commands
|
|
1078
|
+
|
|
1079
|
+
| Command | Use |
|
|
1080
|
+
| --- | --- |
|
|
1081
|
+
| `agentsam plan new "<title>" [--goal "..."] [--type feature\|sprint\|refactor\|incident\|daily\|run]` | Create a plan |
|
|
1082
|
+
| `agentsam plan add "<step>" [--kind inspect\|implement\|verify\|deploy\|decision] [--acceptance "..."]` | Add a step |
|
|
1083
|
+
| `agentsam plan depends TODO_ID DEPENDENCY_ID` | Order steps |
|
|
1084
|
+
| `agentsam plan start TODO_ID` | Mark a step running |
|
|
1085
|
+
| `agentsam plan evidence TODO_ID --type TYPE --ref REF [--note "..."]` | Attach proof |
|
|
1086
|
+
| `agentsam plan accept TODO_ID "<criterion>" [--evidence REF]` | Record a met criterion |
|
|
1087
|
+
| `agentsam plan done TODO_ID` / `agentsam plan block TODO_ID --reason "..."` | Close or block |
|
|
1088
|
+
|
|
1089
|
+
## 3. Rules
|
|
1090
|
+
|
|
1091
|
+
- **Only change plan state when the user asks in the current turn.** Reading is always fine.
|
|
1092
|
+
Do not start, complete, or add steps on your own initiative.
|
|
1093
|
+
- **A step is done when its acceptance criterion has evidence** (test output, command result,
|
|
1094
|
+
hash, commit), not when code was written. Attach evidence, then accept, then done.
|
|
1095
|
+
- **One ledger.** Resume from `plan next`; do not restate the whole plan in chat.
|
|
1096
|
+
- **Plan vs GOAP.** The plan is the durable step ledger. GOAP plans over world state:
|
|
1097
|
+
`planning.goap` (see `agentsam-sam-operations`) and domain plans such as
|
|
1098
|
+
`agentsam plan brand --goap --json`.
|
|
1099
|
+
|
|
1100
|
+
## 4. Which docs are authority
|
|
1101
|
+
|
|
1102
|
+
| Doc | Status |
|
|
1103
|
+
| --- | --- |
|
|
1104
|
+
| `packages/agentsam-goap/README.md` | Authority: maps GOAP ports onto existing tables; frozen v1 contracts |
|
|
1105
|
+
| `docs/architecture/SAM_KERNEL.md` | Authority for `planning.goap` and `planning.astar` |
|
|
1106
|
+
| `docs/plans/SAM_WORK_PROTOCOL.md` | **Proposal only** ("no runtime or package split is authorized"). Do not treat as implemented |
|
|
1107
|
+
|
|
1108
|
+
`agentsam work` is **not** a command, even where help text lists it. Use `plan` and `goap`.
|
|
1109
|
+
|
|
1110
|
+
## Verify before trusting this skill
|
|
1111
|
+
|
|
1112
|
+
```bash
|
|
1113
|
+
agentsam plan --help # command list still matches section 2?
|
|
1114
|
+
agentsam goap # blackboard still prints?
|
|
1115
|
+
```
|
|
1116
|
+
|
|
1117
|
+
Last verified against agentsam-sdk 2.6.12.
|
|
1118
|
+
','skills/agentsam-plan-and-goap/SKILL.md','d802a405c8b8930dd428e3806b5e46c5abc16431226f012f2a64ce4b6990d03b','read_only','{"origin":"sdk_source","source_id":"agentsam-plan-and-goap","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1119
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_39203f0d69d37e7d2f834f61','platform','AgentSam SAM Operations','/sam-operations','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Exact inputs for each SAM operation and how to tell a real result from an empty one.','---
|
|
1120
|
+
name: agentsam-sam-operations
|
|
1121
|
+
description: >
|
|
1122
|
+
Call, describe, and judge SAM operations (`sam.invoke`, `sam.describe`, `sam.discover`) such as
|
|
1123
|
+
repository.inspect, brand.scan, security.scan, package.audit, terminal.exec, planning.goap,
|
|
1124
|
+
decision.evaluate, cad.blender.inspect, arch.* reference lookups, and codebaseindex.ingest.
|
|
1125
|
+
Use when you need the exact input shape of an operation, want to run machinery instead of
|
|
1126
|
+
guessing, or must decide whether a result is actually proof.
|
|
1127
|
+
Triggers on "sam.invoke", "operation", "SAM", "run the scan", "is this proven", "receipt",
|
|
1128
|
+
"input shape", "describe operation".
|
|
1129
|
+
metadata:
|
|
1130
|
+
short-description: Exact inputs for each SAM operation, and how to tell a real result from an empty one
|
|
1131
|
+
aliases:
|
|
1132
|
+
- sam
|
|
1133
|
+
- sam-operations
|
|
1134
|
+
- invoke
|
|
1135
|
+
- operations
|
|
1136
|
+
user-invocable: true
|
|
1137
|
+
---
|
|
1138
|
+
|
|
1139
|
+
# SAM operations
|
|
1140
|
+
|
|
1141
|
+
SAM (Systematic Autonomous Machinery) exposes deterministic work as operations with one canonical
|
|
1142
|
+
id (`module.action`). The CLI is a convenience layer; the operation id is the identity. Full
|
|
1143
|
+
vocabulary: `docs/architecture/SAM_KERNEL.md`.
|
|
1144
|
+
|
|
1145
|
+
Verified against SDK 2.6.18 plus the `cad.bim.ifc.*` operations added after it. The registry grows between releases, so re-run the discovery
|
|
1146
|
+
commands below before relying on any table here.
|
|
1147
|
+
|
|
1148
|
+
## Find out what exists
|
|
1149
|
+
|
|
1150
|
+
```sh
|
|
1151
|
+
agentsam sam list # the registry
|
|
1152
|
+
agentsam sam describe repository.inspect # summary, risk, lanes, input_schema when declared
|
|
1153
|
+
agentsam sam discover <query> --json
|
|
1154
|
+
agentsam sam doctor # installed handlers and availability
|
|
1155
|
+
```
|
|
1156
|
+
|
|
1157
|
+
`discover` returned a subset of the registry (20 of 26 in 2.6.18), so use `list` for the full set
|
|
1158
|
+
and `describe <id>` for any id you already know. `describe` returns `risk` (`read_only` or `write`), `status`, and `input_schema` when the
|
|
1159
|
+
operation declares one; `discover` cards also list the execution `lanes`.
|
|
1160
|
+
|
|
1161
|
+
## Call one
|
|
1162
|
+
|
|
1163
|
+
```js
|
|
1164
|
+
import { createAgentSamClient } from ''@inneranimalmedia/agentsam-sdk'';
|
|
1165
|
+
|
|
1166
|
+
const sam = createAgentSamClient({ cwd: process.cwd() });
|
|
1167
|
+
const r = await sam.invoke(''repository.inspect'', { root: ''.'' });
|
|
1168
|
+
// r.ok, r.data | r.error, r.receipt.id
|
|
1169
|
+
await sam.describe(''codebaseindex.ingest''); // metadata without running it
|
|
1170
|
+
await sam.discover({ query: ''brand'' }); // compact cards
|
|
1171
|
+
```
|
|
1172
|
+
|
|
1173
|
+
There is no `agentsam invoke` verb. Use the client, or the matching CLI command.
|
|
1174
|
+
|
|
1175
|
+
## Exact inputs
|
|
1176
|
+
|
|
1177
|
+
"Checked" says how each row was confirmed in 2.6.18: **run** (invoked, envelope inspected),
|
|
1178
|
+
**schema** (input shape read from `describe`, not invoked), **carried** (from the previous verification, not re-run).
|
|
1179
|
+
|
|
1180
|
+
| Operation | Input | Checked | Notes |
|
|
1181
|
+
|---|---|---|---|
|
|
1182
|
+
| `repository.inspect` | `{"root":"."}` | schema | Read-only; output is large |
|
|
1183
|
+
| `brand.scan` | `{"root":".","maxFiles":20}` | run | Counts donor/reference/ copies, so token totals can be inflated |
|
|
1184
|
+
| `security.scan` | `{"root":".","offline":false}` | run | With `offline:true` it now returns `ok:false`, `status:"incomplete"`, `checked_count:0` |
|
|
1185
|
+
| `package.audit` | `{"root":".","offline":true}` | run | `ok:true` is only the envelope. Offline leaves public candidates unchecked; read the data |
|
|
1186
|
+
| `terminal.exec` | `{"command":"node","args":["-v"]}` | run | Pathless executable plus argv. No shell strings, no `argv` key. Risk: `write` |
|
|
1187
|
+
| `planning.goap` | `{"initialState":{},"goal":{},"actions":[{"id":"a","preconditions":{},"effects":{},"cost":1}]}` | run | Pure, no model spend |
|
|
1188
|
+
| `planning.astar` | JS only: `{ initialState, isGoal(fn), expand(fn) }` | carried | `expand` returns `[{ nextState, cost, action }]`. Not callable from JSON, CLI, or MCP |
|
|
1189
|
+
| `decision.evaluate` | `{"questions":["change_risk"],"state":{}}` | run | Ids: `terminal_lane`, `retrieval_mode`, `change_risk`, `requires_approval`, `security_review_required`, `verification_scope` |
|
|
1190
|
+
| `cad.blender.inspect` | `{"source":"model.blend"}` | run (error path) | Needs Blender and a real file; a missing file returns `ok:false` with the path (see `agentsam-cad`) |
|
|
1191
|
+
| `cad.bim.ifc.inspect` | `{"input":"model.ifc"}` | run | Read-only. Needs IfcOpenShell (found automatically). Check `model.truncated` |
|
|
1192
|
+
| `cad.bim.ifc.validate` | `{"input":"model.ifc"}` | run | Read-only. Schema validation only |
|
|
1193
|
+
| `cad.bim.ifc.diff` | `{"input":"a.ifc","other":"b.ifc"}` | run | Read-only. By GlobalId; states what it does not compare |
|
|
1194
|
+
| `cad.bim.ifc.edit` | `{"input":"a.ifc","output":"b.ifc","base":"<sha256>","edits":[...]}` | run | Risk `write`. New copy only; see `agentsam-arch-bim` for the edit list and guarantees |
|
|
1195
|
+
| `codebaseindex.ingest` | `{"root":"."}` | carried | Risk `write`. Writes under `.agentsam/`, may call an embedding provider. Run only when asked |
|
|
1196
|
+
| `arch.assembly.thickness` | `{"layers":[{"name":"...","thickness_in":0.5}]}` | run | 1-128 layers; sums only the layers given, never infers missing ones |
|
|
1197
|
+
| `arch.material.lookup` | `{"nominal":"2x4","condition":"surfaced_dry"}` | run | `nominal` is one of 2x4, 2x6, 2x8, 2x10, 2x12 |
|
|
1198
|
+
| `arch.qa.compare_dimensions` | `{"expected_in":96,"measured_in":95.9,"tolerance_in":0.125}` | run | Compares two independent measurements; all three fields required |
|
|
1199
|
+
| `arch.references.list` | `{}` or `{"ids":["..."]}` | run | Curated authority URLs and licences; does not fetch pages |
|
|
1200
|
+
| `arch.capabilities.status` | `{}` | run | Discloses implemented reference capabilities; makes no CAD engine claims |
|
|
1201
|
+
|
|
1202
|
+
Other registered families (`artifact.render`, `robotics.*`) declare no input schema. Do not guess
|
|
1203
|
+
their inputs: read `describe` for the summary, and if the shape is not stated, say so instead of
|
|
1204
|
+
trying payloads.
|
|
1205
|
+
|
|
1206
|
+
## Judge the result, not the envelope
|
|
1207
|
+
|
|
1208
|
+
- `ok: true` plus a receipt means the operation ran. It does not mean the result is complete.
|
|
1209
|
+
Always read the data: `status`, `complete`, `checked_count`, `unchecked`.
|
|
1210
|
+
- A receipt id (`samr_...`) is not durable evidence. Right after an invoke,
|
|
1211
|
+
`agentsam receipts show samr_...` reports "not found"; `receipts list` reads a local cache of
|
|
1212
|
+
other receipt kinds, and a durable catalog needs a host adapter. Cite command output, file
|
|
1213
|
+
paths and hashes.
|
|
1214
|
+
- "Is X proven?" means all of: it has schemas (`describe`), a test calls `invoke` and checks the
|
|
1215
|
+
data, and the denied/approval path is exercised for non-read risk.
|
|
1216
|
+
- A failed operation returns `ok:false` with `error.code` (for example `sam_operation_failed`) and
|
|
1217
|
+
a message. Relay the message; do not retry with invented inputs.
|
|
1218
|
+
|
|
1219
|
+
## Known gaps (2.6.18, re-check before relying)
|
|
1220
|
+
|
|
1221
|
+
- Six operations declare an `input_schema` (`repository.inspect` and the five `arch.*`). No
|
|
1222
|
+
operation declares an `output_schema`, so result fields must be read, not assumed.
|
|
1223
|
+
- These CLI commands name operations that are not in the registry: `machine.inspect`,
|
|
1224
|
+
`engine.audit`, `merch.preflight`, `receipts.inspect`, `site.scrape`. Use the CLI for them.
|
|
1225
|
+
- A model can call SAM operations only in a host that wires `createSamCapabilityAdapter` into the
|
|
1226
|
+
capability adapter. Nothing in the SDK does that by default, so otherwise run operations
|
|
1227
|
+
yourself.
|
|
1228
|
+
- IFC can be read, validated, diffed and edited, but there is no general project-to-IFC export:
|
|
1229
|
+
`cad.bim.ifc.export` is a declared intention, not a registered operation (see `agentsam-arch-bim`).
|
|
1230
|
+
','skills/agentsam-sam-operations/SKILL.md','e138ed1d7e3cd87c44db18af0376c2df1b3e472eed72a7d36a829a9efb39f915','read_only','{"origin":"sdk_source","source_id":"agentsam-sam-operations","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1231
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_5d367a7e4aa97cba963dfc93','platform','AgentSam Repo Recon','/repo-recon','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Map a repository with deterministic read-only commands before reading files or spending model tokens.','---
|
|
1232
|
+
name: agentsam-repo-recon
|
|
1233
|
+
description: >
|
|
1234
|
+
Understand an unfamiliar or large repository with read-only deterministic tools before reading
|
|
1235
|
+
files or spending model tokens: `agentsam inspect`, `agentsam machine inspect`, brand, security
|
|
1236
|
+
and package scans, and the knowledge index. Use at the start of any task in a repo you have not
|
|
1237
|
+
mapped, when asked "what is in this repo", "what changed", "is it safe", or "where does X live".
|
|
1238
|
+
Triggers on "recon", "inspect", "map the repo", "audit", "scan", and "what do we have".
|
|
1239
|
+
metadata:
|
|
1240
|
+
short-description: "Map a repo with deterministic read-only commands first; escalate to the index or a model last"
|
|
1241
|
+
aliases:
|
|
1242
|
+
- recon
|
|
1243
|
+
- repo-recon
|
|
1244
|
+
- inspect-first
|
|
1245
|
+
- map-repo
|
|
1246
|
+
user-invocable: true
|
|
1247
|
+
---
|
|
1248
|
+
|
|
1249
|
+
# Repository recon
|
|
1250
|
+
|
|
1251
|
+
Deterministic tools are cheaper, faster, and checkable. Use them first. Escalate to the index
|
|
1252
|
+
or a model only for what they cannot answer.
|
|
1253
|
+
|
|
1254
|
+
## Order of operations
|
|
1255
|
+
|
|
1256
|
+
```bash
|
|
1257
|
+
agentsam inspect --json # snapshot: files, systems, Merkle root, trust boundary
|
|
1258
|
+
agentsam machine inspect <path> # focused look at a directory; detail goes to .agentsam/machine/runs/<run_id>/
|
|
1259
|
+
agentsam brand scan --json # colors, type, assets, token conflicts
|
|
1260
|
+
agentsam security scan --json # dependency + trust-boundary scan (needs network to be complete)
|
|
1261
|
+
agentsam package audit --json # publish readiness of each package
|
|
1262
|
+
agentsam index status # is the knowledge index fresh?
|
|
1263
|
+
```
|
|
1264
|
+
|
|
1265
|
+
Add `--offline` to the security and package commands only when you have no network, and then
|
|
1266
|
+
**report the result as incomplete**: offline `security.scan` returns `status: "incomplete"` with
|
|
1267
|
+
`checked_count: 0`, which is not a clean bill of health.
|
|
1268
|
+
|
|
1269
|
+
## Read the result honestly
|
|
1270
|
+
|
|
1271
|
+
- Check completeness fields (`status`, `complete`, `checked_count`, `unchecked`) before saying "clean".
|
|
1272
|
+
- `brand scan` includes donor and `reference/` copies of the same files, so counts and
|
|
1273
|
+
near-duplicate colors are inflated until those paths are excluded.
|
|
1274
|
+
- `machine inspect` writes run artifacts under the target''s `.agentsam/machine/runs/`. That is
|
|
1275
|
+
expected; it is not a source change.
|
|
1276
|
+
- Cite what you ran and the output you saw. Do not infer repository facts from folder names.
|
|
1277
|
+
|
|
1278
|
+
## Index sharp edges
|
|
1279
|
+
|
|
1280
|
+
- `agentsam codebaseindex` is a guided wizard that can call an embedding provider and write under
|
|
1281
|
+
`.agentsam/`. Run it only when asked.
|
|
1282
|
+
- In 2.6.12 the wizard''s inventory step printed `0 files` for source directories and a LOC figure
|
|
1283
|
+
far below `agentsam inspect`''s count, then cancelled after "Yes". Treat its inventory as
|
|
1284
|
+
unreliable and trust `agentsam inspect`.
|
|
1285
|
+
- A narrow ingest scope reported hundreds of previously indexed files as `removed`. Read the
|
|
1286
|
+
`changes` block before narrowing scope.
|
|
1287
|
+
|
|
1288
|
+
## Related
|
|
1289
|
+
|
|
1290
|
+
- Operation inputs for the same machinery: `agentsam-sam-operations`.
|
|
1291
|
+
- Where a command or package lives: `agentsam-sdk-orientation`.
|
|
1292
|
+
|
|
1293
|
+
Last verified against agentsam-sdk 2.6.12.
|
|
1294
|
+
','skills/agentsam-repo-recon/SKILL.md','3801c41bcf7cd1d63cfd03bf8f59e797e270e5fe5d54f15816e50acb470b694e','read_only','{"origin":"sdk_source","source_id":"agentsam-repo-recon","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1295
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_38c96007d332d062d6a7e2de','platform','AgentSam CAD','/cad','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Route CAD, BIM/IFC and 3D work through existing project contracts, engines, host jobs and verified artifacts; includes Blender, FreeCAD, OpenSCAD, OCCT, IAMScene and IAMGeometry.','---
|
|
1296
|
+
name: agentsam-cad
|
|
1297
|
+
description: >
|
|
1298
|
+
Plan, open, import, inspect, edit, compare, validate, render, convert, and export CAD, BIM,
|
|
1299
|
+
engineering, and 3D assets through AgentSam''s existing contracts and engines. Use when someone
|
|
1300
|
+
asks to work with a CAD file or project, make or repair geometry, check dimensions or units,
|
|
1301
|
+
build a model, generate drawings, render a preview, prepare fabrication outputs, or debug an
|
|
1302
|
+
engine. Covers Blender, FreeCAD, OpenSCAD, native OCCT, CAD project contracts, SAM CAD jobs,
|
|
1303
|
+
IAMScene, IAMGeometry, and BIM/IFC. Triggers on CAD, BIM, IFC, STEP, STP, IGES, BREP, FCStd,
|
|
1304
|
+
STL, OBJ, PLY, 3MF, DXF, DWG, SVG, GLB, GLTF, BLEND, MOV, MP4, .ifc, .step, .stl, .blend, .mov,
|
|
1305
|
+
"open/import this model", "why won''t this file import", "convert this CAD file", "box with a
|
|
1306
|
+
hole", "check FreeCAD/Blender/OCCT", "compare these models", and "export a drawing".
|
|
1307
|
+
metadata:
|
|
1308
|
+
short-description: "Route CAD/BIM work through real contracts, engines and verified outputs"
|
|
1309
|
+
aliases:
|
|
1310
|
+
- cad
|
|
1311
|
+
- blender
|
|
1312
|
+
- freecad
|
|
1313
|
+
- openscad
|
|
1314
|
+
- occt
|
|
1315
|
+
- bim
|
|
1316
|
+
- ifc
|
|
1317
|
+
- iamscene
|
|
1318
|
+
- iamgeometry
|
|
1319
|
+
user-invocable: true
|
|
1320
|
+
---
|
|
1321
|
+
|
|
1322
|
+
# AgentSam CAD
|
|
1323
|
+
|
|
1324
|
+
Treat CAD as source-controlled engineering work, not a one-shot image-generation task. Preserve the
|
|
1325
|
+
original source, coordinate system, units, semantic identity and revision. A successful process
|
|
1326
|
+
exit is not proof that the geometry is correct.
|
|
1327
|
+
|
|
1328
|
+
## Route the work correctly
|
|
1329
|
+
|
|
1330
|
+
1. **Contract — what is authoritative?** A typed Blender recipe, a revisioned CAD project, an IFC
|
|
1331
|
+
source, an `.iamscene` document, or an `.iamgeometry` reference manifest. The canonical portable
|
|
1332
|
+
project envelope is `cad.project.v2` (`protocol/cad/cad.project.v2.schema.json`). The local
|
|
1333
|
+
`agentsam cad project` file-store workflow is still the legacy v1 runtime; do not send a v2
|
|
1334
|
+
document through it. Use a host project adapter only when its live tool catalog confirms v2
|
|
1335
|
+
support. See `references/projects-and-operations.md`.
|
|
1336
|
+
2. **Operation — who may perform it?** Use the existing `design_*`, `cad.project.*`, `cad.model.*`,
|
|
1337
|
+
`cad.job.*`, `cad.bim.ifc.*`, or `iamscene.*` operation that matches the task. A skill or manifest
|
|
1338
|
+
is not an authorization grant. Host operations must enforce tenant, project, workspace and
|
|
1339
|
+
resource scope plus required approval.
|
|
1340
|
+
3. **Engine and lane — where will it run?** Choose Blender, FreeCAD, OpenSCAD, OCCT, IfcOpenShell,
|
|
1341
|
+
or IAMScene''s registered adapters, then use an authorized local-device, remote-VM or CAD-service
|
|
1342
|
+
lane. A Cloudflare Worker must not spawn native geometry binaries.
|
|
1343
|
+
4. **Proof — what did the engine actually produce?** Check the source hash, project revision,
|
|
1344
|
+
engine/version, operation receipt, output bytes/hash, units, geometry/semantic checks and any
|
|
1345
|
+
unsupported steps. Never promote `planned` or `running` to `generated` or `validated` by inference.
|
|
1346
|
+
|
|
1347
|
+
## Choose the existing entry point
|
|
1348
|
+
|
|
1349
|
+
| Goal | Start here |
|
|
1350
|
+
|---|---|
|
|
1351
|
+
| Build a mesh/scene from a typed recipe | Node CLI: `agentsam cad blender build <recipe.json> --out <model.blend> --json` |
|
|
1352
|
+
| Inspect, render or export a Blender model | `agentsam cad blender inspect`, `render-preview`, `export`; inspect topology as well as dimensions |
|
|
1353
|
+
| Create or edit a legacy local project | Node CLI: `agentsam cad project <get\|validate\|apply\|save\|restore\|build\|inspect\|render\|export>`; this local store is v1, not the v2 authoring runtime |
|
|
1354
|
+
| Run the existing local project workflows | `agentsam cad project workflow cad.house_baseline …` or `cad.edit_preview`; both are legacy v1 workflows |
|
|
1355
|
+
| Build exact solids / STEP / BREP / GLB | Existing `design_model_*` tools with `engine:"occt"`, backed by the native `agentsam-occt` binary |
|
|
1356
|
+
| Run FreeCAD locally without Node | Python CLI: `agentsam cad build --request req.json --out part.step`; use `agentsam cad doctor --engine all` first |
|
|
1357
|
+
| Generate with FreeCAD, OpenSCAD or Blender as durable work | Existing host operation `cad.job.generate`; use `AgentSamClient.cad_jobs` with an injected trusted host invoker |
|
|
1358
|
+
| Inspect, validate, compare or edit IFC | Node CLI: `agentsam cad ifc status\|inspect\|validate\|diff\|edit`; edit writes a new IFC file, never overwrites the source |
|
|
1359
|
+
| Inventory native CAD source assets | `AgentSamClient(procedure_invoker=trusted_host).assets.inventory()`; reuses the authorized `repo.asset.inventory@0.1.0` PrimeTech procedure, not a local duplicate scanner |
|
|
1360
|
+
| Author or exchange scenes and geometry references | `iamscene` CLI and existing `iamscene.*` SAM operations; query `iamscene formats` before import/export |
|
|
1361
|
+
| Transfer provider files or run short advertised provider operations | Python `CadServiceClient`; use `download_to()` for large artifacts |
|
|
1362
|
+
|
|
1363
|
+
Both the Node SDK and the Python distribution install an executable named `agentsam`. The command
|
|
1364
|
+
on `PATH` decides which CLI answers. Check `which agentsam` and `agentsam --version` before assuming
|
|
1365
|
+
a subcommand exists: Node owns `cad blender`, `cad ifc`, and `cad project`; pip owns `cad doctor`
|
|
1366
|
+
and the local FreeCAD `cad build` lane.
|
|
1367
|
+
|
|
1368
|
+
## Discover capabilities before selecting an engine
|
|
1369
|
+
|
|
1370
|
+
Run only the discovery commands relevant to the selected installation:
|
|
1371
|
+
|
|
1372
|
+
```sh
|
|
1373
|
+
# Node SDK / SAM project and IFC tools
|
|
1374
|
+
agentsam cad blender status --json
|
|
1375
|
+
agentsam cad ifc status --json
|
|
1376
|
+
agentsam cad project tools
|
|
1377
|
+
agentsam cad project workflows
|
|
1378
|
+
|
|
1379
|
+
# Python SDK / local native engines
|
|
1380
|
+
agentsam cad doctor --engine all
|
|
1381
|
+
|
|
1382
|
+
# IAMScene''s actual adapter matrix; pass the discovered native OCCT binary when needed
|
|
1383
|
+
iamscene formats --binary ~/.agentsam/bin/agentsam-occt
|
|
1384
|
+
```
|
|
1385
|
+
|
|
1386
|
+
Treat the live host catalog and engine receipts as authoritative. `contracts/source-types.v2.json`
|
|
1387
|
+
and `src/lib/cad/format-policy.js` identify file/source formats; they do not prove that an engine
|
|
1388
|
+
can import, edit, preview, convert or export them. IAMScene''s format registry reports those
|
|
1389
|
+
operations separately. See `references/engines-and-lanes.md` and
|
|
1390
|
+
`references/scene-geometry-bim.md`.
|
|
1391
|
+
|
|
1392
|
+
## Required execution sequence
|
|
1393
|
+
|
|
1394
|
+
1. **Inventory the source.** Keep the original immutable. Identify format from signatures/content
|
|
1395
|
+
and application context, not extension alone. Resolve ambiguous `.stl`, `.obj`, `.nc` and similar
|
|
1396
|
+
suffixes before choosing a reader.
|
|
1397
|
+
2. **Lock the design authority.** Prefer the existing project/scene/IFC source and its revision.
|
|
1398
|
+
Preserve source units, coordinate frame, element IDs, GlobalIds, relationships and unknown
|
|
1399
|
+
extension data. Do not silently rescale or redraw approved dimensions.
|
|
1400
|
+
3. **Check the real engine and lane.** A binary on disk is not a ready engine. Run its doctor/probe
|
|
1401
|
+
and confirm the required operation is advertised by the selected host.
|
|
1402
|
+
4. **Validate inputs before writes.** Validate the project schema, domain module, recipe, IFC edit
|
|
1403
|
+
request, units and source references. Use the current revision and expected hash/revision.
|
|
1404
|
+
5. **Execute through the existing host.** Use typed operations and trusted job invokers. Do not
|
|
1405
|
+
launch arbitrary Python, construct shell strings, create a second queue, or bypass SAM approval.
|
|
1406
|
+
6. **Inspect the produced artifact.** Check dimensions and units, but also topology/volume for
|
|
1407
|
+
solids, manifold state for meshes, and GlobalIds/relationships/properties for IFC. Open the
|
|
1408
|
+
preview when one is produced.
|
|
1409
|
+
7. **Verify and report.** Match the inspected input SHA-256 to the built artifact SHA-256. For a
|
|
1410
|
+
v2 output, require its file URI, SHA-256, source project revision, executor/version and correlated
|
|
1411
|
+
receipt before calling it `generated`; require validation evidence before calling it `validated`.
|
|
1412
|
+
8. **State limitations explicitly.** Separate verified facts, calculations, declared source values,
|
|
1413
|
+
proposals and professional-review requirements. `professionalReview.permitReady` and `sealed`
|
|
1414
|
+
remain false; SAM never issues professional seals.
|
|
1415
|
+
|
|
1416
|
+
## Hard boundaries
|
|
1417
|
+
|
|
1418
|
+
- A format identity is not an adapter capability. Never infer import/export from an extension.
|
|
1419
|
+
- A valid `cad.project.v2` schema is not proof that the selected host has a v2 authoring runtime.
|
|
1420
|
+
CAD artifact/evidence storage is not project-document persistence; the current Worker scaffold
|
|
1421
|
+
reports `worker_routes_not_wired`, while the project-tools route is still local Node/v1.
|
|
1422
|
+
- IFC semantic projection into a CAD project is source-linked/read-only. The IFC edit operation edits
|
|
1423
|
+
an allowlisted set of source properties into a **new file**; it is not parametric geometry editing.
|
|
1424
|
+
- `CadBuildingClient` is a compatibility wrapper for the experimental rectangular-building proof,
|
|
1425
|
+
not the general CAD job API. It must refuse readiness until runtime proof is advertised.
|
|
1426
|
+
- `CadServiceClient` handles short provider HTTP operations and file transfer. `CadJobClient` uses
|
|
1427
|
+
the host''s existing `cad.job.*` lifecycle. They are not interchangeable.
|
|
1428
|
+
- No local SQLite queue, duplicate project store, duplicate format catalog, fake geometry kernel,
|
|
1429
|
+
guessed unit, or silent fallback.
|
|
1430
|
+
|
|
1431
|
+
## Load the relevant reference only when needed
|
|
1432
|
+
|
|
1433
|
+
- Engine choice, binary discovery, provider lanes: `references/engines-and-lanes.md`.
|
|
1434
|
+
- Project revisions, v1/v2 boundaries, SAM operations and workflow contracts:
|
|
1435
|
+
`references/projects-and-operations.md`.
|
|
1436
|
+
- IAMScene, IAMGeometry, format capability matrix and BIM/IFC: `references/scene-geometry-bim.md`.
|
|
1437
|
+
- Python clients, durable jobs, authenticated service transport and large files:
|
|
1438
|
+
`references/python-service-and-jobs.md`.
|
|
1439
|
+
- Hash chains, geometric/semantic proof, errors and triage: `references/proof-and-triage.md`.
|
|
1440
|
+
','skills/agentsam-cad/SKILL.md','61d2c2079a50ac4a78221374d596f79b53c315d6713721bd68f28ef7d06ed458','read_only','{"origin":"sdk_source","source_id":"agentsam-cad","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1441
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_9b94be30b6c07cb1f2013bf0','platform','AgentSam Experience Delivery','/experience-delivery','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Machinery-first, source-faithful creative experience workflow with real interactive and CMS acceptance gates; preserve originals and founder authority.','---
|
|
1442
|
+
name: agentsam-experience-delivery
|
|
1443
|
+
description: >
|
|
1444
|
+
Coordinate machinery-first, source-faithful brand and digital experience creation using
|
|
1445
|
+
existing AgentSam SDK capabilities. Use for experience atlases, brand direction, case
|
|
1446
|
+
studies, interactive scroll scenes, creative asset mining, CMS handoffs, and multi-agent
|
|
1447
|
+
design-to-development workflows. Preserve originals and follow project owner decisions.
|
|
1448
|
+
metadata:
|
|
1449
|
+
short-description: "Verify SAM first; preserve real creative sources; deliver authored, functional experiences"
|
|
1450
|
+
aliases:
|
|
1451
|
+
- experience-delivery
|
|
1452
|
+
- experience-atlas
|
|
1453
|
+
- brand-experience
|
|
1454
|
+
- scene-handoff
|
|
1455
|
+
user-invocable: true
|
|
1456
|
+
---
|
|
1457
|
+
|
|
1458
|
+
# AgentSam experience delivery
|
|
1459
|
+
|
|
1460
|
+
This is a **portable working method** for creative work, not a brand preset, a new planner, an art-direction authority, or proof of implementation. Do not import any specific company''s identity into product source.
|
|
1461
|
+
|
|
1462
|
+
## Source authority and start condition
|
|
1463
|
+
|
|
1464
|
+
1. Read AGENTSAM.md and .agentsamrules in the target repository, then existing contracts/PRDs. Resolve actual working directory, HEAD, dirty files and other agents'' branches.
|
|
1465
|
+
2. Locate a consuming brand''s canonical guide, decision register, approved identity, preserved original assets and existing CMS/site owner. **Never assume a named brand or storage provider is configured.**
|
|
1466
|
+
3. Report findings as OBSERVED / INFERRED / PROPOSED / APPROVED / IMPLEMENTED / VERIFIED / RELEASED. Always cite source and revision for observations.
|
|
1467
|
+
4. If the user requests project planning only, do not silently modify source, initialize a new index, create Plan steps, trigger billable providers or launch a swarm. An approved execution task may proceed through existing policy.
|
|
1468
|
+
5. Use docs/plans/SAM_MACHINERY_TO_EXPERIENCE_2026-10-15.md as the **proposed** integration runbook. Use docs/reference/INNERANIMALMEDIA_EXPERIENCE_ACCEPTANCE_2026-10-15.md as a **reference fixture only**.
|
|
1469
|
+
|
|
1470
|
+
## Machinery-first preflight
|
|
1471
|
+
|
|
1472
|
+
Do not begin generating themes, mockups or new renderer code before proving the operations needed for the particular task.
|
|
1473
|
+
|
|
1474
|
+
- Use agentsam inspect / machine inspect / machine crawl where appropriate for source and dependency evidence, and check the existing knowledge index and freshness before scanning again.
|
|
1475
|
+
- Reuse repository identity and previous decision evidence; distinguish a warm cache from a stale generation.
|
|
1476
|
+
- Discover **bound and authorized** operations; a catalog item, npm package, or D1 row alone is not executable proof.
|
|
1477
|
+
- Check SAM client root resolution, operation schema, required resource authority, execution lane, and receipts for the operations intended to make changes.
|
|
1478
|
+
- Use GOAP/A* for feasible action selection, existing Plan for durable steps and Work Graph for representations. No competing project database.
|
|
1479
|
+
- For scripts, prefer specialized operations; fall back to approved sam.superbash only after permission, exact script scope and output limits are known.
|
|
1480
|
+
- Confirm which storage adapter and CMS binding actually exist. Missing R2, local SQLite or provider grants is not permission to invent a default.
|
|
1481
|
+
|
|
1482
|
+
**If these gates fail:** report the blocker with current evidence and propose or execute a scoped kernel/adapter fix as authorized. Do not continue with visual polish to conceal it.
|
|
1483
|
+
|
|
1484
|
+
## The experience workflow
|
|
1485
|
+
|
|
1486
|
+
**1. Incoming / purpose.** Read actual founder/client intent, business problem, audience and existing materials. Identify what already exists; do not repeat solved discovery questions.
|
|
1487
|
+
|
|
1488
|
+
**2. Research / source audit.** Inspect artifacts without editing; classify original, approved, active, experimental, donor/reference, archived and derivative. Record source hashes, licensing status where known and competing decisions without rewriting them.
|
|
1489
|
+
|
|
1490
|
+
**3. Brand & Experience Map.** Define recognizable narrative, user outcome, intended feeling and one visual/story thread. Distinguish visual references from assets a client owns. A style is never approved by frequency, AI preference or a score.
|
|
1491
|
+
|
|
1492
|
+
**4. Journey & Structure.** Build a sitemap, routes, visitor flows, decision moments and real calls to action. Trace each to an actual page, product or capability, not invented destinations.
|
|
1493
|
+
|
|
1494
|
+
**5. Low-fidelity interaction/wireflows.** Arrange content and controls, define user states, progression, empty/failure/loading states and responsive priorities without being distracted by decoration.
|
|
1495
|
+
|
|
1496
|
+
**6. High-fidelity authored experience.** Work from approved materials and actual editable source assets. Coordinate typography, material, composition, motion, navigation, scrollytelling, accessibility and a reduced-motion alternative. Make each visual transition change user understanding.
|
|
1497
|
+
|
|
1498
|
+
**7. Technical handoff and verification.** Retain stable design IDs (direction/scene/screen), map them to component IDs, asset versions, data contracts, CMS settings, run events and tests. The source-to-preview link must be inspectable and survive an agent restart. Apply the on-demand `references/visual-design-fidelity.md` standard: record recreation vs interpretation vs variation, one canonical editable design, and must-match / behaviorally-equivalent / open-to-interpretation requirements. Do not confuse a device presentation with a reproducible flat design or production capture.
|
|
1499
|
+
|
|
1500
|
+
**8. Ownership.** Demonstrate actual edit -> save draft -> preview -> publish -> reload/reopen or clearly mark the missing integration. No fake control affordances or claims that a visual-only demo changed persisted data.
|
|
1501
|
+
|
|
1502
|
+
**9. Campaign/application.** Content and Campaign consume approved Brand sources; their outcomes need real evidence. Product screenshots and historical concepts carry accurate status labels.
|
|
1503
|
+
|
|
1504
|
+
## Source mining rule
|
|
1505
|
+
|
|
1506
|
+
Before resurrecting a "cool" animation or donor section, write a **source candidate card**:
|
|
1507
|
+
|
|
1508
|
+
- what story/interaction problem the source solves;
|
|
1509
|
+
- canonical original location and hash;
|
|
1510
|
+
- source format, dependencies and runtime requirements;
|
|
1511
|
+
- current behavior actually tested vs inferred;
|
|
1512
|
+
- relationship to approved identity and site narrative;
|
|
1513
|
+
- reuse option: keep original / adapter / derived variation / reject;
|
|
1514
|
+
- performance, accessibility, mobile, license and storage risks;
|
|
1515
|
+
- consuming operation/component, owner and acceptance gate.
|
|
1516
|
+
|
|
1517
|
+
Do not mine unlimited files or fill the design library with interchangeable effects. Rank candidates by usefulness to the approved story and integration feasibility; visual novelty alone is insufficient.
|
|
1518
|
+
|
|
1519
|
+
## Multi-agent collaboration
|
|
1520
|
+
|
|
1521
|
+
Delegate separate **bounded** jobs to kernel, repository/knowledge, brand evidence, asset provenance, scene/CMS, content/campaign and QA owners. Record starting SHA, file ownership, dependencies, expected artifact, verification and rollback.
|
|
1522
|
+
|
|
1523
|
+
One owner controls each shared schema or registry edit. Agents can perform read-only parallel work, but do not concurrently edit a shared contract. No merging, publishing, deleting worktrees or modifying originals without applicable approval.
|
|
1524
|
+
|
|
1525
|
+
Each agent returns a traceable handoff: files/commits; operation IDs; test outputs and limitations; screenshots/working interaction captures when applicable; source hash; unresolved decisions; status. The integrator accepts or rejects against behavior, not promise.
|
|
1526
|
+
|
|
1527
|
+
## Creative acceptance questions
|
|
1528
|
+
|
|
1529
|
+
- Is this unmistakably the client''s identity rather than a polished generic agency template?
|
|
1530
|
+
- Does motion contribute understanding, agency or atmosphere rather than distract?
|
|
1531
|
+
- Can someone complete a real useful interaction, not just watch a simulation?
|
|
1532
|
+
- Can the owner revise the result through existing systems without depending on the original developer''s computer?
|
|
1533
|
+
- Is the identity/source preserved and the implementation faithful across viewports?
|
|
1534
|
+
- Are original artwork, experimental concepts, active sources and released work clearly distinguished?
|
|
1535
|
+
- Could an unrelated customer reuse these SDK operations with entirely different branding and infrastructure?
|
|
1536
|
+
|
|
1537
|
+
Reject a visually impressive implementation when the answer to a required functional or authority question is no.
|
|
1538
|
+
|
|
1539
|
+
## Related existing skills
|
|
1540
|
+
|
|
1541
|
+
- agentsam-repo-recon — first inspection and source evidence.
|
|
1542
|
+
- agentsam-sdk-orientation — find the canonical implementation owner.
|
|
1543
|
+
- agentsam-sam-operations — exact executable SAM contracts.
|
|
1544
|
+
- agentsam-plan-and-goap — durable tasks, preconditions and evidence.
|
|
1545
|
+
- agentsam-progression-guard — preserve working surfaces and release gates.
|
|
1546
|
+
|
|
1547
|
+
This skill supplies no privileged tools by itself. It changes how existing operations are **selected and verified**, not who is allowed to execute them.
|
|
1548
|
+
','skills/agentsam-experience-delivery/SKILL.md','3df2580b6de485aa67521a8bbf5578280caa73cd0489551ae986b70fe83c1475','read_only','{"origin":"sdk_source","source_id":"agentsam-experience-delivery","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1549
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_376e71cdbb125945b1ddc58a','platform','AgentSam SDK Orientation','/sdk-orientation','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Authoritative source for each kind of thing in the SDK, and the habit of checking before building.','---
|
|
1550
|
+
name: agentsam-sdk-orientation
|
|
1551
|
+
description: >
|
|
1552
|
+
Find where something lives in the agentsam-sdk repo and which source is authoritative: commands,
|
|
1553
|
+
packages, operations, contracts, skills, migrations, and docs, including which docs are
|
|
1554
|
+
proposals. Use at the start of work in this repo, before building anything new, and whenever
|
|
1555
|
+
you are about to guess. Triggers on "where is", "what do we have", "is there already",
|
|
1556
|
+
"catalog", "inventory", "which doc is real", and "orientation".
|
|
1557
|
+
metadata:
|
|
1558
|
+
short-description: "Authoritative source for each kind of thing, and the habit of checking before building"
|
|
1559
|
+
aliases:
|
|
1560
|
+
- orientation
|
|
1561
|
+
- sdk-map
|
|
1562
|
+
- where-is-it
|
|
1563
|
+
- catalog
|
|
1564
|
+
user-invocable: true
|
|
1565
|
+
---
|
|
1566
|
+
|
|
1567
|
+
# agentsam-sdk orientation
|
|
1568
|
+
|
|
1569
|
+
Most rediscovery comes from not knowing which file is the source of truth. Use this table, then
|
|
1570
|
+
**check what already exists before adding anything**.
|
|
1571
|
+
|
|
1572
|
+
## Start here
|
|
1573
|
+
|
|
1574
|
+
```bash
|
|
1575
|
+
agentsam cheat-sheet # grouped command overview
|
|
1576
|
+
agentsam help <topic> # focused help generated from the command catalog
|
|
1577
|
+
agentsam skills # list portable skills
|
|
1578
|
+
```
|
|
1579
|
+
|
|
1580
|
+
## Source of truth by kind
|
|
1581
|
+
|
|
1582
|
+
| Question | Authority |
|
|
1583
|
+
| --- | --- |
|
|
1584
|
+
| What CLI commands exist? | `src/cli/command-catalog.js` (generated view: `docs/generated/SDK_CAPABILITY_INVENTORY.md`) |
|
|
1585
|
+
| What packages and apps exist? | `agentsam.yaml`, `packages/catalog/` |
|
|
1586
|
+
| What can be invoked as an operation? | `src/sam/` (`seed.js` lists registered ops); vocabulary in `docs/architecture/SAM_KERNEL.md` |
|
|
1587
|
+
| What are portable operation/tool contracts? | `packages/agentsam-contracts/src/operations.ts` and `src/tools.ts` plus package-owned `schemas/`; `protocol/` contains tested public mirrors |
|
|
1588
|
+
| What are the capability inputs? | `protocol/capabilities/manifest.json` and the `*.schema.json` beside it |
|
|
1589
|
+
| What rules apply in this repo? | `AGENTSAM.md` (canonical), `.agentsamrules` |
|
|
1590
|
+
| What skills exist? | `skills/catalog.json` |
|
|
1591
|
+
| What DB tables does it assume? | `migrations/` and `registry/` |
|
|
1592
|
+
|
|
1593
|
+
`docs/generated/SDK_CAPABILITY_INVENTORY.md` says it plainly: **listing is not proof.** A command
|
|
1594
|
+
or package existing does not mean it works. Run it.
|
|
1595
|
+
|
|
1596
|
+
## Vocabulary (do not flatten)
|
|
1597
|
+
|
|
1598
|
+
operation = user-callable capability with one id; capability = what the runtime can perform;
|
|
1599
|
+
tool = bounded executable primitive, often agent-facing; skill = procedural knowledge;
|
|
1600
|
+
pipeline = ordered composition; provider = adapter to an external or local implementation;
|
|
1601
|
+
contract = portable schemas and types.
|
|
1602
|
+
|
|
1603
|
+
## Portable operation and tool contracts: one authority
|
|
1604
|
+
|
|
1605
|
+
- `packages/agentsam-contracts/src/operations.ts` owns `AgentOperationContract`, operation execution policy, and normalized operation receipts/results.
|
|
1606
|
+
- `packages/agentsam-contracts/src/tools.ts` owns `AgentToolDefinition`, tool-call vocabulary, risk, side-effect, idempotency, retry and receipt policy types.
|
|
1607
|
+
- `packages/agentsam-contracts/schemas/` owns their JSON Schemas. `protocol/` publishes stable mirrors; package tests enforce exact parity.
|
|
1608
|
+
- `src/sam/types.js` aliases the shared operation types for the SAM runtime. `defineSamOperation()` binds a runtime handler; it does not redefine the portable contract.
|
|
1609
|
+
- `src/tools/registry.js` is the runtime registry/controller for shared tool definitions.
|
|
1610
|
+
- `src/plugins/contracts.js` normalizes a host/plugin manifest into D1 persistence rows; `src/plugins/runtime.js` projects those rows into ephemeral SAM discovery cards. Neither is a portable tool definition. The canonical portable definition is `AgentToolDefinition` from `agentsam-contracts`.
|
|
1611
|
+
|
|
1612
|
+
Do not introduce another operation or tool definition vocabulary.
|
|
1613
|
+
|
|
1614
|
+
## Doc status
|
|
1615
|
+
|
|
1616
|
+
Check a doc''s own status line before treating it as spec. Examples: `SAM_KERNEL.md` is a locked
|
|
1617
|
+
vocabulary with seed contracts; `docs/plans/SAM_WORK_PROTOCOL.md` is a **proposal**. Plans in
|
|
1618
|
+
`docs/plans/` are intent, not shipped behavior.
|
|
1619
|
+
|
|
1620
|
+
## Before building anything new
|
|
1621
|
+
|
|
1622
|
+
1. Search: `rg -n "<term>" src packages protocol docs` and the catalog above.
|
|
1623
|
+
2. Run the nearest existing command or operation and read its output.
|
|
1624
|
+
3. Extend what exists. Add a new table, registry, or package only when nothing existing fits.
|
|
1625
|
+
|
|
1626
|
+
Last verified against agentsam-sdk 2.6.15.
|
|
1627
|
+
','skills/agentsam-sdk-orientation/SKILL.md','3441f9f15e92dc3c56f31bf00c0f8261b926824dd4d86618b2a3fe3479794bc9','read_only','{"origin":"sdk_source","source_id":"agentsam-sdk-orientation","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1628
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_69cfe604bde585f0c5ff4da9','platform','Nominal and actual building materials','/arch-materials','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Look up real product sizes and distinguish dimensions from trade names','---
|
|
1629
|
+
name: agentsam-arch-materials
|
|
1630
|
+
description: Look up real product sizes and distinguish dimensions from trade names
|
|
1631
|
+
user-invocable: true
|
|
1632
|
+
---
|
|
1633
|
+
|
|
1634
|
+
# Nominal and actual building materials
|
|
1635
|
+
|
|
1636
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1637
|
+
|
|
1638
|
+
## Operating protocol
|
|
1639
|
+
For North American standard surfaced-dry 2-inch nominal dimension lumber, 2x4 is 1.5 x 3.5 in; 2x6 is 1.5 x 5.5 in; 2x8 is 1.5 x 7.25 in; 2x10 is 1.5 x 9.25 in; 2x12 is 1.5 x 11.25 in. Never apply these sizes to rough-sawn, green, engineered, or unknown products. Call arch.material.lookup if advertised and healthy, else open the authoritative reference. Keep nominal label, actual measurements, product condition, units, source and review status distinct.
|
|
1640
|
+
|
|
1641
|
+
## Evidence and safety
|
|
1642
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1643
|
+
|
|
1644
|
+
## Sources
|
|
1645
|
+
- https://awc.org/faq/how-do-i-convert-to-metric-lumber-sizes/
|
|
1646
|
+
- https://awc.org/resources/2024-nds/
|
|
1647
|
+
','skills/agentsam-arch-materials/SKILL.md','998aa7484a6c2fc585324b1172eeee21e56b9a5f7e09911764b3abc873fa047d','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-materials","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1648
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_b0fc9552880660b4571040df','platform','Construction specifications','/arch-specifications','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Use classification and verified manufacturer source data instead of model guesses','---
|
|
1649
|
+
name: agentsam-arch-specifications
|
|
1650
|
+
description: Use classification and verified manufacturer source data instead of model guesses
|
|
1651
|
+
user-invocable: true
|
|
1652
|
+
---
|
|
1653
|
+
|
|
1654
|
+
# Construction specifications
|
|
1655
|
+
|
|
1656
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1657
|
+
|
|
1658
|
+
## Operating protocol
|
|
1659
|
+
Distinguish general notes, CSI work-result classifications, assembly specifications, manufacturer product datasheets, installation details, and actual construction measurements. Keep product maker, SKU, publication date, source, units, exact thickness and allowed substitutions. Licensed CSI standards are references, not text to redistribute.
|
|
1660
|
+
|
|
1661
|
+
## Evidence and safety
|
|
1662
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1663
|
+
|
|
1664
|
+
## Sources
|
|
1665
|
+
- https://www.csiresources.org/standards/masterformat2026
|
|
1666
|
+
- https://awc.org/faq/how-do-i-convert-to-metric-lumber-sizes/
|
|
1667
|
+
','skills/agentsam-arch-specifications/SKILL.md','c85aa5730e9a7751599edc1c181ec637499922b566d5f6f0db31cfc6362efe69','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-specifications","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1668
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_b6d6fa4d4010034006800d10','platform','Precision CAD drawings','/arch-cad','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Apply model space, dimension style and DXF drafting conventions','---
|
|
1669
|
+
name: agentsam-arch-cad
|
|
1670
|
+
description: Apply model space, dimension style and DXF drafting conventions
|
|
1671
|
+
user-invocable: true
|
|
1672
|
+
---
|
|
1673
|
+
|
|
1674
|
+
# Precision CAD drawings
|
|
1675
|
+
|
|
1676
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1677
|
+
|
|
1678
|
+
## Operating protocol
|
|
1679
|
+
Declare project units, model coordinate origin, vertical datum, geometric tolerance, plotted viewport scale and sheet units. Dimension geometry from calculated measurements, not typed annotations. Check closed dimension chains, linetype, layers, blocks, xrefs, hatch, plot and fit. DXF export is not proof of DWG writing support. Reopen generated files in a compatible CAD reader.
|
|
1680
|
+
|
|
1681
|
+
## Evidence and safety
|
|
1682
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1683
|
+
|
|
1684
|
+
## Sources
|
|
1685
|
+
- https://www.nationalcadstandard.org/resources/standards/ncs7/
|
|
1686
|
+
- https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-DXF/files/GUID-2553CF98-44F6-4828-82DD-FE3BC7448113.htm
|
|
1687
|
+
','skills/agentsam-arch-cad/SKILL.md','a30f737dd684317383a4c596d053470fc14a623d9dc9f96d25e80ac65349d618','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-cad","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1688
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_2c8a918422ccaf809ec7903f','platform','OCCT and parametric geometry','/arch-geometry','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Execute real solid-modeling kernels and inspect resulting topology','---
|
|
1689
|
+
name: agentsam-arch-geometry
|
|
1690
|
+
description: Execute real solid-modeling kernels and inspect resulting topology
|
|
1691
|
+
user-invocable: true
|
|
1692
|
+
---
|
|
1693
|
+
|
|
1694
|
+
# OCCT and parametric geometry
|
|
1695
|
+
|
|
1696
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1697
|
+
|
|
1698
|
+
## Operating protocol
|
|
1699
|
+
Discover installed OCCT/build123d/FreeCAD adapters and actual registered SAM operations before execution. Keep geometry units, profiles, constraints, type IDs, and tolerances. Independently verify topology, closed shells, bounding boxes, volumes and transforms. Never label absent tools as working.
|
|
1700
|
+
|
|
1701
|
+
## Evidence and safety
|
|
1702
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1703
|
+
|
|
1704
|
+
## Sources
|
|
1705
|
+
- https://build123d.readthedocs.io/en/latest/
|
|
1706
|
+
- https://docs.ifcopenshell.org/ifcopenshell-python.html
|
|
1707
|
+
','skills/agentsam-arch-geometry/SKILL.md','227eb8f9b2a0205a3add0f54088fe9dca7633fadf77887c441330ce5b46e1be2','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-geometry","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1708
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_0062b2bf1fa0de10b9a96f11','platform','Semantic BIM and IFC','/arch-bim','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Read, validate, diff and edit real BIM/IFC by GlobalId, and prove every change by reopening it','---
|
|
1709
|
+
name: agentsam-arch-bim
|
|
1710
|
+
description: >
|
|
1711
|
+
Work with real BIM and IFC: read a model''s semantics (spatial tree, typed elements, property
|
|
1712
|
+
sets, GlobalIds), know exactly what the SDK can and cannot do with an IFC today, change a model
|
|
1713
|
+
without losing object identity, and prove the result by reopening it. Use for .ifc files, "BIM",
|
|
1714
|
+
IfcOpenShell, GlobalId, property sets, IDS checks, IFC import or export, "is this actually BIM",
|
|
1715
|
+
and any request to edit a building model. Triggers on "ifc", "bim", "ifcopenshell", "globalid",
|
|
1716
|
+
"pset", "ids", "semantic model", "import ifc", "export ifc", "round trip".
|
|
1717
|
+
metadata:
|
|
1718
|
+
short-description: "Real BIM/IFC: read semantics, know what is supported, edit by GlobalId, prove by reopening"
|
|
1719
|
+
aliases:
|
|
1720
|
+
- arch-bim
|
|
1721
|
+
- bim
|
|
1722
|
+
- ifc
|
|
1723
|
+
user-invocable: true
|
|
1724
|
+
---
|
|
1725
|
+
|
|
1726
|
+
# Semantic BIM and IFC
|
|
1727
|
+
|
|
1728
|
+
Skill v0.3.0 (2026-11-23).
|
|
1729
|
+
|
|
1730
|
+
**CAD stores shapes. BIM stores things that have shapes**: each object knows its type, its
|
|
1731
|
+
relationships and its data. IFC is the open file format that carries all of it. A file with
|
|
1732
|
+
geometry but no types, relationships or properties is CAD in an `.ifc` wrapper. Say so; do not
|
|
1733
|
+
call it BIM.
|
|
1734
|
+
|
|
1735
|
+
## What the SDK does today (re-check before relying)
|
|
1736
|
+
|
|
1737
|
+
| Need | How | State |
|
|
1738
|
+
|---|---|---|
|
|
1739
|
+
| Read an IFC into a semantic model | `cad.bim.ifc.inspect`, `agentsam cad ifc inspect` | **Available** (read-only) |
|
|
1740
|
+
| Validate against the IFC schema | `cad.bim.ifc.validate`, `agentsam cad ifc validate` | **Available** (read-only) |
|
|
1741
|
+
| Compare two IFC files by GlobalId | `cad.bim.ifc.diff`, `agentsam cad ifc diff` | **Available** (read-only) |
|
|
1742
|
+
| Change a model, keeping identity | `cad.bim.ifc.edit`, `agentsam cad ifc edit` | **Available** (write; writes a new copy) |
|
|
1743
|
+
| Project an inspected model into a read-only CAD project | `projectFromIfcInspection` (bim-bridge) | **Available** |
|
|
1744
|
+
| Build a new IFC from a project (`cad.bim.ifc.export`) | declared intention | **Not an advertised operation.** A single rectangular shell can be exported through the CAD service''s `cad.building.export` route; there is no general project-to-IFC export yet |
|
|
1745
|
+
| IDS requirement checks | none | **No SDK operation.** Run your own tooling and label the result |
|
|
1746
|
+
|
|
1747
|
+
Confirm with `agentsam sam list` and `agentsam sam describe cad.bim.ifc.edit`. If an operation you
|
|
1748
|
+
need is not listed, say "unsupported" and name what would unlock it. Never hand-write IFC text,
|
|
1749
|
+
and never rename another format to `.ifc`. `agentsam-cad` lists IFC4 among OCCT export formats;
|
|
1750
|
+
whatever that writes, reopen it with `inspect` and report which semantics actually survived
|
|
1751
|
+
before calling it BIM.
|
|
1752
|
+
|
|
1753
|
+
## Check the runtime first
|
|
1754
|
+
|
|
1755
|
+
Locally, `agentsam cad ifc status` finds a Python that really imports IfcOpenShell (PATH, a venv,
|
|
1756
|
+
or FreeCAD''s bundled Python), or says what it searched. The CAD service capability probe reports
|
|
1757
|
+
an `ifc` entry:
|
|
1758
|
+
|
|
1759
|
+
- `installed: true` means IfcOpenShell imports and `inspect` will run.
|
|
1760
|
+
- `ready: true` additionally means the DXF and PDF libraries are present, which drawing and
|
|
1761
|
+
export work needs. `installed` without `ready` is fine for read-only inspection.
|
|
1762
|
+
- If it is not installed, the error names the interpreters searched and the install command.
|
|
1763
|
+
Relay that; do not substitute a different parser.
|
|
1764
|
+
|
|
1765
|
+
Inputs to `inspect` must be a file reference `{kind:"file", mount, path}`, never a URL or inline
|
|
1766
|
+
text. `max_elements` caps the output: **always check `truncated`** and refuse to treat a truncated
|
|
1767
|
+
model as complete (the bridge itself throws on one).
|
|
1768
|
+
|
|
1769
|
+
## Reading the result (`agentsam.bim.model.v1`)
|
|
1770
|
+
|
|
1771
|
+
The contract lives in `@inneranimalmedia/agentsam-contracts/bim-model`. Top level:
|
|
1772
|
+
`source` (IFC schema, sha256, byte length), `project` (GlobalId, name, length unit and its scale
|
|
1773
|
+
to metres), `spatial` tree (site, building, storey), `types`, `elements`, `spaces`, and a count of
|
|
1774
|
+
every IFC class present. Read in this order:
|
|
1775
|
+
|
|
1776
|
+
1. `source.ifcSchema` and `project.lengthUnit`. Everything else depends on them.
|
|
1777
|
+
2. Class counts. This is the model''s real inventory; compare it to what the user thinks they have.
|
|
1778
|
+
3. The spatial tree. Elements with no container, or no type, are a modeling defect worth reporting.
|
|
1779
|
+
4. `spaces[].hasGeometry`. False means a label, not a measurable room.
|
|
1780
|
+
5. Declared property sets and quantities are what the author wrote, not what you measured.
|
|
1781
|
+
|
|
1782
|
+
## Rules that prevent silent corruption
|
|
1783
|
+
|
|
1784
|
+
1. **GlobalId is identity.** 22 characters; the alphabet includes `$` and `_`. Never regenerate
|
|
1785
|
+
one, never key on names, and never key on `#123` step numbers (they renumber on every write).
|
|
1786
|
+
Where a charset is restricted, encode losslessly; the bridge turns a GlobalId into `ifc:<hex>`.
|
|
1787
|
+
2. **Units.** Read the project length unit and convert explicitly. IFC is usually metric; the
|
|
1788
|
+
current CAD project runtime is inch-based. State units on every number you report.
|
|
1789
|
+
3. **Pin the schema.** IFC2X3, IFC4 and IFC4X3 differ in classes and property sets. Record the
|
|
1790
|
+
schema and never mix class names across versions.
|
|
1791
|
+
4. **Relationships are data, not drawing.** A door is "in" a wall only if an opening voids the
|
|
1792
|
+
wall (`IfcRelVoidsElement`) and the door fills that opening (`IfcRelFillsElement`). Containment,
|
|
1793
|
+
aggregation, typing, materials and properties are each their own relationship. Check them
|
|
1794
|
+
before claiming connectivity.
|
|
1795
|
+
5. **Standard names.** `Pset_*Common` property sets and, in IFC4, `Qto_*BaseQuantities` are
|
|
1796
|
+
standard; keep custom data under your own prefix.
|
|
1797
|
+
6. **Geometry is not semantics.** Matching shapes prove nothing about types or relationships.
|
|
1798
|
+
|
|
1799
|
+
## Changing a model: the loop
|
|
1800
|
+
|
|
1801
|
+
```
|
|
1802
|
+
open -> find by GlobalId -> edit -> validate -> save a copy (IDs kept) -> diff -> prove
|
|
1803
|
+
```
|
|
1804
|
+
|
|
1805
|
+
`cad.bim.ifc.edit` runs that loop for you, in one call, on a **copy**:
|
|
1806
|
+
|
|
1807
|
+
```json
|
|
1808
|
+
{ "input": "house.ifc", "output": "house-revB.ifc", "base": "<sha256 of house.ifc you read>",
|
|
1809
|
+
"edits": [
|
|
1810
|
+
{ "op": "attribute.set", "globalId": "<22-char id>", "attribute": "Name", "value": "North Wall" },
|
|
1811
|
+
{ "op": "property.set", "globalId": "<id>", "pset": "Pset_WallCommon", "name": "FireRating", "value": "1HR" },
|
|
1812
|
+
{ "op": "placement.move", "globalId": "<id>", "delta_m": [0, 1.25, 0] },
|
|
1813
|
+
{ "op": "solid.extrusion_depth", "globalId": "<id>", "depth_m": 3.2 },
|
|
1814
|
+
{ "op": "element.remove", "globalId": "<id>", "cascade": true }
|
|
1815
|
+
] }
|
|
1816
|
+
```
|
|
1817
|
+
|
|
1818
|
+
Operations: `attribute.set` (Name, Description, ObjectType, LongName, Tag), `property.set` /
|
|
1819
|
+
`property.remove` (occurrence property sets; `Qto_*` quantity sets are derived and refused),
|
|
1820
|
+
`placement.move` (metres; carries objects placed relative to it unless `with_children:false`),
|
|
1821
|
+
`solid.extrusion_depth` (only a single extrusion along local Z; anything else is refused, never
|
|
1822
|
+
guessed), `element.remove` (refuses hosted doors and windows unless `cascade:true`; project,
|
|
1823
|
+
site, building and storey are protected).
|
|
1824
|
+
|
|
1825
|
+
What it guarantees, because it checks before writing:
|
|
1826
|
+
|
|
1827
|
+
- the source file is never modified, and an existing output is never overwritten;
|
|
1828
|
+
- `base` is a revision precondition: a mismatch is a conflict, so re-read and re-apply;
|
|
1829
|
+
- the copy adds **no new validation errors**;
|
|
1830
|
+
- every GlobalId survives except explicit removals (and the openings they cascade);
|
|
1831
|
+
- **nothing changes outside the edited objects**; a collateral change fails the whole edit;
|
|
1832
|
+
- one bad edit anywhere writes nothing.
|
|
1833
|
+
|
|
1834
|
+
Find the GlobalIds with `inspect` first; never guess one. Anything the allowlist does not cover
|
|
1835
|
+
(new walls, new storeys, profile reshaping, re-hosting, new types) is unsupported: say so and name
|
|
1836
|
+
the missing edit, rather than regenerating the model, which changes every ID and breaks links,
|
|
1837
|
+
schedules and comments.
|
|
1838
|
+
|
|
1839
|
+
## Proving a result
|
|
1840
|
+
|
|
1841
|
+
`edit` returns its own diff, but prove it independently: run `cad.bim.ifc.diff` on source and
|
|
1842
|
+
output, and `cad.bim.ifc.validate` on the output. A change is proven when you can show all of:
|
|
1843
|
+
|
|
1844
|
+
- **Diff by GlobalId:** added, removed, changed (with old and new values), and an explicit
|
|
1845
|
+
"unchanged: N objects".
|
|
1846
|
+
- **Hashes:** `source_sha256` of the input and the model hash you analysed. The output file''s own
|
|
1847
|
+
hash after any write.
|
|
1848
|
+
- **Reopened output:** inspect the written file; do not trust the writer''s exit code.
|
|
1849
|
+
- **Counts by class** before and after, with every difference explained.
|
|
1850
|
+
|
|
1851
|
+
Round trip means: out, back in, same GlobalIds, same relationships, same property values. Do not
|
|
1852
|
+
say "round-trips" unless you reopened it and compared. Receipt ids are not durable evidence;
|
|
1853
|
+
cite command output, paths and hashes (see `agentsam-sam-operations`).
|
|
1854
|
+
|
|
1855
|
+
## IDS (Information Delivery Specification)
|
|
1856
|
+
|
|
1857
|
+
buildingSMART IDS is an XML requirements format that checks whether model *data* meets a
|
|
1858
|
+
specification: entity, attribute, property, classification, material and part-of facets, each with
|
|
1859
|
+
cardinality. It checks data presence and shape, not geometry and not building-code compliance.
|
|
1860
|
+
Record the IDS version (1.0 at time of writing) and the checker used. A passing IDS is not
|
|
1861
|
+
certification.
|
|
1862
|
+
|
|
1863
|
+
## Evidence statuses
|
|
1864
|
+
|
|
1865
|
+
Label every claim: `verified_reference`, `calculated_from_inputs`, `measured_in_artifact`,
|
|
1866
|
+
`declared_in_source` (written in the IFC, not measured by you), `proposed`, `unresolved`,
|
|
1867
|
+
`requires_professional_review`. Prefer deterministic measurement and source documents over model
|
|
1868
|
+
recollection, confirm editions, units and applicability, and use only tools that are advertised
|
|
1869
|
+
and actually verified.
|
|
1870
|
+
|
|
1871
|
+
## Report format
|
|
1872
|
+
|
|
1873
|
+
```
|
|
1874
|
+
IFC: <file> sha256 <...> schema <IFC4|...> unit <...> truncated <yes|no>
|
|
1875
|
+
Runtime: ifc installed <y|n> ready <y|n> ifcopenshell <version>
|
|
1876
|
+
Inventory: <class: count, ...>
|
|
1877
|
+
Findings: <defects with GlobalIds>
|
|
1878
|
+
Change: <none | diff by GlobalId>
|
|
1879
|
+
Proof: <what was reopened and compared>
|
|
1880
|
+
Unsupported: <what the SDK cannot do here and what would unlock it>
|
|
1881
|
+
```
|
|
1882
|
+
|
|
1883
|
+
## Sources
|
|
1884
|
+
|
|
1885
|
+
- https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/index.html
|
|
1886
|
+
- https://github.com/buildingSMART/IDS/releases/tag/v1.0.0
|
|
1887
|
+
- https://docs.ifcopenshell.org/ifcopenshell-python.html
|
|
1888
|
+
','skills/agentsam-arch-bim/SKILL.md','00ceae6a3950f668257539193cd9bfdb33e0f81ebad68ceb99a715d15def37a7','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-bim","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1889
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_dfd6af594c4fa41be820882e','platform','Architectural assemblies','/arch-assemblies','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Compute detailed walls, roof, floors and openings from constituent layers','---
|
|
1890
|
+
name: agentsam-arch-assemblies
|
|
1891
|
+
description: Compute detailed walls, roof, floors and openings from constituent layers
|
|
1892
|
+
user-invocable: true
|
|
1893
|
+
---
|
|
1894
|
+
|
|
1895
|
+
# Architectural assemblies
|
|
1896
|
+
|
|
1897
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1898
|
+
|
|
1899
|
+
## Operating protocol
|
|
1900
|
+
Do not use nominal framing width as completed wall thickness. Store ordered assembly layers, actual thicknesses, reference planes, thermal/moisture/fire properties where documented, opening hosts and connections. Mark structural loading and reinforcement unknown pending authority and engineering review.
|
|
1901
|
+
|
|
1902
|
+
## Evidence and safety
|
|
1903
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1904
|
+
|
|
1905
|
+
## Sources
|
|
1906
|
+
- https://awc.org/faq/how-do-i-convert-to-metric-lumber-sizes/
|
|
1907
|
+
- https://awc.org/resources/2024-nds/
|
|
1908
|
+
- https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/index.html
|
|
1909
|
+
','skills/agentsam-arch-assemblies/SKILL.md','d9f71cc3e75db435567eee99bf812e9e77a8d5379b6e35c73d40758b0935d2d1','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-assemblies","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1910
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_917adae8fd5134445bfa50e0','platform','Jurisdiction and adopted codes','/arch-codes','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Determine applicable adopted building codes rather than assuming newest ICC edition','---
|
|
1911
|
+
name: agentsam-arch-codes
|
|
1912
|
+
description: Determine applicable adopted building codes rather than assuming newest ICC edition
|
|
1913
|
+
user-invocable: true
|
|
1914
|
+
---
|
|
1915
|
+
|
|
1916
|
+
# Jurisdiction and adopted codes
|
|
1917
|
+
|
|
1918
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1919
|
+
|
|
1920
|
+
## Operating protocol
|
|
1921
|
+
Require AHJ location, project date, occupancy/use, building classification, adopted code edition, amendments and exceptions before a project-specific code conclusion. Preserve citations to official AHJ regulations. State unresolved/needs-qualified-review if any critical fact is missing. A model code publication date does not establish local adoption.
|
|
1922
|
+
|
|
1923
|
+
## Evidence and safety
|
|
1924
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1925
|
+
|
|
1926
|
+
## Sources
|
|
1927
|
+
- https://www.iccsafe.org/about/overview/international-code-adoptions/
|
|
1928
|
+
- https://awc.org/resources/2024-nds/
|
|
1929
|
+
','skills/agentsam-arch-codes/SKILL.md','f733093522adf56bd0c2b9b23e80f76083aef862cdc56857eb3974d80c136c9d','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-codes","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1930
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_4176275a3143454e179879e1','platform','Accessibility and measured clearances','/arch-accessibility','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Check accessibility scoping and real finished dimensions','---
|
|
1931
|
+
name: agentsam-arch-accessibility
|
|
1932
|
+
description: Check accessibility scoping and real finished dimensions
|
|
1933
|
+
user-invocable: true
|
|
1934
|
+
---
|
|
1935
|
+
|
|
1936
|
+
# Accessibility and measured clearances
|
|
1937
|
+
|
|
1938
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1939
|
+
|
|
1940
|
+
## Operating protocol
|
|
1941
|
+
Verify whether ADA, ABA, local codes and occupancy requirements apply. Measure finished routes, clear openings, maneuvering clearances, approach geometry and level changes from actual CAD objects. Nominal door width is not clear passage width. Always report source, effective standard, geometric evidence and review need.
|
|
1942
|
+
|
|
1943
|
+
## Evidence and safety
|
|
1944
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1945
|
+
|
|
1946
|
+
## Sources
|
|
1947
|
+
- https://www.access-board.gov/ada/
|
|
1948
|
+
- https://www.iccsafe.org/about/overview/international-code-adoptions/
|
|
1949
|
+
','skills/agentsam-arch-accessibility/SKILL.md','7885603f37eb7316b3bcf032ab21877fce3575398b66d3dd864d4f00e1a9043e','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-accessibility","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1950
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_3a25ab487cb8b51cef81c4cc','platform','Site datum and discipline coordination','/arch-coordination','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Coordinate survey, building coordinates and external structural/MEP references','---
|
|
1951
|
+
name: agentsam-arch-coordination
|
|
1952
|
+
description: Coordinate survey, building coordinates and external structural/MEP references
|
|
1953
|
+
user-invocable: true
|
|
1954
|
+
---
|
|
1955
|
+
|
|
1956
|
+
# Site datum and discipline coordination
|
|
1957
|
+
|
|
1958
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1959
|
+
|
|
1960
|
+
## Operating protocol
|
|
1961
|
+
Require authentic site survey, true north/project north, coordinate system, floor datums, grading datum, setbacks, easements and utility constraints as relevant. Do not derive legal property boundaries from a rendering. Use stable revision-controlled references. Mark clashes unverified without a real clash adapter.
|
|
1962
|
+
|
|
1963
|
+
## Evidence and safety
|
|
1964
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1965
|
+
|
|
1966
|
+
## Sources
|
|
1967
|
+
- https://www.iso.org/standard/68078.html
|
|
1968
|
+
- https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/index.html
|
|
1969
|
+
','skills/agentsam-arch-coordination/SKILL.md','7c92cd0c0ab008d6b73d43346ff375ccc481dbc0a3a87568e5b39a9e81f9999a','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-coordination","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1970
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_6a0e50e4bcd6bbec79e5b836','platform','Architectural sheets and construction documents','/arch-documents','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Produce coordinated SD/DD/CD sheets and artifact evidence','---
|
|
1971
|
+
name: agentsam-arch-documents
|
|
1972
|
+
description: Produce coordinated SD/DD/CD sheets and artifact evidence
|
|
1973
|
+
user-invocable: true
|
|
1974
|
+
---
|
|
1975
|
+
|
|
1976
|
+
# Architectural sheets and construction documents
|
|
1977
|
+
|
|
1978
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1979
|
+
|
|
1980
|
+
## Operating protocol
|
|
1981
|
+
Distinguish SD from DD and CD. Generate plans, roof, sections, elevations, schedules and details from one project model with stable object/revision IDs. Check scale, page size, dimensions, keynotes, title block, legends, north arrows, revision callouts, clipping and readable printed annotations. Preserve editable sources alongside PDFs.
|
|
1982
|
+
|
|
1983
|
+
## Evidence and safety
|
|
1984
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
1985
|
+
|
|
1986
|
+
## Sources
|
|
1987
|
+
- https://www.nationalcadstandard.org/resources/standards/ncs7/
|
|
1988
|
+
- https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-DXF/files/GUID-2553CF98-44F6-4828-82DD-FE3BC7448113.htm
|
|
1989
|
+
','skills/agentsam-arch-documents/SKILL.md','8cd5f7deffba8950747d0618af0934a2f2bb6efd05beed1717a7d82aeee7d664','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-documents","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
1990
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_424160d5ac830a3812738bf1','platform','Independent geometry and document verification','/arch-verify','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Enforce evidence over process exit codes','---
|
|
1991
|
+
name: agentsam-arch-verify
|
|
1992
|
+
description: Enforce evidence over process exit codes
|
|
1993
|
+
user-invocable: true
|
|
1994
|
+
---
|
|
1995
|
+
|
|
1996
|
+
# Independent geometry and document verification
|
|
1997
|
+
|
|
1998
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
1999
|
+
|
|
2000
|
+
## Operating protocol
|
|
2001
|
+
Run runtime discovery, then verify source input and CAD result independently. Check topology, dimension chains, units, gross/net area methodology, cross-view agreement, openings, IFC entity relationships and export hashes. Persist pass/fail/blocked, checker version, object IDs, timestamps, SHA-256 and project revision. Do not turn missing evidence into a pass.
|
|
2002
|
+
|
|
2003
|
+
## Evidence and safety
|
|
2004
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
2005
|
+
|
|
2006
|
+
## Sources
|
|
2007
|
+
- https://github.com/buildingSMART/IDS/releases/tag/v1.0.0
|
|
2008
|
+
- https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/index.html
|
|
2009
|
+
- https://build123d.readthedocs.io/en/latest/
|
|
2010
|
+
','skills/agentsam-arch-verify/SKILL.md','e874649b0a8933b23fbb58fd0f168db8291e3084c790cdb341c5cbbf513bc38d','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-verify","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2011
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_89a12f78c0edba167a5cf513','platform','Architecture work orchestration','/arch-orchestrate','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Coordinate intent, facts, models, operations, validation and delivery','---
|
|
2012
|
+
name: agentsam-arch-orchestrate
|
|
2013
|
+
description: Coordinate intent, facts, models, operations, validation and delivery
|
|
2014
|
+
user-invocable: true
|
|
2015
|
+
---
|
|
2016
|
+
|
|
2017
|
+
# Architecture work orchestration
|
|
2018
|
+
|
|
2019
|
+
**Architectural Intelligence v0.1.0 (2026-10-19).**
|
|
2020
|
+
|
|
2021
|
+
## Operating protocol
|
|
2022
|
+
Resolve authority of each fact and project datum first. Discover real SAM operations and MCP capabilities, then construct typed project model. Execute available kernels; never simulate host tool output. Generate linked deliverables, reopen them, verify actual geometry, preserve input and output revisions and capture receipts. Code/structural/permit decisions require appropriate professional/AHJ review.
|
|
2023
|
+
|
|
2024
|
+
## Evidence and safety
|
|
2025
|
+
Prefer deterministic measurement and source documents over model recollection. Distinguish verified_reference, calculated_from_inputs, measured_in_artifact, proposed, unresolved and requires_professional_review. Confirm editions, applicability, units, dimensional conditions, source rights and professional review. Only use advertised and actually verified tools. Scope-specific authority precedes general web sources.
|
|
2026
|
+
|
|
2027
|
+
## Sources
|
|
2028
|
+
- https://standards.buildingsmart.org/IFC/RELEASE/IFC4_3/index.html
|
|
2029
|
+
- https://www.nationalcadstandard.org/resources/standards/ncs7/
|
|
2030
|
+
- https://awc.org/faq/how-do-i-convert-to-metric-lumber-sizes/
|
|
2031
|
+
- https://www.iccsafe.org/about/overview/international-code-adoptions/
|
|
2032
|
+
','skills/agentsam-arch-orchestrate/SKILL.md','94d5cf13dfe78194d6f9cba6cbb1bfd8da4f8b5ff18b6120f7c0c70dd283d784','read_only','{"origin":"sdk_source","source_id":"agentsam-arch-orchestrate","packaged_candidate":true}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2033
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_74add5909f515850b96bf0f3','platform','AgentSam · building','/agentsam-game-building','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Browser games: loop, 3D orientation, camera, perf, assets, genres','---
|
|
2034
|
+
name: agentsam-game-building
|
|
2035
|
+
description: >
|
|
2036
|
+
Build browser games and interactive/canvas/3D experiences in this TanStack
|
|
2037
|
+
Start + React app. Use for any game, simulation, or WebGL/Canvas experience —
|
|
2038
|
+
2D or 3D, single-player. Covers the game loop & timing, 3D orientation/camera
|
|
2039
|
+
conventions, collision, performance, assets, audio, save, game feel, and
|
|
2040
|
+
per-genre playbooks. For WASD / vehicle / flight **input signs and inverted
|
|
2041
|
+
A/D**, open the **`agentsam-game-controls`** skill — do not rely on this file or racing-kart
|
|
2042
|
+
alone. Triggers on "game", "minecraft", "fps", "platformer", "racing",
|
|
2043
|
+
"tetris", "snake", "shooter", "3d", "three.js", "canvas", "voxel", "physics".
|
|
2044
|
+
metadata:
|
|
2045
|
+
short-description: "Browser games: loop, 3D orientation, camera, perf, assets, genres"
|
|
2046
|
+
user-invocable: false
|
|
2047
|
+
---
|
|
2048
|
+
|
|
2049
|
+
# Building Games
|
|
2050
|
+
|
|
2051
|
+
Build a **playable, correct** browser game — not a static screenshot. A game can use Canvas, DOM, WebGL, WebGPU, or a dedicated engine. Keep gameplay state and presentation separate.
|
|
2052
|
+
Style the overlay (start screen, HUD, menus) with the **`agentsam-game-interface-design`** skill; this
|
|
2053
|
+
skill owns the gameplay loop and world.
|
|
2054
|
+
|
|
2055
|
+
**Controls / inverted A/D:** open **`skills/agentsam-game-controls/SKILL.md`** **before**
|
|
2056
|
+
writing WASD, steering, or flight input. Vehicle/flight demos often ship with
|
|
2057
|
+
A/D flipped if you only read this file or a single genre playbook.
|
|
2058
|
+
|
|
2059
|
+
**Scope note — single-player, bots, or small P2P co-op:**
|
|
2060
|
+
- Ship **single-player** or **single-player + AI/bots** by default.
|
|
2061
|
+
- **2–8 player co-op / casual realtime** (shared cursors, party games, casual
|
|
2062
|
+
action among friends) is supported — use the **`agentsam-game-multiplayer-p2p` skill**
|
|
2063
|
+
(WebRTC mesh, signaled at `/api/rtc`). Read its trust model first.
|
|
2064
|
+
- P2P is the only supported multiplayer right now. Do not half-build sockets
|
|
2065
|
+
that can’t connect.
|
|
2066
|
+
|
|
2067
|
+
**References (load on demand):**
|
|
2068
|
+
- **`agentsam-game-controls` skill** (`../agentsam-game-controls/`) — **required** for movement/steer/flight:
|
|
2069
|
+
player-visible A/D, inverted-steer anti-pattern, flight ailerons, mandatory
|
|
2070
|
+
self-test + `window.__controlsTest`. Not optional for vehicles/planes.
|
|
2071
|
+
- `references/threejs-foundational.md` — the deep 3D/loop/perf reference. Read for 3D.
|
|
2072
|
+
- `references/3d-libs.md` — three.js + @react-three/fiber + drei + rapier usage.
|
|
2073
|
+
- **`agentsam-game-threejs` skill** (`../agentsam-game-threejs/`) — official full Three.js + TSL API dump
|
|
2074
|
+
(`llms-full.txt`). Load for advanced materials/shaders/WebGPU/loaders; not for
|
|
2075
|
+
simple 2D canvas games.
|
|
2076
|
+
- `references/babylon.md` — Babylon.js, the batteries-included 3D engine alternative.
|
|
2077
|
+
- `references/phaser.md` — Phaser 3, the default engine for 2D games.
|
|
2078
|
+
- `references/ecs-architecture.md` — entity-component-system structure for larger games.
|
|
2079
|
+
- `references/genres/*.md` — per-genre playbooks (fps, platformer-2d, racing-kart,
|
|
2080
|
+
puzzle-match3-tetris, voxel-minecraft, endless-runner, topdown-twin-stick,
|
|
2081
|
+
tower-defense, board-card-chess). Genre files **do not** replace **`agentsam-game-controls`**.
|
|
2082
|
+
- `references/game-feel-juice.md`, `input.md`, `audio.md`, `collision-physics.md`,
|
|
2083
|
+
`save-persistence.md`, `procedural-generation.md`, `ai-pathfinding.md`.
|
|
2084
|
+
- **`agentsam-game-asset-core`** (+ `agentsam-game-animation-frames` / `agentsam-game-tilesets` /
|
|
2085
|
+
`agentsam-game-character-consistency` / `agentsam-game-ui-icons`) — engine-ready 2D art defaults
|
|
2086
|
+
and verification when generating sprites, sheets, tiles, or UI (see §6).
|
|
2087
|
+
|
|
2088
|
+
Pick the specific genre/topic reference for the build; this file is the universal
|
|
2089
|
+
core for loop/world. **Input signs → `agentsam-game-controls`.** **2D game art → `agentsam-game-asset-core`.**
|
|
2090
|
+
|
|
2091
|
+
---
|
|
2092
|
+
|
|
2093
|
+
## 1. Game loop & timing (the #1 correctness issue)
|
|
2094
|
+
|
|
2095
|
+
- Drive the loop with the engine''s RAF loop (`renderer.setAnimationLoop`, R3F
|
|
2096
|
+
`useFrame`, or `requestAnimationFrame` for 2D canvas). **Never** `setInterval`/
|
|
2097
|
+
`setTimeout`/`Date.now()` for game timing.
|
|
2098
|
+
- **Scale ALL movement/animation by delta time** (seconds) so speed is frame-rate
|
|
2099
|
+
independent (60Hz vs 144Hz). Compute delta **once per frame** and reuse it.
|
|
2100
|
+
- three.js: use `THREE.Timer` (not `Clock` — `Clock.getDelta()` returns ~0 on a
|
|
2101
|
+
second call in the same frame, a classic freeze bug).
|
|
2102
|
+
- **Cap delta** (`min(delta, 0.1)`) so a backgrounded tab doesn''t teleport things.
|
|
2103
|
+
- **Fixed timestep for physics/gameplay:** accumulate delta and step simulation at
|
|
2104
|
+
a fixed rate (e.g. 1/60) while rendering at display rate — prevents tunneling and
|
|
2105
|
+
non-determinism.
|
|
2106
|
+
|
|
2107
|
+
## 2. Controls (delegate to the `agentsam-game-controls` skill)
|
|
2108
|
+
|
|
2109
|
+
**Open `skills/agentsam-game-controls/SKILL.md` before implementing any WASD / steer /
|
|
2110
|
+
flight code.** That skill is the source of truth for:
|
|
2111
|
+
|
|
2112
|
+
- Player-visible **A = left / D = right** (chase cam, while moving forward)
|
|
2113
|
+
- Why **`KeyA → steer−` + `yaw += steer * +rate` inverts** (most common bug)
|
|
2114
|
+
- Vehicle vs FPS (strafe ≠ steer), fixed-wing ailerons, heli/drone notes
|
|
2115
|
+
- Mandatory self-test + `window.__controlsTest` probe
|
|
2116
|
+
|
|
2117
|
+
Do **not** treat `genres/racing-kart.md` as the only place steer signs live —
|
|
2118
|
+
planes, jetskis, and mechs never open it.
|
|
2119
|
+
|
|
2120
|
+
**Short reminder (full detail in `agentsam-game-controls`):**
|
|
2121
|
+
|
|
2122
|
+
```
|
|
2123
|
+
// Vehicle yaw body (chase cam): A must increase yaw with this basis
|
|
2124
|
+
forward = (-sin(yaw), 0, -cos(yaw))
|
|
2125
|
+
// KeyA → steer = +1; yaw += steer * turnRate * speedFactor * dt
|
|
2126
|
+
// WRONG (ships inverted): KeyA → steer = -1; yaw += steer * turnRate * dt
|
|
2127
|
+
```
|
|
2128
|
+
|
|
2129
|
+
- **Pointer lock:** mouse-look only — implement WASD yourself; click-to-play
|
|
2130
|
+
overlay; dismiss on lock.
|
|
2131
|
+
- Track keys with held state + **dt**; unify devices via `references/input.md`.
|
|
2132
|
+
- **Finish:** run the `agentsam-game-controls` skill checklist. Screenshot-only is insufficient
|
|
2133
|
+
for vehicles/flight.
|
|
2134
|
+
|
|
2135
|
+
## 3. 3D orientation & world objects (the "sideways/backwards" bugs)
|
|
2136
|
+
|
|
2137
|
+
- three.js is **right-handed, +Y up**: +X right, +Y up, +Z toward viewer. **Meshes
|
|
2138
|
+
face +Z; cameras look −Z** (the classic "camera backwards" gotcha).
|
|
2139
|
+
- Primitives like `Cone`/`Cylinder` point **+Y** by default → rotate to align a
|
|
2140
|
+
tip with forward (`geo.rotateX(Math.PI/2)`).
|
|
2141
|
+
- **Orienting a mesh to face `forward`** (meshes face **+Z**): simplest correct way
|
|
2142
|
+
is `mesh.lookAt(mesh.position.clone().add(forward))`. To build the basis by hand,
|
|
2143
|
+
set the **+Z column to `forward`** and choose the x-axis that keeps it a *proper*
|
|
2144
|
+
right-handed rotation (`det = +1`):
|
|
2145
|
+
`xAxis = normalize(cross(up, forward))`, then `makeBasis(xAxis, up, forward)`.
|
|
2146
|
+
Note this is `cross(up, forward)` — **not** the movement `right = cross(forward, up)`
|
|
2147
|
+
from §2. Targeting +Z (instead of a camera''s −Z) flips the x-axis sign so that
|
|
2148
|
+
`xAxis × up = forward`; the frame stays right-handed (no mirroring). Do **not** use
|
|
2149
|
+
`makeBasis(xAxis, up, -forward)` for a mesh — that targets −forward (the *camera*
|
|
2150
|
+
convention) so the mesh faces **backwards**.
|
|
2151
|
+
- **Orienting a camera** to look along `forward` (cameras look **−Z**): set the +Z
|
|
2152
|
+
column to `-forward` — `xAxis = normalize(cross(forward, up))`, then
|
|
2153
|
+
`makeBasis(xAxis, up, -forward)` (or just `camera.lookAt(target)`).
|
|
2154
|
+
- Keep a consistent world `up` so objects stay upright; only rotate flat primitives
|
|
2155
|
+
to stand up.
|
|
2156
|
+
- Verify glTF import orientation; debug with `AxesHelper`/`ArrowHelper`. Upright
|
|
2157
|
+
self-test: characters stand on the ground plane, not lying/sunk.
|
|
2158
|
+
|
|
2159
|
+
## 4. Camera must agree with movement
|
|
2160
|
+
|
|
2161
|
+
- Keep a **dedicated `moveForward`/`moveRight`** for movement, computed once and
|
|
2162
|
+
never mutated by camera code (aliasing a shared temp vector makes camera and
|
|
2163
|
+
movement disagree — a real repro bug).
|
|
2164
|
+
- Third-person follow: `desired = playerPos + up*height + moveForward*(-followDist)`;
|
|
2165
|
+
lerp the camera toward it (use exp-based smoothing, delta-scaled), `lookAt(player)`.
|
|
2166
|
+
- Isolate-the-layer debug order: (1) keys register → (2) movement signs correct →
|
|
2167
|
+
(3) camera agrees. Fix in that order.
|
|
2168
|
+
|
|
2169
|
+
## 5. Performance
|
|
2170
|
+
|
|
2171
|
+
- **Minimize draw calls** (`renderer.info.render.calls`, target <100): share
|
|
2172
|
+
materials, `InstancedMesh`/`BatchedMesh` for repeated objects, atlases.
|
|
2173
|
+
- **Dispose GPU resources yourself** (`geometry/material/texture.dispose()`) on
|
|
2174
|
+
level change — three.js does not GC them. **Pool** bullets/enemies/particles.
|
|
2175
|
+
- No per-frame allocations (reuse temp vectors). Compress textures; LOD for distance.
|
|
2176
|
+
|
|
2177
|
+
## 6. Assets (avoid the generated-photo trap)
|
|
2178
|
+
|
|
2179
|
+
- **Interactive 3D elements** (weapon viewmodels, characters, props, projectiles)
|
|
2180
|
+
→ build from **3D geometry / glTF**, not a generated image. A flat photorealistic
|
|
2181
|
+
JPG of a gun-in-hands used as an FPS viewmodel looks wrong, can''t animate, and
|
|
2182
|
+
(JPG has **no alpha**) renders as a black box. Parent a real 3D viewmodel to the
|
|
2183
|
+
camera as an overlay render layer.
|
|
2184
|
+
- Reserve image generation for **flat 2D** assets only (textures, sky/menu
|
|
2185
|
+
backgrounds, 2D sprites, UI art). **Never** use a generated photo as a 3D mesh,
|
|
2186
|
+
viewmodel, or character substitute — build those in 3D geometry / glTF.
|
|
2187
|
+
Set `crossOrigin="anonymous"` on images drawn to canvas/textures.
|
|
2188
|
+
See the **`imagine`** skill (2D only — image tools cannot produce real 3D).
|
|
2189
|
+
- **Engine-ready game art doctrine** → open **`agentsam-game-asset-core`**
|
|
2190
|
+
(`../agentsam-game-asset-core/`) for defaults + blind verify + retry discipline, then the
|
|
2191
|
+
matching specialist: **`agentsam-game-animation-frames`** (loop / motion laws),
|
|
2192
|
+
**`agentsam-game-tilesets`**, **`agentsam-game-character-consistency`**, **`agentsam-game-ui-icons`**.
|
|
2193
|
+
These are **QC/doctrine**, not the export pipeline. Do not ship stick-figure
|
|
2194
|
+
placeholders when real art is expected.
|
|
2195
|
+
- **2D game sprites / animation sheets** → run **`agentsam-game-sprite-generation`**
|
|
2196
|
+
(`skills/agentsam-game-sprite-generation/SKILL.md`): solid **`#FF00FF`** magenta
|
|
2197
|
+
`image-generation tool` sheets + chroma postprocess scripts (magenta is required for the
|
|
2198
|
+
processor). Wire transparent PNGs/GIFs into Canvas/Phaser. Still apply
|
|
2199
|
+
**`agentsam-game-asset-core`** (+ animation/character specialists when relevant).
|
|
2200
|
+
- **2D maps / levels / prop packs** → open **`agentsam-game-map-generation`**
|
|
2201
|
+
(`skills/agentsam-game-map-generation/SKILL.md`). Prefer foundation-only base + separate
|
|
2202
|
+
props/collision for playable maps. Browser default: `raw_canvas` / Phaser.
|
|
2203
|
+
Tileable ground/walls → also **`agentsam-game-tilesets`** for 2×2 seam checks.
|
|
2204
|
+
- **Optional denser locomotion** → run **`agentsam-game-video-to-sprites`** (AgentSam
|
|
2205
|
+
`image-to-video generation tool` + sandbox scripts; magenta base). Prefer `agentsam-game-sprite-generation`
|
|
2206
|
+
for crisp production heroes. Use **`agentsam-game-animation-frames`** for loop/flip-test
|
|
2207
|
+
laws; prefer **`agentsam-game-video-to-sprites`** over ad-hoc ffmpeg-only harvest in this
|
|
2208
|
+
sandbox.
|
|
2209
|
+
|
|
2210
|
+
## 7. Audio, save, feel
|
|
2211
|
+
- **Audio**: unlock `AudioContext` on the first user gesture (tap-to-start) or iOS
|
|
2212
|
+
is silent; re-resume on `visibilitychange`. (`references/audio.md`)
|
|
2213
|
+
- **Save**: `localStorage`/IndexedDB with a `version` field + migrations.
|
|
2214
|
+
- **Juice**: screen shake, hit-stop, eased tweens, particles — cheap, huge
|
|
2215
|
+
perceived-quality lift. Keep presentation separate from simulation.
|
|
2216
|
+
|
|
2217
|
+
## 8. Mobile
|
|
2218
|
+
- Distinguish canvas buffer size from CSS size; respect `devicePixelRatio`.
|
|
2219
|
+
- `touch-action: none`, letterbox-fit to a base resolution, handle orientation.
|
|
2220
|
+
- Touch controls (virtual joystick + action buttons), ≥44px targets.
|
|
2221
|
+
|
|
2222
|
+
---
|
|
2223
|
+
|
|
2224
|
+
## Stack / engine choice
|
|
2225
|
+
- **3D → three.js**, ideally via **@react-three/fiber + drei** (fits the React
|
|
2226
|
+
app; drei gives pointer-lock/controls/loaders) + **@react-three/rapier** for
|
|
2227
|
+
physics/character controllers. See `references/3d-libs.md`.
|
|
2228
|
+
- **2D →** native Canvas 2D is enough for snake/tetris/flappy/platformer; reach for
|
|
2229
|
+
Phaser only when the genre needs it.
|
|
2230
|
+
- These game deps are **not preinstalled** — `npm install` them (and make sure they
|
|
2231
|
+
land in `package.json` so the Vercel build has them).
|
|
2232
|
+
|
|
2233
|
+
## Finish criteria (before "done")
|
|
2234
|
+
- Loads with **no console errors**; visible gameplay (not a blank canvas).
|
|
2235
|
+
- **`agentsam-game-controls` skill self-test passed** (A = left / D = right from chase cam
|
|
2236
|
+
while moving forward; flip one sign if inverted). Not screenshot-only.
|
|
2237
|
+
- 3D upright & camera-agrees self-tests pass (§3, §4).
|
|
2238
|
+
- Runs on mobile viewport with touch controls.
|
|
2239
|
+
- Production build (`npm run build`) renders the built output, not just dev.
|
|
2240
|
+
- **Sharing preview:** use `agentsam-game-sharing` for standard Open Graph metadata, a verified image preview, and a favicon. Verify the deployed URL and the actual game experience.
|
|
2241
|
+
','skills/agentsam-game-building/SKILL.md','957e11d58f53b2884253ac03e1136000bd381ec6720e9a7bce3f77af2fee8413','read_only','{"origin":"sdk_source","source_id":"agentsam-game-building","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2242
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_9095f69ed63d177362dd01ca','platform','AgentSam · controls','/agentsam-game-controls','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Control signs, inverted A/D fix, vehicle/flight maps, mandatory self-test','---
|
|
2243
|
+
name: agentsam-game-controls
|
|
2244
|
+
description: >
|
|
2245
|
+
Player-facing input signs for browser games: WASD, vehicles, flight, FPS
|
|
2246
|
+
mouse-look, and the #1 failure mode (inverted A/D). Mandatory control
|
|
2247
|
+
self-tests and a tiny test interface so you can verify A turns left before
|
|
2248
|
+
shipping. Load for ANY game with movement, steering, flying, driving, tanks,
|
|
2249
|
+
boats, mechs, drones, planes, karts, third-person follow cams — not only
|
|
2250
|
+
racing. Triggers on "controls", "WASD", "inverted", "steer", "flight",
|
|
2251
|
+
"airplane", "kart", "vehicle", "yaw", "roll", "pitch", "mouse look", "A/D".
|
|
2252
|
+
metadata:
|
|
2253
|
+
short-description: "Control signs, inverted A/D fix, vehicle/flight maps, mandatory self-test"
|
|
2254
|
+
user-invocable: false
|
|
2255
|
+
---
|
|
2256
|
+
|
|
2257
|
+
# Controls (player-visible signs — do not ship inverted)
|
|
2258
|
+
|
|
2259
|
+
**Read this end-to-end before writing movement/steer/flight code** for any game
|
|
2260
|
+
that uses WASD, arrows, a chase camera, or a flying craft. Do **not** skip this
|
|
2261
|
+
and only open `racing-kart` or `fps` — those genre files assume you already
|
|
2262
|
+
know these signs. Inverted A/D is the most common ship-blocker in vehicle and
|
|
2263
|
+
flight demos.
|
|
2264
|
+
|
|
2265
|
+
Pair with **`agentsam-game-building`** (loop, camera, 3D orientation) and
|
|
2266
|
+
**`building-games/references/input.md`** (keydown state, gamepad, touch). This
|
|
2267
|
+
skill owns **what left/right/up mean to the player** and **how you prove it**.
|
|
2268
|
+
|
|
2269
|
+
---
|
|
2270
|
+
|
|
2271
|
+
## 0. Hard rules (fail the build if broken)
|
|
2272
|
+
|
|
2273
|
+
1. **Player-visible left/right is law.** From a **chase / behind** camera while
|
|
2274
|
+
the craft moves **forward**:
|
|
2275
|
+
- **A / ←** → nose (or bank) turns **left on screen**
|
|
2276
|
+
- **D / →** → nose (or bank) turns **right on screen**
|
|
2277
|
+
2. **Never reuse FPS strafe as vehicle steer.** FPS “D → +right vector” is
|
|
2278
|
+
**position** on the ground plane. Vehicle A/D is **yaw (or roll) rate**, not
|
|
2279
|
+
a strafe offset. Mixing them is the #1 cause of inverted A/D.
|
|
2280
|
+
3. **You must run a control self-test (§5) before saying done.** Screenshot-only
|
|
2281
|
+
QA is not enough. If A turns right, **flip the steer/roll sign**, retest,
|
|
2282
|
+
then ship — do not invent a new coordinate story.
|
|
2283
|
+
|
|
2284
|
+
---
|
|
2285
|
+
|
|
2286
|
+
## 1. Shared 3D basis (use this everywhere)
|
|
2287
|
+
|
|
2288
|
+
three.js: right-handed, **+Y up**, meshes face **+Z**, cameras look **−Z**.
|
|
2289
|
+
|
|
2290
|
+
**Yaw-only heading on XZ** (ground vehicles, walkers, most arcade craft):
|
|
2291
|
+
|
|
2292
|
+
```
|
|
2293
|
+
// yaw = 0 faces world −Z; +yaw is CCW about +Y (nose moves toward −X)
|
|
2294
|
+
forward = (-sin(yaw), 0, -cos(yaw))
|
|
2295
|
+
right = ( cos(yaw), 0, -sin(yaw)) // = normalize(cross(forward, worldUp))
|
|
2296
|
+
```
|
|
2297
|
+
|
|
2298
|
+
With a chase cam **behind** the craft (camera near `position - forward * dist`):
|
|
2299
|
+
|
|
2300
|
+
| Player sees | World (this basis) | Input |
|
|
2301
|
+
|-------------|--------------------|--------|
|
|
2302
|
+
| Nose left | **+yaw** | **A / ←** must produce **+yaw** (or equivalent bank-left for planes) |
|
|
2303
|
+
| Nose right | **−yaw** | **D / →** must produce **−yaw** |
|
|
2304
|
+
|
|
2305
|
+
If your basis differs, keep **one** consistent pair — but the **player-visible**
|
|
2306
|
+
row above is mandatory.
|
|
2307
|
+
|
|
2308
|
+
---
|
|
2309
|
+
|
|
2310
|
+
## 2. Genre maps
|
|
2311
|
+
|
|
2312
|
+
### 2a. FPS / on-foot (strafe, not steer)
|
|
2313
|
+
|
|
2314
|
+
```
|
|
2315
|
+
W = +forward, S = −forward, D = +right, A = −right // position, not yaw
|
|
2316
|
+
mouse: yaw -= movementX * sens; pitch -= movementY * sens; clamp pitch
|
|
2317
|
+
```
|
|
2318
|
+
|
|
2319
|
+
Body yaw for look; **movement uses yaw only** (do not apply pitch to walk).
|
|
2320
|
+
|
|
2321
|
+
### 2b. Ground / water vehicle (kart, bike, jetski, boat, tank, rover, snowmobile)
|
|
2322
|
+
|
|
2323
|
+
Arcade body with `heading`/`yaw` and forward `speed`:
|
|
2324
|
+
|
|
2325
|
+
```js
|
|
2326
|
+
// Input (held keys → actions once per frame)
|
|
2327
|
+
let steer = 0; // -1..+1, player-visible
|
|
2328
|
+
if (keys.has(''KeyA'') || keys.has(''ArrowLeft'')) steer += 1; // LEFT
|
|
2329
|
+
if (keys.has(''KeyD'') || keys.has(''ArrowRight'')) steer -= 1; // RIGHT
|
|
2330
|
+
// Optional: steer = clamp(steer + gamepadX, -1, 1) with same sign convention
|
|
2331
|
+
|
|
2332
|
+
// Integrate (speedFactor ~ 0..1 from |speed|)
|
|
2333
|
+
const reverse = speed >= 0 ? 1 : -1; // wheel-left still feels left in reverse
|
|
2334
|
+
yaw += steer * turnRate * speedFactor * reverse * dt;
|
|
2335
|
+
|
|
2336
|
+
// Move along heading
|
|
2337
|
+
const fx = -Math.sin(yaw), fz = -Math.cos(yaw);
|
|
2338
|
+
position.x += fx * speed * dt;
|
|
2339
|
+
position.z += fz * speed * dt;
|
|
2340
|
+
```
|
|
2341
|
+
|
|
2342
|
+
**Canonical bug (do not copy):**
|
|
2343
|
+
|
|
2344
|
+
```js
|
|
2345
|
+
// WRONG — this is what ships inverted A/D in the wild
|
|
2346
|
+
if (KeyA) steer -= 1;
|
|
2347
|
+
if (KeyD) steer += 1;
|
|
2348
|
+
yaw += steer * turnRate * dt; // A → −yaw → nose RIGHT on chase cam
|
|
2349
|
+
```
|
|
2350
|
+
|
|
2351
|
+
If you already wrote `KeyA → steer--`, either **swap the key mapping** or
|
|
2352
|
+
**negate once at integrate** (`yaw += -steer * …`) — then run §5. Do not flip
|
|
2353
|
+
twice (keys + integrate + bank mesh).
|
|
2354
|
+
|
|
2355
|
+
### 2c. Fixed-wing flight (airplane, glider, RC plane)
|
|
2356
|
+
|
|
2357
|
+
| Input | Action | Player expectation |
|
|
2358
|
+
|-------|--------|--------------------|
|
|
2359
|
+
| **A / ←** | **Roll left** (aileron) | Left wing down / bank left |
|
|
2360
|
+
| **D / →** | **Roll right** | Right wing down / bank right |
|
|
2361
|
+
| **W / ↑** | Pitch (pick one scheme and label HUD) | Usually nose down *or* pull-up — be consistent |
|
|
2362
|
+
| **S / ↓** | Opposite pitch | |
|
|
2363
|
+
| **Q / E** | Yaw / rudder (optional) | Q left, E right |
|
|
2364
|
+
|
|
2365
|
+
- **A/D are not strafe** and not “ground steer with FPS signs.”
|
|
2366
|
+
- Apply roll in the craft’s **local forward axis** with a sign that matches
|
|
2367
|
+
**bank left on A**. If the mesh banks the wrong way, flip **one** sign on the
|
|
2368
|
+
roll apply (or on the A/D → roll mapping), not the whole basis.
|
|
2369
|
+
- Coordinated turn: positive bank should produce a turn that matches the bank
|
|
2370
|
+
direction under the chase/external cam.
|
|
2371
|
+
|
|
2372
|
+
### 2d. Heli / drone / 6DOF
|
|
2373
|
+
|
|
2374
|
+
Document the scheme on a start overlay. Minimum:
|
|
2375
|
+
|
|
2376
|
+
- Throttle/altitude on discrete keys must **not** stick “always up” after one
|
|
2377
|
+
press (use held state or explicit up/down).
|
|
2378
|
+
- Strafe/yaw: **A left, D right** in the craft’s horizontal frame (player-visible).
|
|
2379
|
+
|
|
2380
|
+
### 2e. 2D side-scroller / platformer
|
|
2381
|
+
|
|
2382
|
+
**D / →** moves **right on screen**; **A / ←** moves **left**. Gravity only
|
|
2383
|
+
inverted if the genre is explicitly upside-down.
|
|
2384
|
+
|
|
2385
|
+
---
|
|
2386
|
+
|
|
2387
|
+
## 3. Camera must agree
|
|
2388
|
+
|
|
2389
|
+
- Chase cam: `desired = craftPos + up*height + forward*(-followDist)`; lerp;
|
|
2390
|
+
`lookAt(craft)`.
|
|
2391
|
+
- Compute `forward` **once** for both movement and camera — do not rebuild with
|
|
2392
|
+
opposite yaw sign in the camera path.
|
|
2393
|
+
- Debug order: (1) keys register → (2) signs correct (§5) → (3) camera agrees.
|
|
2394
|
+
|
|
2395
|
+
---
|
|
2396
|
+
|
|
2397
|
+
## 4. Input plumbing (brief)
|
|
2398
|
+
|
|
2399
|
+
- Track keys with a `Set` on `keydown`/`keyup` using **`event.code`**; clear on
|
|
2400
|
+
`blur` / `visibilitychange`. Move in the game loop with **dt**, not in the
|
|
2401
|
+
key handler.
|
|
2402
|
+
- Unify keyboard + touch + gamepad into **actions** (`throttle`, `steer`,
|
|
2403
|
+
`pitch`, `roll`, …). See `building-games/references/input.md`.
|
|
2404
|
+
- Touch: left stick = move/steer, right = actions; ≥44px targets.
|
|
2405
|
+
|
|
2406
|
+
---
|
|
2407
|
+
|
|
2408
|
+
## 5. Mandatory control self-test (before “done”)
|
|
2409
|
+
|
|
2410
|
+
Screenshot-only is **not** enough for any craft with A/D.
|
|
2411
|
+
|
|
2412
|
+
### 5a. Player-visible checklist (every vehicle / flight build)
|
|
2413
|
+
|
|
2414
|
+
While **moving forward** (speed > small epsilon), chase cam behind:
|
|
2415
|
+
|
|
2416
|
+
| Hold | Must observe within ~0.5s |
|
|
2417
|
+
|------|---------------------------|
|
|
2418
|
+
| **A** | Nose or bank moves **left** on screen |
|
|
2419
|
+
| **D** | Nose or bank moves **right** on screen |
|
|
2420
|
+
| **W** (ground) | Speed increases / moves along facing |
|
|
2421
|
+
| **S** (ground) | Brakes or reverse (as designed) |
|
|
2422
|
+
|
|
2423
|
+
If A fails: flip steer/roll sign **once**, retest both A and D.
|
|
2424
|
+
|
|
2425
|
+
### 5b. Minimal test interface (implement this)
|
|
2426
|
+
|
|
2427
|
+
Expose a tiny hook so you (and automated QA) can prove signs without guessing
|
|
2428
|
+
private closures:
|
|
2429
|
+
|
|
2430
|
+
```js
|
|
2431
|
+
// e.g. src/game/controlsTest.ts — dev/QA only is fine
|
|
2432
|
+
export type ControlsProbe = {
|
|
2433
|
+
getYaw: () => number; // radians; or getHeading()
|
|
2434
|
+
getSpeed: () => number;
|
|
2435
|
+
/** Inject held actions instead of real keys; both stay applied until you
|
|
2436
|
+
* change them, so §5c can hold a key across frames and clear at the end. */
|
|
2437
|
+
setSteer?: (v: number) => void; // -1..1, same sign as production
|
|
2438
|
+
setKeys?: (codes: string[]) => void; // held until the next call; `[]` clears
|
|
2439
|
+
};
|
|
2440
|
+
|
|
2441
|
+
declare global {
|
|
2442
|
+
interface Window {
|
|
2443
|
+
__controlsTest?: ControlsProbe;
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
```
|
|
2447
|
+
|
|
2448
|
+
Wire `window.__controlsTest` from the game loop when `import.meta.env.DEV` or a
|
|
2449
|
+
`?qa=1` flag is set.
|
|
2450
|
+
|
|
2451
|
+
### 5c. Automated smoke (run it)
|
|
2452
|
+
|
|
2453
|
+
Drive the §5b probe with the preinstalled **`agent-browser`** CLI — that is the
|
|
2454
|
+
first move, not a hand-written script. **A thrown `eval` exits non-zero; a
|
|
2455
|
+
merely falsy one does not**, so assert by throwing. Run it as one `batch` — one
|
|
2456
|
+
CLI call, not one per verb — taking JSON on stdin; `--bail` stops at the first
|
|
2457
|
+
failing step and exits non-zero.
|
|
2458
|
+
|
|
2459
|
+
```bash
|
|
2460
|
+
agent-browser batch --bail <<''JSON'' # find''s label is case-sensitive: copy it from `snapshot -i`
|
|
2461
|
+
[["open","http://127.0.0.1:8080/"],
|
|
2462
|
+
["find","text","Start","click"],
|
|
2463
|
+
["eval","if (!window.__controlsTest?.setKeys) throw Error(''no §5b probe: add setKeys'')"],
|
|
2464
|
+
["eval","__controlsTest.setKeys([''KeyW''])"],
|
|
2465
|
+
["wait","600"],
|
|
2466
|
+
["eval","if (__controlsTest.getSpeed() <= 0.1) throw Error(''W: no move'')"],
|
|
2467
|
+
["eval","(async () => { const t = __controlsTest, y0 = t.getYaw(); t.setKeys([''KeyW'',''KeyA'']); await new Promise(r => setTimeout(r, 300)); t.setKeys([''KeyW'']); const d = t.getYaw() - y0, w = Math.atan2(Math.sin(d), Math.cos(d)); if (w < -0.05) throw Error(''A turns RIGHT — inverted, got '' + w.toFixed(2)); if (w <= 0.05) throw Error(''A barely turned ('' + w.toFixed(2) + '') — hold longer or check the sim is running''); return ''A ok'' })()"],
|
|
2468
|
+
["eval","__controlsTest.setKeys([])"],
|
|
2469
|
+
["screenshot","/workspace/screenshots/controls.png"],
|
|
2470
|
+
["close"]]
|
|
2471
|
+
JSON
|
|
2472
|
+
```
|
|
2473
|
+
|
|
2474
|
+
**Hold keys through the probe, not with `keydown`** — `agent-browser keydown`
|
|
2475
|
+
does not reach §4''s `Set`, so a correct game reads as broken. No `setKeys` on
|
|
2476
|
+
your probe? Add it (§5b), or dispatch the key event yourself — the browser-QA
|
|
2477
|
+
reference''s **Keys** note has the mechanism and the form.
|
|
2478
|
+
|
|
2479
|
+
The hold sits **inside** one `eval`: spread across commands it lasts however
|
|
2480
|
+
long they take, and the ±π wrap in `Math.atan2(Math.sin(d), Math.cos(d))`
|
|
2481
|
+
reads a craft that turned more than π as one turning the other way. The IIFE is
|
|
2482
|
+
what keeps the step re-runnable — a bare `const d = …` fails the second time
|
|
2483
|
+
with "already declared" — and `async` is what lets the hold run in page time.
|
|
2484
|
+
Repeat for **D** with `''KeyD''` and both comparisons mirrored (`w > 0.05` is
|
|
2485
|
+
inverted, `w >= -0.05` is barely), single-quoted so the JSON needs no escapes;
|
|
2486
|
+
for planes assert **roll**: A ⇒ bank left.
|
|
2487
|
+
|
|
2488
|
+
**`A turns RIGHT`** is the sign error: flip **one** sign and re-run.
|
|
2489
|
+
**`A barely turned`** is not — the craft moved the right way, just less than
|
|
2490
|
+
0.05 rad in 300 ms, which a boat or a heavy rover will do; raise the hold, or
|
|
2491
|
+
check the sim is running, and flip nothing. Any other non-zero exit — no probe,
|
|
2492
|
+
a wedged daemon — means the check never ran: read the message first. Read the
|
|
2493
|
+
browser-QA reference `AGENTS.md` links before your first flow — verbs, argument
|
|
2494
|
+
shapes and the fallback are there.
|
|
2495
|
+
|
|
2496
|
+
### 5d. What not to do
|
|
2497
|
+
|
|
2498
|
+
- Do **not** only test “D increases some internal variable.”
|
|
2499
|
+
- Do **not** use FPS “D → +X when facing −Z” as the vehicle pass condition.
|
|
2500
|
+
- Do **not** flip mesh bank, camera, and steer all at once when fixing — change
|
|
2501
|
+
**one** sign, retest.
|
|
2502
|
+
|
|
2503
|
+
---
|
|
2504
|
+
|
|
2505
|
+
## 6. Finish criteria (controls)
|
|
2506
|
+
|
|
2507
|
+
- [ ] Opened **this** skill before writing movement/steer/flight.
|
|
2508
|
+
- [ ] Genre map chosen (§2) and start-screen / HUD labels match it.
|
|
2509
|
+
- [ ] Chase-cam A/D player-visible test **passed** (§5a).
|
|
2510
|
+
- [ ] `window.__controlsTest` (or equivalent) available in dev/QA and used once.
|
|
2511
|
+
- [ ] No inverted bank mesh relative to roll/steer input.
|
|
2512
|
+
- [ ] Keys are held-state + dt-scaled; no sticky thrust from a single Space tap
|
|
2513
|
+
unless intentional and labeled.
|
|
2514
|
+
|
|
2515
|
+
If any box is unchecked, the game is **not** done.
|
|
2516
|
+
','skills/agentsam-game-controls/SKILL.md','3b90d9285d64bded6396560810bc44be7592c063791ce6df59a622e9ead75519','read_only','{"origin":"sdk_source","source_id":"agentsam-game-controls","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2517
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_b710196e20848a64663810e9','platform','AgentSam · interface design','/agentsam-game-interface-design','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Polished, non-generic UI: tokens, layout, type, color, motion, anti-slop','---
|
|
2518
|
+
name: agentsam-game-interface-design
|
|
2519
|
+
description: >
|
|
2520
|
+
Design and build polished, non-generic UI for this TanStack Start + React +
|
|
2521
|
+
Tailwind v4 + shadcn/Radix app. Use whenever you create or restyle any
|
|
2522
|
+
interface surface — pages, landing pages, dashboards, forms, modals, nav, and
|
|
2523
|
+
game overlays (start screens, HUD, menus). Covers design tokens, layout,
|
|
2524
|
+
typography, color, spacing, motion, and the anti-"AI-slop" rules that keep
|
|
2525
|
+
output from looking generic. Triggers on "design", "UI", "make it look good",
|
|
2526
|
+
"polish", "landing page", "theme", "style", "redesign", "ugly", "clean up".
|
|
2527
|
+
metadata:
|
|
2528
|
+
short-description: "Polished, non-generic UI: tokens, layout, type, color, motion, anti-slop"
|
|
2529
|
+
user-invocable: false
|
|
2530
|
+
---
|
|
2531
|
+
|
|
2532
|
+
# Design & UI
|
|
2533
|
+
|
|
2534
|
+
Make interfaces that look intentional and premium, not template-generic. This is
|
|
2535
|
+
the single biggest quality lever in the app builder. Apply it to **DOM / overlay
|
|
2536
|
+
UI** — pages, chrome, HUD, menus, forms. (For a 3D game''s gameplay canvas, see
|
|
2537
|
+
the `agentsam-game-building` skill; this skill governs the DOM UI layered over it.)
|
|
2538
|
+
|
|
2539
|
+
**Read `references/` for depth** (loaded on demand — don''t inline it all):
|
|
2540
|
+
- `references/refined-ui.md` — the full product-chrome/overlay design system.
|
|
2541
|
+
- `references/typography.md` — type scale, pairing, rhythm.
|
|
2542
|
+
- `references/surfaces.md` — elevation, borders, shadows, layering.
|
|
2543
|
+
- `references/animations.md` — motion, easing, transitions.
|
|
2544
|
+
- `references/performance.md` — keep UI smooth (60fps, no jank).
|
|
2545
|
+
|
|
2546
|
+
---
|
|
2547
|
+
|
|
2548
|
+
## 1. Design-system-first (do this before styling anything)
|
|
2549
|
+
|
|
2550
|
+
Define the system once, then compose from it. **Never** sprinkle ad-hoc values.
|
|
2551
|
+
|
|
2552
|
+
- **Tokens in CSS (Tailwind v4 is CSS-first).** Put the palette, radii, and fonts
|
|
2553
|
+
in `src/styles.css` under `@theme` as CSS variables; consume them as Tailwind
|
|
2554
|
+
utilities. One source of truth.
|
|
2555
|
+
```css
|
|
2556
|
+
@import "tailwindcss";
|
|
2557
|
+
@theme {
|
|
2558
|
+
--color-bg: #0b0b0f; --color-surface: #16161d;
|
|
2559
|
+
--color-fg: #e7e7ea; --color-muted: #a0a0ab;
|
|
2560
|
+
--color-primary: #14b8a6; --color-border: #26262f;
|
|
2561
|
+
--radius: 0.75rem; --font-sans: "Inter", system-ui, sans-serif;
|
|
2562
|
+
}
|
|
2563
|
+
```
|
|
2564
|
+
- **Use shadcn/ui components** (Radix primitives + `cva` variants + `tailwind-merge`)
|
|
2565
|
+
for buttons, dialogs, dropdowns, inputs, etc. They''re accessible and consistent.
|
|
2566
|
+
Generate them into `src/components/ui`; style via tokens, not inline hex.
|
|
2567
|
+
- **Tailwind v4 base fix — buttons need a pointer cursor.** v4''s Preflight makes
|
|
2568
|
+
`<button>` use `cursor: default`, which feels broken. Add this once in
|
|
2569
|
+
`src/styles.css` so buttons/clickable roles show a pointer:
|
|
2570
|
+
```css
|
|
2571
|
+
@layer base {
|
|
2572
|
+
button:not(:disabled),
|
|
2573
|
+
[role="button"]:not(:disabled) { cursor: pointer; }
|
|
2574
|
+
}
|
|
2575
|
+
```
|
|
2576
|
+
- **Ban ad-hoc styling:** no raw hex in JSX, no `text-white`/`bg-black` literals,
|
|
2577
|
+
no arbitrary values like `p-[16px]` or `text-[13px]`. If you need a value,
|
|
2578
|
+
it becomes a token or a scale step.
|
|
2579
|
+
|
|
2580
|
+
## 2. The quantified rubric (cheap rules that prevent "ugly")
|
|
2581
|
+
|
|
2582
|
+
- **≤ 3–5 colors total** (one primary + neutrals + at most one accent). No random
|
|
2583
|
+
extra hues. Don''t default to purple unless asked.
|
|
2584
|
+
- **≤ 2 font families** (often one). Pair a display/heading with a body, or use one.
|
|
2585
|
+
- **Line-height 1.4–1.6** for body; tighter for large headings.
|
|
2586
|
+
- **When you override a background color, override the foreground/text color too**
|
|
2587
|
+
(contrast must hold — check both light and dark).
|
|
2588
|
+
- **Mobile-first**: design the ~390px layout first, then scale up. No horizontal
|
|
2589
|
+
overflow; tap targets ≥ 44px.
|
|
2590
|
+
- **Consistent spacing scale** (4/8-based). Generous whitespace beats cramming.
|
|
2591
|
+
- **One accent, used sparingly** for primary actions — not everywhere.
|
|
2592
|
+
|
|
2593
|
+
## 3. Anti-AI-slop (the tells that make output look generic — avoid)
|
|
2594
|
+
|
|
2595
|
+
- **No gradient-blob filler**, no giant hero gradients as a substitute for content.
|
|
2596
|
+
- **No emoji as icons** — use a real icon set (`lucide-react`).
|
|
2597
|
+
- **No hand-drawn SVG** illustrations/maps/charts — use real libraries (`recharts`
|
|
2598
|
+
for charts) or real generated images.
|
|
2599
|
+
- **No placeholder images / lorem-gray boxes** in the final product — generate
|
|
2600
|
+
real images or use real content; set `crossOrigin="anonymous"` on canvas images.
|
|
2601
|
+
- **Avoid the overused-font look** (default system-only, or Comic Sans-tier picks).
|
|
2602
|
+
- **Every element earns its place.** Cut decorative noise. Establish a system,
|
|
2603
|
+
then vary with intent — not randomness.
|
|
2604
|
+
- **Match the existing UI when editing** an app in place; don''t introduce a second
|
|
2605
|
+
visual language.
|
|
2606
|
+
|
|
2607
|
+
## 4. Layout & hierarchy
|
|
2608
|
+
|
|
2609
|
+
- Clear visual hierarchy: one primary action per view; size/weight/color express
|
|
2610
|
+
importance. See `references/typography.md` and `references/surfaces.md`.
|
|
2611
|
+
- Use real layout structure (grid/flex, container max-widths), not absolute-position
|
|
2612
|
+
hacks. Align to a consistent grid.
|
|
2613
|
+
- Empty states, loading states, and error states are part of the design — don''t
|
|
2614
|
+
ship blank/janky intermediate states.
|
|
2615
|
+
|
|
2616
|
+
## 5. Motion (subtle, purposeful)
|
|
2617
|
+
|
|
2618
|
+
- Short, eased transitions (150–250ms) on hover/press/enter; respect
|
|
2619
|
+
`prefers-reduced-motion`. Details in `references/animations.md`.
|
|
2620
|
+
- Never animate layout in a way that causes jank; prefer transform/opacity.
|
|
2621
|
+
|
|
2622
|
+
## 6. Game overlays (when this pairs with `agentsam-game-building`)
|
|
2623
|
+
|
|
2624
|
+
The gameplay canvas is owned by `agentsam-game-building`. This skill styles the **DOM
|
|
2625
|
+
overlay**: start/"click to play" screen, HUD, score, menus, pause, mobile
|
|
2626
|
+
controls. Keep overlay readable over the canvas (backdrop, contrast), and keep it
|
|
2627
|
+
out of the pointer-lock/gameplay input path.
|
|
2628
|
+
|
|
2629
|
+
---
|
|
2630
|
+
|
|
2631
|
+
## Finish checklist (before you call UI done)
|
|
2632
|
+
- Tokens defined in `@theme`; no ad-hoc hex / arbitrary values in JSX.
|
|
2633
|
+
- ≤ 5 colors, ≤ 2 fonts, consistent spacing scale.
|
|
2634
|
+
- Contrast holds; foreground overridden wherever background is.
|
|
2635
|
+
- Mobile (~390px) has no overflow; targets ≥ 44px.
|
|
2636
|
+
- Real icons/images/charts — none of the anti-slop tells.
|
|
2637
|
+
- Loading/empty/error states handled; motion subtle and reduced-motion-safe.
|
|
2638
|
+
- Rendered and eyeballed in a browser (see AGENTS.md verification), not just curl.
|
|
2639
|
+
','skills/agentsam-game-interface-design/SKILL.md','d63627cab6411d21fedabb7c8662d83dc25ca34e0cc8069355ddfeac2a5c3aae','read_only','{"origin":"sdk_source","source_id":"agentsam-game-interface-design","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2640
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_95d3c23376ae2fd00c3a3468','platform','AgentSam · animation frames','/agentsam-game-animation-frames','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Video-first animation frames that actually cycle','---
|
|
2641
|
+
name: agentsam-game-animation-frames
|
|
2642
|
+
description: >
|
|
2643
|
+
Deep guide for game ANIMATION assets: motion cycles, action keyframes,
|
|
2644
|
+
effect sequences, and animation sprite sheets — built around a
|
|
2645
|
+
video-first pipeline. In this app-builder sandbox, execute via the
|
|
2646
|
+
video2dsprite / generate2dsprite skills (magenta + scripts), not ad-hoc
|
|
2647
|
+
ffmpeg. Use whenever generating anything that moves: walk/run cycles,
|
|
2648
|
+
attacks, idles, FX, flags, fire, animation sheets. Complements
|
|
2649
|
+
game-asset-core.
|
|
2650
|
+
metadata:
|
|
2651
|
+
short-description: "Video-first animation frames that actually cycle"
|
|
2652
|
+
user-invocable: false
|
|
2653
|
+
---
|
|
2654
|
+
|
|
2655
|
+
# Animation Frames — video-first
|
|
2656
|
+
|
|
2657
|
+
The image generator draws poses; the VIDEO generator understands motion —
|
|
2658
|
+
leg alternation, arc continuity, cloth and fire dynamics come free because
|
|
2659
|
+
video must animate them. So don''t ask the image model to imagine
|
|
2660
|
+
mid-motion poses: animate the base and harvest real frames.
|
|
2661
|
+
|
|
2662
|
+
## App-builder execution (read first)
|
|
2663
|
+
|
|
2664
|
+
This skill is **doctrine** (motion laws, loop QC, when to use video). In the
|
|
2665
|
+
app-builder sandbox, **do not** run a freeform `ffmpeg` harvest or invent a
|
|
2666
|
+
random keyable `#hex` background.
|
|
2667
|
+
|
|
2668
|
+
| Step | Do this |
|
|
2669
|
+
| --- | --- |
|
|
2670
|
+
| Production sprites / fixed grids | **`agentsam-game-sprite-generation`** — solid **`#FF00FF`** magenta sheets + chroma scripts |
|
|
2671
|
+
| Denser locomotion from video | **`agentsam-game-video-to-sprites`** — base still on **`#FF00FF`** → `image-to-video generation tool` → skill scripts (ffmpeg + chroma) |
|
|
2672
|
+
| Keyable background | Always **`#FF00FF`** when using either pipeline (required for chroma) |
|
|
2673
|
+
| This skill | Loop / flip-test / motion laws below — apply after the pipeline runs |
|
|
2674
|
+
|
|
2675
|
+
Open `skills/agentsam-game-video-to-sprites/SKILL.md` or `skills/agentsam-game-sprite-generation/SKILL.md`
|
|
2676
|
+
and follow their workflows for generation and postprocess. Then apply the
|
|
2677
|
+
laws and flip test here before shipping frames into the game.
|
|
2678
|
+
|
|
2679
|
+
## Default pipeline (intent)
|
|
2680
|
+
|
|
2681
|
+
1. **Base frame.** Subject in neutral/starting pose, full style words, side /
|
|
2682
|
+
game-appropriate view, **solid `#FF00FF` background** (app-builder chroma
|
|
2683
|
+
key). game-asset-core defaults apply.
|
|
2684
|
+
2. **Animate.** `image-to-video generation tool` from the base: one clear motion, in place,
|
|
2685
|
+
static camera ("the knight walks in place, side view, camera locked",
|
|
2686
|
+
6s). Keep the shot simple — one subject, one motion. Prefer running this
|
|
2687
|
+
through **`agentsam-game-video-to-sprites`** so harvest + chroma are consistent.
|
|
2688
|
+
3. **Harvest + clean.** Use **`agentsam-game-video-to-sprites`** scripts (not ad-hoc
|
|
2689
|
+
`ffmpeg -i … fps=12` alone). Magenta flood-fill / despill lives there;
|
|
2690
|
+
do not re-key with a different flat `#hex` unless you leave the magenta
|
|
2691
|
+
pipeline entirely.
|
|
2692
|
+
4. **Select.** Pick frames that (a) capture the motion''s distinct phases and
|
|
2693
|
+
(b) LOOP — the sequence''s end must flow back into its start. Don''t force
|
|
2694
|
+
a count: if the motion reads best with 8, 10, or 12 frames, deliver that
|
|
2695
|
+
many (more frames = smoother in-engine). For a cycle, select one full
|
|
2696
|
+
period using motion landmarks (foot contacts, wing extremes, flame peaks).
|
|
2697
|
+
5. **Package.** Deliver frames in play order (zero-padded names) and/or a
|
|
2698
|
+
sheet per game-asset-core rules (uniform cells, no dividers) — or the
|
|
2699
|
+
transparent strips/grids emitted by **`agentsam-game-video-to-sprites`** /
|
|
2700
|
+
**`agentsam-game-sprite-generation`**. State the intended fps.
|
|
2701
|
+
|
|
2702
|
+
Fall back to keyframe-by-keyframe `image-generation tool` (still on `#FF00FF` when
|
|
2703
|
+
postprocessing with the sprite scripts) only when video fails the motion
|
|
2704
|
+
(rare: very stylized poses, single dramatic keyframes) — and then plan
|
|
2705
|
+
phases yourself and obey the laws below. Prefer **`agentsam-game-sprite-generation`** for
|
|
2706
|
+
crisp production multi-frame grids.
|
|
2707
|
+
|
|
2708
|
+
## Motion laws (verify against these, whatever the pipeline)
|
|
2709
|
+
|
|
2710
|
+
- Cycles loop; alternating gaits spend half the period mirrored.
|
|
2711
|
+
- Continuity: limbs, props, anatomy, effects move on continuous paths —
|
|
2712
|
+
nothing teleports, vanishes, or duplicates between adjacent frames.
|
|
2713
|
+
- Physics reads in stills: airborne shows air, anticipation compresses,
|
|
2714
|
+
follow-through overshoots; effects stay anchored to their origin unless
|
|
2715
|
+
the request moves them.
|
|
2716
|
+
- Energy matches the ask: idle/subtle means barely-different frames.
|
|
2717
|
+
|
|
2718
|
+
## Verify — the flip test
|
|
2719
|
+
|
|
2720
|
+
View the final frames strictly in order and narrate the motion; check
|
|
2721
|
+
loop closure explicitly (last→first). A hedge in your narration is a
|
|
2722
|
+
failed frame. The video pipeline usually passes this on the first try —
|
|
2723
|
+
that''s why it''s the default.
|
|
2724
|
+
','skills/agentsam-game-animation-frames/SKILL.md','27f7a80cd77b15139f8beda87008ae0cf6a9677fa72e7dbe27640f3082181ebc','read_only','{"origin":"sdk_source","source_id":"agentsam-game-animation-frames","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2725
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_e9b0e3a77a72b213f749f1cc','platform','AgentSam · asset core','/agentsam-game-asset-core','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Core rules + engine-ready defaults for game assets','---
|
|
2726
|
+
name: agentsam-game-asset-core
|
|
2727
|
+
description: >
|
|
2728
|
+
Core discipline for ANY game-asset generation with Imagine tools: the
|
|
2729
|
+
engine-ready defaults users don''t state, spec checklists, style anchoring,
|
|
2730
|
+
read-back verification, honest defect flagging. Use whenever generating
|
|
2731
|
+
any game art (sprites, sheets, animations, tiles, UI, FX) — then ALSO load
|
|
2732
|
+
the matching specialist skill: game-animation-frames for anything that moves,
|
|
2733
|
+
game-tilesets for tiles/terrain, game-character-consistency for recurring characters,
|
|
2734
|
+
game-ui-icons for UI and icons.
|
|
2735
|
+
metadata:
|
|
2736
|
+
short-description: "Core rules + engine-ready defaults for game assets"
|
|
2737
|
+
user-invocable: false
|
|
2738
|
+
---
|
|
2739
|
+
|
|
2740
|
+
# Asset Core
|
|
2741
|
+
|
|
2742
|
+
Game developers ask for WHAT they need, not HOW to make it engine-ready.
|
|
2743
|
+
The how is your job. Apply these defaults whenever the request doesn''t say
|
|
2744
|
+
otherwise — an asset that needs manual cleanup is a miss even if the user
|
|
2745
|
+
never mentioned the requirement.
|
|
2746
|
+
|
|
2747
|
+
## App-builder note
|
|
2748
|
+
|
|
2749
|
+
This skill is **doctrine / QC**. For 2D sprites and motion in this sandbox, also
|
|
2750
|
+
run the pipeline skills:
|
|
2751
|
+
|
|
2752
|
+
- **`agentsam-game-sprite-generation`** / **`agentsam-game-video-to-sprites`** for sheets and video harvest
|
|
2753
|
+
- Keyable background on those paths is solid **`#FF00FF`** (required for chroma)
|
|
2754
|
+
— not an arbitrary flat hex
|
|
2755
|
+
- Motion laws and loop QC live in **`agentsam-game-animation-frames`** (which defers
|
|
2756
|
+
execution to those pipelines)
|
|
2757
|
+
|
|
2758
|
+
## Unprompted engine-ready defaults
|
|
2759
|
+
|
|
2760
|
+
| When asked for... | Deliver, without being told... |
|
|
2761
|
+
|---|---|
|
|
2762
|
+
| a character/creature/prop sprite | isolated subject, flat single-color keyable background (**`#FF00FF`** when using generate2dsprite/video2dsprite), clean silhouette, no baked ground scene or cast shadow |
|
|
2763
|
+
| anything that moves/animates | a frame SEQUENCE that loops cleanly (see game-animation-frames; execute via video2dsprite/generate2dsprite) |
|
|
2764
|
+
| a sprite sheet | uniform implicit cells, NO divider lines, subject at the identical position per cell so frames crop at width/cols × height/rows — or build it yourself: frames + PIL composite |
|
|
2765
|
+
| ground/terrain/water/walls | seamlessly tileable (verify with a real 2×2 composite), no landmark motifs, non-directional lighting where rotation might be used |
|
|
2766
|
+
| UI panels/frames/buttons | scale-survivable (9-slice: corner ornament, uniform edges), no text ever (games localize), state variants geometry-identical |
|
|
2767
|
+
| the same character/object again | edit-chained from your existing base image, never regenerated fresh |
|
|
2768
|
+
| icons | one style contract across the set, uniform padding, legible at 32px |
|
|
2769
|
+
|
|
2770
|
+
Deliver organized, exactly-named files; if the request leaves counts or
|
|
2771
|
+
naming to you, choose sensible names and document them in a manifest/record.
|
|
2772
|
+
|
|
2773
|
+
## Working discipline
|
|
2774
|
+
|
|
2775
|
+
1. **Spec checklist (private).** List every stated property PLUS the
|
|
2776
|
+
applicable defaults above. Verify against it; never paste it into
|
|
2777
|
+
prompts.
|
|
2778
|
+
2. **Prompt in the generator''s language.** 2–5 vivid sentences, always with
|
|
2779
|
+
style/medium words. Express geometry/quantity as nameable visual
|
|
2780
|
+
configurations (clock positions, pie wedges, colored markers), never as
|
|
2781
|
+
numbers or abstractions.
|
|
2782
|
+
3. **Verify by describing blind, then diffing.** Write what the image shows
|
|
2783
|
+
before re-reading the spec. Every stated property AND every applicable
|
|
2784
|
+
default is pass/fail — no "good enough", no self-negotiated waivers. A
|
|
2785
|
+
hedge in your own description = failed check.
|
|
2786
|
+
4. **Escalate representation, then strategy.** Retry once with a more
|
|
2787
|
+
concrete visual re-expression. If the generator repeats the same failure,
|
|
2788
|
+
it''s a prior: build compositionally (parts + PIL rotate/mirror/assemble —
|
|
2789
|
+
mind mirrored asymmetries) or keep the best and FLAG it. ~2 discards max
|
|
2790
|
+
per point being proven.
|
|
2791
|
+
5. **Deliver and report.** Final pass across all files for cohesion and the
|
|
2792
|
+
checklist; state every unfixed defect and every default you consciously
|
|
2793
|
+
deviated from.
|
|
2794
|
+
','skills/agentsam-game-asset-core/SKILL.md','4f7b463b6c9d721d758f715ebdaa3b37ec0347601b81ed3fef3416b5a73642bb','read_only','{"origin":"sdk_source","source_id":"agentsam-game-asset-core","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2795
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_a235a875924f25a7d92d631d','platform','AgentSam · character consistency','/agentsam-game-character-consistency','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Same character, every image','---
|
|
2796
|
+
name: agentsam-game-character-consistency
|
|
2797
|
+
description: >
|
|
2798
|
+
Deep guide for CHARACTER IDENTITY across images: turnarounds (front/side/
|
|
2799
|
+
back), state and damage variants, palette swaps, equipment changes, and
|
|
2800
|
+
same-character-in-context sets. Use whenever generating character
|
|
2801
|
+
turnarounds, character sheets, variants of an existing sprite, or any
|
|
2802
|
+
same-subject multi-image set. Complements game-asset-core.
|
|
2803
|
+
metadata:
|
|
2804
|
+
short-description: "Same character, every image"
|
|
2805
|
+
user-invocable: false
|
|
2806
|
+
---
|
|
2807
|
+
|
|
2808
|
+
# Character Consistency
|
|
2809
|
+
|
|
2810
|
+
The product is the IDENTITY, not any single image.
|
|
2811
|
+
Users state WHAT they need, not how — apply everything here even when
|
|
2812
|
+
the request never mentions it.
|
|
2813
|
+
|
|
2814
|
+
|
|
2815
|
+
## 1. Asymmetry bookkeeping (turnarounds)
|
|
2816
|
+
|
|
2817
|
+
Before prompting, write the side-map table for every view. Example: "her
|
|
2818
|
+
left arm sleeved" →
|
|
2819
|
+
|
|
2820
|
+
| view | sleeved arm appears on | staff hand appears on |
|
|
2821
|
+
|-------|------------------------|----------------------|
|
|
2822
|
+
| front | viewer''s RIGHT | (as designed) |
|
|
2823
|
+
| right profile | near side = her right = BARE | ... |
|
|
2824
|
+
| back | viewer''s LEFT | mirrored from front |
|
|
2825
|
+
|
|
2826
|
+
Prompt each view with VIEWER-relative words from this table, never
|
|
2827
|
+
body-relative words. Verify each output against the table, not the original
|
|
2828
|
+
sentence.
|
|
2829
|
+
|
|
2830
|
+
## 2. Hands and props
|
|
2831
|
+
|
|
2832
|
+
- A held item must be GRIPPED: check the hand-object contact point in every
|
|
2833
|
+
image. A staff floating beside an open hand = fail.
|
|
2834
|
+
- The item stays in the SAME hand across all views/frames (mirror it
|
|
2835
|
+
correctly in back views).
|
|
2836
|
+
|
|
2837
|
+
## 3. Edit-chain protocol
|
|
2838
|
+
|
|
2839
|
+
- One base image; every view/variant/state via `reference-guided image-generation tool` with the base
|
|
2840
|
+
`file_path` (or the nearest neighbor view): "Keep this exact character — same
|
|
2841
|
+
face, colors, proportions, outfit, scale, background — change only <X>."
|
|
2842
|
+
- Views must be genuinely rotated (a side view is a strict profile: nose,
|
|
2843
|
+
chest, toes all pointing at the frame edge), not three slightly-turned
|
|
2844
|
+
fronts.
|
|
2845
|
+
- KEEP THE STYLE WORDS in every edit prompt ("stylized 2D game art, cel
|
|
2846
|
+
shading" or whatever the set uses). Edits without style words drift
|
|
2847
|
+
toward photorealism.
|
|
2848
|
+
|
|
2849
|
+
## 4. Variants (damage / palette / equipment)
|
|
2850
|
+
|
|
2851
|
+
- State the freeze-list first in the prompt (pose, framing, background,
|
|
2852
|
+
everything not being changed), then the single change.
|
|
2853
|
+
- Damage states are STATES, not action frames: worn, cracked, dented — no
|
|
2854
|
+
debris flying mid-air.
|
|
2855
|
+
- Verify by viewing base and variant together: background hue, framing,
|
|
2856
|
+
proportions, and all unrequested details must match. Escalating states
|
|
2857
|
+
(hurt → critical) must be strictly ordered when viewed as a set.
|
|
2858
|
+
|
|
2859
|
+
## 5. Verify
|
|
2860
|
+
|
|
2861
|
+
For every image in the set, describe blind: which side has the marker
|
|
2862
|
+
detail, what''s in each hand, face/proportion match to base. One mismatch =
|
|
2863
|
+
targeted retry of that image only.
|
|
2864
|
+
','skills/agentsam-game-character-consistency/SKILL.md','cc877e29665684f11dbb755c4124192e9971ec9cfad49f3b1f990f947a26e49b','read_only','{"origin":"sdk_source","source_id":"agentsam-game-character-consistency","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2865
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_554ed644f1879aac9bb4c57e','platform','AgentSam · tilesets','/agentsam-game-tilesets','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Seamless tiles and transition sets that actually tile','---
|
|
2866
|
+
name: agentsam-game-tilesets
|
|
2867
|
+
description: >
|
|
2868
|
+
Deep guide for game TILE assets: seamless tileable textures, terrain
|
|
2869
|
+
transition tilesets, autotiles, and ground/platform tiles. Use whenever
|
|
2870
|
+
generating tileable textures, tilesets, terrain transitions, or seamless
|
|
2871
|
+
patterns. Complements game-asset-core.
|
|
2872
|
+
metadata:
|
|
2873
|
+
short-description: "Seamless tiles and transition sets that actually tile"
|
|
2874
|
+
user-invocable: false
|
|
2875
|
+
---
|
|
2876
|
+
|
|
2877
|
+
# Tilesets
|
|
2878
|
+
|
|
2879
|
+
A tile''s job is invisibility in repetition.
|
|
2880
|
+
Users state WHAT they need, not how — apply everything here even when
|
|
2881
|
+
the request never mentions it.
|
|
2882
|
+
Judge everything by "will the
|
|
2883
|
+
player notice the grid?"
|
|
2884
|
+
|
|
2885
|
+
## 1. Seamless single tiles
|
|
2886
|
+
|
|
2887
|
+
- Prompt for UNIFORM stochastic texture: even density, even lighting, no
|
|
2888
|
+
shadows with direction, "the pattern continues off every edge".
|
|
2889
|
+
- The repetition killer is any distinctive motif — one recognizable clump,
|
|
2890
|
+
flower, or rock repeats forever. Prompt for anonymous texture; verify by
|
|
2891
|
+
hunting for anything you could point at twice.
|
|
2892
|
+
- MANDATORY check: composite a real 2×2 repeat with PIL to a throwaway file
|
|
2893
|
+
and view it. Look for (a) seam lines at the joins, (b) any motif you can
|
|
2894
|
+
spot in all four quadrants, (c) large-scale tone gradients that create
|
|
2895
|
+
checkerboarding. Any of the three = retry.
|
|
2896
|
+
|
|
2897
|
+
## 2. Transition tilesets (grass→dirt etc.)
|
|
2898
|
+
|
|
2899
|
+
- Prompt it as ONE continuous painted image that happens to be sliceable —
|
|
2900
|
+
never as "tiles", "cells with borders", or anything inviting separated
|
|
2901
|
+
sticker-tiles with gaps. Cells must be filled edge-to-edge, painted
|
|
2902
|
+
content flowing across cell boundaries so adjacent tiles genuinely match.
|
|
2903
|
+
- Layout for a 3×3: center = pure inner material; edge cells = straight
|
|
2904
|
+
transitions facing outward; corner cells = outer corners. Verify
|
|
2905
|
+
DIRECTIONALITY per cell (top-center''s grass is along its top edge, etc.).
|
|
2906
|
+
|
|
2907
|
+
## 3. Rotation economy — make fewer, better tiles
|
|
2908
|
+
|
|
2909
|
+
If lighting is neutral (pure top-down, no directional shading), one straight
|
|
2910
|
+
edge and one outer corner can be ROTATED in-engine to produce all four of
|
|
2911
|
+
each. So when the tile count is yours to choose:
|
|
2912
|
+
|
|
2913
|
+
- Produce: 1 center fill, 1 straight edge, 1 outer corner, 1 inner corner —
|
|
2914
|
+
then spend the remaining budget on VARIATIONS of the center fill (2–3
|
|
2915
|
+
anonymous variants breaks up repetition far better than 4 identical
|
|
2916
|
+
rotated edges).
|
|
2917
|
+
- CAVEAT — rotation only works when nothing in the art encodes direction:
|
|
2918
|
+
no directional light, no gravity cues (hanging grass blades, drips), no
|
|
2919
|
+
text/emblems. Side-view (platformer) tiles almost always encode gravity
|
|
2920
|
+
and light, so they need all orientations painted individually. State in
|
|
2921
|
+
your delivery notes which tiles are rotation-safe.
|
|
2922
|
+
- If the request explicitly fixes the grid (e.g. "3×3 with all 8
|
|
2923
|
+
transitions"), deliver exactly that — mention rotation economy in notes,
|
|
2924
|
+
don''t unilaterally change the deliverable.
|
|
2925
|
+
|
|
2926
|
+
## 4. Platforms and props
|
|
2927
|
+
|
|
2928
|
+
Isolated on a keyable background, consistent lighting with their tileset,
|
|
2929
|
+
no baked ground shadow (engines composite shadows separately).
|
|
2930
|
+
','skills/agentsam-game-tilesets/SKILL.md','7ba87a7af5914f72bd5284ec22ddc4a01af90ce13d47e0eb7f9732566d8d458e','read_only','{"origin":"sdk_source","source_id":"agentsam-game-tilesets","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2931
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_08187367f082ff15f790f630','platform','AgentSam · ui icons','/agentsam-game-ui-icons','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Game UI kits and icon sets','---
|
|
2932
|
+
name: agentsam-game-ui-icons
|
|
2933
|
+
description: >
|
|
2934
|
+
Deep guide for game UI assets: buttons with interaction states, panels,
|
|
2935
|
+
bars, wordmark logos, and icon sets. Use whenever generating game UI
|
|
2936
|
+
elements, HUD assets, inventory icons, icon sets, buttons, or title
|
|
2937
|
+
logos. Complements game-asset-core.
|
|
2938
|
+
metadata:
|
|
2939
|
+
short-description: "Game UI kits and icon sets"
|
|
2940
|
+
user-invocable: false
|
|
2941
|
+
---
|
|
2942
|
+
|
|
2943
|
+
# Game UI & Icons
|
|
2944
|
+
|
|
2945
|
+
UI is a SYSTEM: the set matters more than any piece.
|
|
2946
|
+
Users state WHAT they need, not how — apply everything here even when
|
|
2947
|
+
the request never mentions it.
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
## 1. Interaction states (normal/hover/pressed)
|
|
2951
|
+
|
|
2952
|
+
- Generate NORMAL first; hover and pressed are `reference-guided image-generation tool` edits of it with an
|
|
2953
|
+
explicit freeze-list: "same shape, same size, same ornament, same frame
|
|
2954
|
+
thickness, same background — change ONLY <state treatment>".
|
|
2955
|
+
- Standard treatments: hover = subtle outer glow / slight brighten;
|
|
2956
|
+
pressed = darker + inset/inner shadow. States must be distinguishable at
|
|
2957
|
+
a glance AND identical in geometry — overlay-compare: outlines should
|
|
2958
|
+
coincide, frame thickness included.
|
|
2959
|
+
|
|
2960
|
+
## 2. Icon sets
|
|
2961
|
+
|
|
2962
|
+
- One style contract for the whole set, decided before generating: same
|
|
2963
|
+
stroke weight, same fill treatment (all outlined OR all solid — never
|
|
2964
|
+
mixed), same palette family, same padding, same background, same visual
|
|
2965
|
+
weight. Verify the set side by side; one icon with a different treatment
|
|
2966
|
+
(e.g. sitting in a filled tile while others float) fails the SET even if
|
|
2967
|
+
it''s individually fine.
|
|
2968
|
+
- Generate icon 1, then edit-chain the rest from it to inherit the
|
|
2969
|
+
contract.
|
|
2970
|
+
- Each icon must read at 32px: squint-test the thumbnail.
|
|
2971
|
+
|
|
2972
|
+
## 3. Panels, bars, wordmarks
|
|
2973
|
+
|
|
2974
|
+
- Panels/dialogs: blank, text-ready, borders that survive 9-slicing
|
|
2975
|
+
(uniform edges, ornament concentrated in corners).
|
|
2976
|
+
- Bars: clear frame vs fill separation; fill design must work at any
|
|
2977
|
+
percentage.
|
|
2978
|
+
- Wordmark logos: image models garble text — generate, then READ THE TEXT
|
|
2979
|
+
BACK letter by letter; any wrong/merged/extra letter = retry. Deliver as
|
|
2980
|
+
an isolated asset on flat/keyable background, not a full scene, unless a
|
|
2981
|
+
title SCREEN is requested.
|
|
2982
|
+
|
|
2983
|
+
## 4. No text anywhere else
|
|
2984
|
+
|
|
2985
|
+
Buttons, panels, icons: no lettering unless explicitly requested — models
|
|
2986
|
+
garble it and engines localize it.
|
|
2987
|
+
','skills/agentsam-game-ui-icons/SKILL.md','5d0474715a2bc2e43f064bc1879590743e28be96a09536e4456ee4c3cb1fa921','read_only','{"origin":"sdk_source","source_id":"agentsam-game-ui-icons","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
2988
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_20f5493762464350d56b996f','platform','AgentSam · map generation','/agentsam-game-map-generation','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'2D game maps: layered art, props, collision metadata','---
|
|
2989
|
+
name: agentsam-game-map-generation
|
|
2990
|
+
description: >
|
|
2991
|
+
Generate production-oriented 2D game maps with `image-generation tool`: RPG/top-down maps,
|
|
2992
|
+
side-scroller parallax stages, tilemaps, layered raster maps, prop packs,
|
|
2993
|
+
collision zones, and walkable areas. Use when building browser games that
|
|
2994
|
+
need real map art (not pure code-drawn tiles), layered props, or map
|
|
2995
|
+
collision metadata. Triggers on "map", "level", "stage", "tilemap",
|
|
2996
|
+
"overworld", "dungeon", "side scroller background", "prop pack", "2D map".
|
|
2997
|
+
metadata:
|
|
2998
|
+
short-description: "2D game maps: layered art, props, collision metadata"
|
|
2999
|
+
user-invocable: false
|
|
3000
|
+
---
|
|
3001
|
+
|
|
3002
|
+
# Generate2dmap
|
|
3003
|
+
|
|
3004
|
+
## App-builder / AgentSam environment
|
|
3005
|
+
|
|
3006
|
+
| Item | Value |
|
|
3007
|
+
| --- | --- |
|
|
3008
|
+
| Skill dir / scripts | `skills/agentsam-game-map-generation/`, run as `python3 skills/agentsam-game-map-generation/scripts/<script>.py …` |
|
|
3009
|
+
| Image tools | `image-generation tool` / `reference-guided image-generation tool` (path-based; see **`imagine`**); inspect output with `read_file` on the PNG path (not Codex view_image) |
|
|
3010
|
+
| Generated image path | `image-generation tool` → sandbox `file_path` → copy into `assets/map/`; Pillow is preinstalled |
|
|
3011
|
+
| Default `engine_target` | `raw_canvas` or `Phaser` for this TanStack browser sandbox — only use Godot/Unity/Tiled when the user explicitly wants those exports |
|
|
3012
|
+
| Related skills | **`agentsam-game-sprite-generation`** (character/FX sprites; prop packs still use this skill''s extract script), **`agentsam-game-building`**, **`imagine`** |
|
|
3013
|
+
|
|
3014
|
+
## Decide the pipeline first
|
|
3015
|
+
|
|
3016
|
+
Build the smallest playable map bundle that satisfies the game: choose a
|
|
3017
|
+
product-level `map_mode`, then the lower-level axes (`visual_model`,
|
|
3018
|
+
`runtime_object_model`, `collision_model`, `engine_target`).
|
|
3019
|
+
|
|
3020
|
+
- `tile_mode` — editable tile/grid maps: Pokemon-like routes, top-down RPG towns, platformer tilemaps, or any project already on Tiled/LDtk/Godot/Unity/Phaser tilemaps.
|
|
3021
|
+
- `scene_mode` — foundation base plus separate props: tower defense, survivors-like arenas, cozy top-down showcase maps.
|
|
3022
|
+
- `side_scroll_mode` — parallax side-scroller stages: Mega Man-like, action platformers, Metroidvania rooms, runners, brawlers.
|
|
3023
|
+
- `grid_mode` — rule-heavy grids: tactical RPGs, factory/automation, board/card battlers, build grids.
|
|
3024
|
+
- `room_chunk_mode` — modular rooms/chunks: roguelike dungeons, Metroidvania networks, procedural assembly.
|
|
3025
|
+
- `baked_scene_mode` — explicitly flat, non-playable scenes only: title/menu screens, battle backdrops, visual-novel scenes, concept art.
|
|
3026
|
+
|
|
3027
|
+
Use user-specified parameters when present; otherwise infer the lightest playable
|
|
3028
|
+
pipeline from the existing game, camera, collision needs, map scale, and editing
|
|
3029
|
+
needs. When mode and axes disagree, the mode''s playable/editable contract wins.
|
|
3030
|
+
Genre routing, per-mode axis defaults, presets, and the escalation heuristic are in
|
|
3031
|
+
`references/map-strategies.md` — read it whenever the choice is not obvious.
|
|
3032
|
+
|
|
3033
|
+
**A playable map is never one baked image.** For any request implying a playable
|
|
3034
|
+
map, level, stage, room, prototype, or engine scene, the deliverable must expose
|
|
3035
|
+
gameplay geometry and objects as separate layers, props, tile/object data,
|
|
3036
|
+
collision, zones, or engine-native scene nodes. A baked image may be a background,
|
|
3037
|
+
reference, or preview artifact — never the runtime map — unless the user
|
|
3038
|
+
explicitly asked for a flat background only.
|
|
3039
|
+
|
|
3040
|
+
**Scenes and maps only.** Do not generate character, enemy, boss, NPC, player,
|
|
3041
|
+
projectile, or animation sprites here; those belong to `$generate2dsprite`. Maps
|
|
3042
|
+
carry scene hooks (spawn markers, patrol/encounter zones, arena entrances, gates,
|
|
3043
|
+
exits, camera triggers) as **metadata**, not as drawn art.
|
|
3044
|
+
|
|
3045
|
+
## Art comes from image generation, and you write the prompts
|
|
3046
|
+
|
|
3047
|
+
- `image-generation tool` is the default art source for base maps, parallax plates,
|
|
3048
|
+
references, prop sheets, and tileset art. Default `art_style` is `clean_hd`
|
|
3049
|
+
(hand-painted HD, sharp readable shapes, low texture noise, no chunky pixels);
|
|
3050
|
+
use `pixel_inspired` or `retro_pixel` only when asked.
|
|
3051
|
+
- **Write every creative prompt yourself.** Scripts may assemble, slice,
|
|
3052
|
+
chroma-key, crop, validate, compose previews, and emit JSON/engine files — never
|
|
3053
|
+
write creative prompts or draw final art. Procedural/placeholder art only when
|
|
3054
|
+
the user explicitly asks for placeholders, fixtures, debug maps, or scaffolding.
|
|
3055
|
+
With a tile engine target, generate the tileset art first, then script only the
|
|
3056
|
+
layers, collision, zones, and scene wiring.
|
|
3057
|
+
- Save each prompt beside its asset as `<asset>.prompt.txt` (or an explicit
|
|
3058
|
+
manifest field) whenever the run creates new visual assets.
|
|
3059
|
+
- **A reference handoff is a file path, not a sentence.** To build on an earlier
|
|
3060
|
+
image, pass its sandbox `file_path` to `reference-guided image-generation tool` (and `read_file`
|
|
3061
|
+
it so you can see it), then name the concrete features to preserve: camera
|
|
3062
|
+
framing, horizon, road/water shapes, terrain boundaries, entrances/exits,
|
|
3063
|
+
landmarks. A filename, "based on the map", or the image merely being visible in
|
|
3064
|
+
conversation is **not** a handoff — stop and pass the path.
|
|
3065
|
+
|
|
3066
|
+
## Keep runtime objects out of the base layer
|
|
3067
|
+
|
|
3068
|
+
The first generated base/background/foundation image may hold only stable, non-interactive
|
|
3069
|
+
foundation art — ground material, paths, roads, water, cliffs, floor patterns, lane
|
|
3070
|
+
markings and build pads; for side views sky, far/mid scenery, silhouettes, atmosphere; for
|
|
3071
|
+
tilemaps tileset art as editable layers. It must **not** contain tall props, buildings,
|
|
3072
|
+
trees, rocks, crates, signs, doors, gates, pickups, chests, checkpoints, hazards, traps,
|
|
3073
|
+
turrets, ladders, foreground occluders, destructibles, actors, enemies, NPCs, UI, labels,
|
|
3074
|
+
or anything needing collision, interaction, reuse, y-sorting, animation, or its own render
|
|
3075
|
+
order — regenerate a foundation-only base, or demote such an image to a reference
|
|
3076
|
+
artifact.
|
|
3077
|
+
|
|
3078
|
+
## Reference mockups are checkpoints, not deliverables
|
|
3079
|
+
|
|
3080
|
+
Dressed references (top-down) and stage references (side-view) plan placement in-world:
|
|
3081
|
+
natural game-world objects or subtle blockout geometry, at most **9 distinct visible
|
|
3082
|
+
object candidates** (repeats count once, then recur in placement metadata), **no
|
|
3083
|
+
annotation graphics** (circles, arrows, outlines, labels, text, callouts, legends,
|
|
3084
|
+
measurement lines), and no non-visual metadata — spawns, triggers, patrol hints, camera
|
|
3085
|
+
bounds are written later as scene hooks.
|
|
3086
|
+
|
|
3087
|
+
**Having generated one, do not stop there.** Continue through
|
|
3088
|
+
`references/object-production-gate.md`: re-`read_file` both images, build the object
|
|
3089
|
+
list, generate the final separate objects, write placement / collision / scene-hook
|
|
3090
|
+
metadata, compose the QA preview. Reference-only output is an incomplete run unless
|
|
3091
|
+
the user explicitly asked for a concept image.
|
|
3092
|
+
|
|
3093
|
+
## Depth for the pipeline you picked — open these before producing assets
|
|
3094
|
+
|
|
3095
|
+
- Layered raster maps → `references/layered-map-contract.md` (layer types, base and
|
|
3096
|
+
prop prompt patterns, prop metadata, render order, collision, QA checklist).
|
|
3097
|
+
- `side_scroll_mode` → `references/side-scroll-stages.md`: the `stage_canvas`
|
|
3098
|
+
decision, the named scenery-only parallax layers, and the mandatory in-world
|
|
3099
|
+
stage reference before any platform/object work.
|
|
3100
|
+
- Any prop or scene-object generation → classify each object first, then follow
|
|
3101
|
+
`references/prop-pack-contract.md`: only compact props may share a square prop
|
|
3102
|
+
pack; platforms, floors, bridges, gates, buildings and anything collision-aligned
|
|
3103
|
+
go one-by-one, as a platform strip, a custom wide pack, or tile/object layers.
|
|
3104
|
+
- Parameters, the step-by-step workflow, and the `extract_prop_pack.py` /
|
|
3105
|
+
`compose_layered_preview.py` commands → `references/pipeline.md`.
|
|
3106
|
+
- Deliverable lists per pipeline and the validation checklist →
|
|
3107
|
+
`references/deliverables.md`; run both before calling a map done.
|
|
3108
|
+
','skills/agentsam-game-map-generation/SKILL.md','138868fd3ecf4739ec926953c3cfe909c3ce074e5f47c5f16b36b444db1baf1d','read_only','{"origin":"sdk_source","source_id":"agentsam-game-map-generation","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
3109
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_2cba7e8fec8b2e562ecadded','platform','AgentSam · sprite generation','/agentsam-game-sprite-generation','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'2D sprite sheets: image generation + magenta chroma postprocess','---
|
|
3110
|
+
name: agentsam-game-sprite-generation
|
|
3111
|
+
description: >
|
|
3112
|
+
Generate and postprocess 2D game sprites and animation sheets: pixel-art
|
|
3113
|
+
characters, NPCs, creatures, spells, projectiles, impacts, props, summons,
|
|
3114
|
+
and transparent PNG/GIF exports. Use when building browser games that need
|
|
3115
|
+
real sprite sheets (not code-drawn placeholders), matching a map art style,
|
|
3116
|
+
or producing magenta-background sheets for chroma-key cleanup. Triggers on
|
|
3117
|
+
"sprite", "sprite sheet", "animation sheet", "pixel art character", "walk
|
|
3118
|
+
cycle", "attack animation", "projectile sprite", "2D game asset".
|
|
3119
|
+
metadata:
|
|
3120
|
+
short-description: "2D sprite sheets: image-generation tool + magenta chroma postprocess"
|
|
3121
|
+
user-invocable: false
|
|
3122
|
+
---
|
|
3123
|
+
|
|
3124
|
+
# Generate2dsprite
|
|
3125
|
+
|
|
3126
|
+
Use this skill for self-contained 2D sprite or animation assets in the
|
|
3127
|
+
**app-builder sandbox** (TanStack Start + browser games).
|
|
3128
|
+
|
|
3129
|
+
When a larger game or playable prototype needs sprites, use this skill for the
|
|
3130
|
+
visible sprite assets and keep runtime/game assembly separate (wire into Phaser /
|
|
3131
|
+
Canvas / DOM after export). Do not replace requested sprite assets with
|
|
3132
|
+
code-drawn placeholders.
|
|
3133
|
+
|
|
3134
|
+
## App-builder / AgentSam environment
|
|
3135
|
+
|
|
3136
|
+
| Item | Value |
|
|
3137
|
+
| --- | --- |
|
|
3138
|
+
| Skill dir | `skills/agentsam-game-sprite-generation/` |
|
|
3139
|
+
| Scripts | `python3 skills/agentsam-game-sprite-generation/scripts/<script>.py …` |
|
|
3140
|
+
| Image tools | `image-generation tool` / `reference-guided image-generation tool` (path-based; see **`imagine`** skill for prompt craft) |
|
|
3141
|
+
| Inspect images | `read_file` on the PNG path (not Codex view_image) |
|
|
3142
|
+
| Generated image path | `image-generation tool` returns a sandbox `file_path`; copy that path into your run dir before processing |
|
|
3143
|
+
| Python deps | Pillow + numpy (preinstalled in the image) |
|
|
3144
|
+
| Output home | Prefer `assets/sprites/<name>/` under `/workspace` so the app can import them |
|
|
3145
|
+
| Engine target | Browser: Canvas 2D, Phaser, or DOM/`<img>` — not Godot/Unity unless the user asks |
|
|
3146
|
+
|
|
3147
|
+
Related skills: **`imagine`** (image tool usage), **`agentsam-game-asset-core`** (+
|
|
3148
|
+
`agentsam-game-animation-frames` / `agentsam-game-character-consistency` for QC and engine-ready
|
|
3149
|
+
defaults), **`agentsam-game-map-generation`** (maps/props), **`agentsam-game-video-to-sprites`** (denser motion
|
|
3150
|
+
via `image-to-video generation tool`), **`agentsam-game-building`** (game loop / integration).
|
|
3151
|
+
|
|
3152
|
+
## Parameters
|
|
3153
|
+
|
|
3154
|
+
Infer these from the user request:
|
|
3155
|
+
|
|
3156
|
+
- `asset_type`: `player` | `npc` | `creature` | `character` | `spell` | `projectile` | `impact` | `prop` | `summon` | `fx`
|
|
3157
|
+
- `action`: `single` | `idle` | `cast` | `attack` | `shoot` | `jump` | `hurt` | `combat` | `walk` | `run` | `hover` | `charge` | `projectile` | `impact` | `explode` | `death`
|
|
3158
|
+
- `view`: `topdown` | `side` | `3/4`
|
|
3159
|
+
- `sheet`: `auto` | `2x2` | `2x3` | `2x4` | `3x3` | `3x4` | `4x4` | `5x5` | `custom_grid` | `strip_1x3` | `strip_1x4`
|
|
3160
|
+
- `frames`: `auto` or explicit count
|
|
3161
|
+
- `bundle`: `single_asset` | `unit_bundle` | `spell_bundle` | `combat_bundle` | `line_bundle` | `hero_action_bundle` | `engine_atlas`
|
|
3162
|
+
- `effect_policy`: `all` | `largest`
|
|
3163
|
+
- `anchor`: `center` | `bottom` | `feet`
|
|
3164
|
+
- `margin`: `tight` | `normal` | `safe`
|
|
3165
|
+
- `art_style`: pixel_art | clean_hd | pixel_inspired | retro_pixel | map_style | project-native
|
|
3166
|
+
- `reference`: `none` | `attached_image` | `generated_image` | `local_file`
|
|
3167
|
+
- `layout_guide`: `none` | `optional` | `recommended`
|
|
3168
|
+
- `prompt`: the user''s theme or visual direction
|
|
3169
|
+
- `role`: only when the asset is clearly an NPC role
|
|
3170
|
+
- `name`: optional output slug
|
|
3171
|
+
|
|
3172
|
+
Read [references/modes.md](references/modes.md) when the request is ambiguous.
|
|
3173
|
+
|
|
3174
|
+
## Agent Rules
|
|
3175
|
+
|
|
3176
|
+
- Decide the asset plan yourself. Do not force the user to spell out sheet size, frame count, or bundle structure when the request already implies them.
|
|
3177
|
+
- Do not pack unrelated actions into one raw generated sheet just to satisfy a `4x4`, `5x5`, or custom engine atlas. A raw generated sheet should represent one action family, one continuous sequence, one canonical directional locomotion sheet, or one prop/asset pack.
|
|
3178
|
+
- For controllable heroes, main characters, and high-value player assets with multiple actions, generate separate per-action grid sheets first, QC each action, then deterministically assemble the engine-required atlas only after the grids pass visual review.
|
|
3179
|
+
- For controllable heroes, main characters, and high-value player body actions, default attack/shoot/cast body sheets to body-only. Do not include large slash arcs, muzzle flashes, projectiles, impact bursts, detached dust, long trails, or wide detached FX in the body sheet. Generate those as separate `fx`, `projectile`, or `impact` sheets and layer them in the game.
|
|
3180
|
+
- Only include wide attack FX in the same raw body sheet when the target runtime explicitly supports wider per-action cells plus per-action origin/anchor metadata. Otherwise, a wide FX bbox will force the body to shrink inside the fixed cell.
|
|
3181
|
+
- Write the art prompt yourself. Do not default to the prompt-builder script.
|
|
3182
|
+
- Use built-in `image-generation tool` for every raw image.
|
|
3183
|
+
- Do not create raw sprite art with Three.js, Canvas, SVG, HTML/CSS drawing, PIL shape drawing, procedural geometry, placeholder primitives, or code-rendered screenshots. Runtime code may display finished generated assets, and scripts may make layout guides or postprocess generated images, but requested sprite art must originate from built-in `image-generation tool`.
|
|
3184
|
+
- When the user provides or implies a visual reference, pass that reference''s sandbox `file_path` to `reference-guided image-generation tool` (the tool reads the file). Also `read_file` the local reference so you can see it; a path mentioned only inside the prompt is not a visual input.
|
|
3185
|
+
- Do not force pixel art when the asset is a map prop for `$generate2dmap` or when the user/project requests a different style. Match the map or reference style first.
|
|
3186
|
+
- Use the script only as a deterministic processor: magenta cleanup, frame splitting, component filtering, scaling, alignment, QC metadata, transparent sheet export, and GIF export.
|
|
3187
|
+
- Do not use scripts to generate the creative image prompt. If a legacy prompt-builder command exists, treat it as historical compatibility only, not the normal skill workflow.
|
|
3188
|
+
- Layout guides are allowed only as deterministic geometry references for image generation. They may show slot count, spacing, centering, and safe padding, but must never define the creative art direction.
|
|
3189
|
+
- Treat script flags as execution primitives chosen by the agent, not user-facing hardcoded workflow.
|
|
3190
|
+
- If a generated sheet touches cell edges, drifts in scale, or breaks a projectile / impact loop, either reprocess with better primitive settings or regenerate the raw sheet.
|
|
3191
|
+
- Do not use raw single-row sheets such as `1x4`, `1x6`, `1x8`, or `1xN` for characters, players, controllable heroes, creatures, NPCs, enemies, summons, animated props, or any asset where a body/subject must stay centered. Single-row raw generation is too likely to drift horizontally and crop inconsistently.
|
|
3192
|
+
- For animated body assets, use a multi-row grid by default: 4 frames -> `2x2`, 6 frames -> `2x3`, 8 frames -> `2x4`, 9 frames -> `3x3`, 12 frames -> `3x4` or `4x3`, 16 frames -> `4x4`.
|
|
3193
|
+
- If a game engine needs a final single-row strip or mixed atlas, first generate and QC the action as a multi-row grid, then assemble the delivery strip/atlas deterministically.
|
|
3194
|
+
- In every animated body grid prompt, require the subject body to stay centered in each cell, full body inside the central 60% to 70% safe area, consistent scale across cells, stable feet/bottom anchor line when applicable, and no limbs, weapons, hair, capes, dust, muzzle flashes, or detached FX crossing cell edges.
|
|
3195
|
+
- For hero attack body prompts, explicitly require body height and body scale to match the accepted idle/run sheets, stable feet/bottom anchor, weapon kept close enough to avoid widening the body bbox, and no detached slash arc or screen-space attack effect.
|
|
3196
|
+
- For map prop packs, classify props before choosing a grid. Square `2x2`, `3x3`, and `4x4` packs are only for compact props. Do not put platforms, floors, bridges, walls, ladders, gates, doors, long hazards, wide/tall props, collision-bearing objects, or tileset/strip pieces into square prop packs; use one-by-one, `1x3`/`1x4` strips, custom wide cells, or a tileset-like atlas instead.
|
|
3197
|
+
- Keep the solid `#FF00FF` background rule unless the user explicitly wants a different processing workflow.
|
|
3198
|
+
|
|
3199
|
+
## Workflow
|
|
3200
|
+
|
|
3201
|
+
### 1. Infer the asset plan
|
|
3202
|
+
|
|
3203
|
+
Pick the smallest useful output.
|
|
3204
|
+
|
|
3205
|
+
Examples:
|
|
3206
|
+
|
|
3207
|
+
- controllable hero with four directions -> `player` + `player_sheet`
|
|
3208
|
+
- side-view controllable hero with idle/run/shoot/jump -> `player` + `hero_action_bundle`
|
|
3209
|
+
- idle grid sheet, usually `2x2` for 4 frames
|
|
3210
|
+
- run grid sheet, usually `2x2` or `2x3` depending on needed frame count
|
|
3211
|
+
- shoot grid sheet with body/weapon only, usually `2x2`
|
|
3212
|
+
- jump grid sheet, usually `2x2`
|
|
3213
|
+
- projectile / muzzle flash as separate assets when needed
|
|
3214
|
+
- optional assembled engine atlas after per-action QC
|
|
3215
|
+
- side-view controllable hero with melee attack -> `player` + `hero_action_bundle`
|
|
3216
|
+
- attack body grid sheet, usually `2x2` or `2x3`, body-only
|
|
3217
|
+
- slash arc / weapon trail as a separate `fx` sheet when the attack needs a wide visual effect
|
|
3218
|
+
- impact spark as a separate `impact` sheet when hits need feedback
|
|
3219
|
+
- healer overworld NPC -> `npc` + `single_asset` or `unit_bundle`
|
|
3220
|
+
- large boss idle loop -> `creature` + `idle` + `3x3`
|
|
3221
|
+
- wizard throwing a magic orb -> `spell_bundle`
|
|
3222
|
+
- caster cast sheet
|
|
3223
|
+
- projectile loop
|
|
3224
|
+
- impact burst
|
|
3225
|
+
- monster line request -> `line_bundle`
|
|
3226
|
+
- plan 1-3 forms
|
|
3227
|
+
- per form, make the sheets the request actually needs
|
|
3228
|
+
|
|
3229
|
+
### 2. Write the prompt manually
|
|
3230
|
+
|
|
3231
|
+
Use [references/prompt-rules.md](references/prompt-rules.md).
|
|
3232
|
+
|
|
3233
|
+
Choose `art_style` before writing the prompt:
|
|
3234
|
+
|
|
3235
|
+
- Use `pixel_art` or `retro_pixel` for classic sprites, 16-bit RPG actors, and requests that explicitly ask for pixel art.
|
|
3236
|
+
- Use `clean_hd` for map props or assets intended to match clean hand-painted HD maps.
|
|
3237
|
+
- Use `pixel_inspired` only when the user wants a pixel-adjacent look without retro chunkiness.
|
|
3238
|
+
- Use `map_style` or `project-native` when an existing map, game, or reference should define the style.
|
|
3239
|
+
|
|
3240
|
+
If a reference is involved:
|
|
3241
|
+
|
|
3242
|
+
- Wire the reference into the call: pass its sandbox `file_path` to `reference-guided image-generation tool` — or the path list to `multi-reference image-generation tool` for 2+ refs (generated images already have a `file_path`; local files use their sandbox path). Also `read_file` local references so you can see them.
|
|
3243
|
+
- State the reference role explicitly: preserve identity/style, create an animation sheet for the same subject, create an evolution/variant, or derive a matching prop/FX.
|
|
3244
|
+
- Preserve the stable identity markers from the reference: silhouette, palette, face/eye features, costume marks, major accessories, and material language.
|
|
3245
|
+
- Let only the requested action or evolution change. Do not redesign the subject unless the user asks.
|
|
3246
|
+
- Still require exact sheet shape, solid magenta background, frame containment, and same scale across frames.
|
|
3247
|
+
|
|
3248
|
+
Keep the strict parts:
|
|
3249
|
+
|
|
3250
|
+
- solid `#FF00FF` background
|
|
3251
|
+
- exact sheet shape
|
|
3252
|
+
- same character or asset identity across frames
|
|
3253
|
+
- same bounding box and pixel scale across frames
|
|
3254
|
+
- explicit containment: nothing may cross cell edges
|
|
3255
|
+
|
|
3256
|
+
Mixed-action atlas guardrail:
|
|
3257
|
+
|
|
3258
|
+
- Do not ask `image-generation tool` to generate unrelated action rows in one raw sheet, such as `row 1 idle, row 2 run, row 3 shoot, row 4 jump`, for a controllable hero or main character.
|
|
3259
|
+
- Do not ask `image-generation tool` to generate raw single-row action strips such as `1x4 idle`, `1x4 run`, `1x4 shoot`, or `1x4 jump` for a controllable hero, character, creature, NPC, enemy, summon, or animated prop.
|
|
3260
|
+
- If an engine needs a combined `4x4`, `5x5`, custom atlas, or row-strip delivery format, generate the action grids separately, process and QC them separately, then assemble the delivery atlas deterministically.
|
|
3261
|
+
- Exceptions are canonical directional locomotion sheets, one continuous long action sequence, prop packs, tileset-like atlases, and low-stakes compact enemy combat sheets. These still need one coherent prompt and visual QC.
|
|
3262
|
+
- Keep projectile, muzzle flash, impact, dust trails, and detached FX in separate sheets unless they are intentionally part of the same action silhouette and remain tightly attached.
|
|
3263
|
+
- For controllable heroes and main characters, "tightly attached" is not enough when the effect makes the action bbox much wider or taller than idle/run. Split wide slash arcs, muzzle flashes, long weapon trails, dust clouds, and impact bursts into separate FX sheets by default.
|
|
3264
|
+
|
|
3265
|
+
Animated body grid guardrail:
|
|
3266
|
+
|
|
3267
|
+
- `1x4` and other raw single-row sheets are not valid defaults for animated bodies. This includes players, controllable heroes, creatures, NPCs, enemies, summons, animated props, and body-attached combat actions.
|
|
3268
|
+
- Use `2x2` for 4-frame body actions. This is the default for idle, short attack, shoot body, jump, hurt, hover, and compact side-view walk/run actions.
|
|
3269
|
+
- Use `2x3` for 6-frame body actions such as cast, attack, summon, run, charge, or transformation.
|
|
3270
|
+
- Use `2x4`, `3x3`, `3x4`, or `4x4` for longer body actions. Prefer a compact grid over a long row.
|
|
3271
|
+
- For 4-direction top-down walk, `4x4` can remain a raw generation shape because it is a canonical directional locomotion sheet, not four unrelated action rows.
|
|
3272
|
+
- If final runtime needs a row strip, assemble it after QC from the processed multi-row grid frames.
|
|
3273
|
+
- Keep the character centered in every cell. The body centerline should stay near the cell center, feet/bottom anchor should stay on the same y-position when visible, and the subject should occupy only the central safe area with generous magenta padding.
|
|
3274
|
+
- For attack, shoot, cast, charge, and other body actions, the body height should stay close to the accepted idle/run body height. If a fixed-cell runtime is being used, reject body-action output when the body appears more than about 10-15% smaller than idle/run, even if `edge_touch_frames` is empty.
|
|
3275
|
+
|
|
3276
|
+
Map prop pack guardrail:
|
|
3277
|
+
|
|
3278
|
+
- Use square `2x2`, `3x3`, and `4x4` raw prop packs only for compact props such as rocks, shrubs, barrels, crates, lamps, small signs, pots, debris, and small ornaments.
|
|
3279
|
+
- Do not use square prop packs for wide or collision-critical map objects: floors, platforms, ledges, terrain chunks, bridges, wall runs, ladders, roads, rails, pipes, long spike traps, gates, doors, buildings, large trees, checkpoints, exits, or build pads.
|
|
3280
|
+
- Use one-by-one generation for unique, large, important, tall, irregular, or collision-aligned props.
|
|
3281
|
+
- Use `1x3` or `1x4` strips for repeatable platform/floor assets, with left cap, middle repeat, right cap, and optional slope/corner/end variant.
|
|
3282
|
+
- Use custom wide cells for multiple similar wide objects. The grid must state explicit non-square cell dimensions and must not mix compact props with platform/terrain objects.
|
|
3283
|
+
- If a square prop pack fails due to edge touch or bad cropping, do not solve it by relaxing QC. Reclassify the object and regenerate with a more suitable sheet shape.
|
|
3284
|
+
|
|
3285
|
+
If a layout guide is useful, generate one before calling built-in `image-generation tool`:
|
|
3286
|
+
|
|
3287
|
+
```bash
|
|
3288
|
+
python3 skills/agentsam-game-sprite-generation/scripts/make_layout_guide.py \
|
|
3289
|
+
--rows <rows> \
|
|
3290
|
+
--cols <cols> \
|
|
3291
|
+
--cell-width 384 \
|
|
3292
|
+
--cell-height 384 \
|
|
3293
|
+
--output <run-dir>/references/<rows>x<cols>-layout-guide.png
|
|
3294
|
+
```
|
|
3295
|
+
|
|
3296
|
+
Then pass the guide PNG''s sandbox path to `reference-guided image-generation tool` — a guide that is only "visible in conversation" never reaches the image model. Also `read_file` it so you can see the geometry. Tell `reference-guided image-generation tool` to use it only for invisible slot count, spacing, centering, and safe padding. The output must not reproduce guide boxes, safe-area rectangles, center marks, labels, borders, or guide background.
|
|
3297
|
+
|
|
3298
|
+
Use layout guides deliberately:
|
|
3299
|
+
|
|
3300
|
+
- recommended for `prop_pack_3x3`, `prop_pack_4x4`, tileset-like atlases, fixed multi-row animation grids, and non-directional 16-frame action sequences such as casting, summoning, charging, death, or transformation
|
|
3301
|
+
- optional for `3x3` large idle and high-value showcase loops when previous generations drift in scale or spacing
|
|
3302
|
+
- not the default for `4x4` four-direction walk sheets, because the guide can make directional poses too conservative; use it only after an unguided run fails layout or edge safety
|
|
3303
|
+
|
|
3304
|
+
### 3. Generate the raw image
|
|
3305
|
+
|
|
3306
|
+
Use built-in `image-generation tool`.
|
|
3307
|
+
|
|
3308
|
+
Do not use Three.js, Canvas, SVG, HTML/CSS, PIL drawing, or other code-generated art as the raw sprite source. These are acceptable only for runtime display, debug overlays, deterministic layout guides, or postprocessing already-generated images.
|
|
3309
|
+
|
|
3310
|
+
After generation:
|
|
3311
|
+
|
|
3312
|
+
- keep the returned sandbox `file_path`
|
|
3313
|
+
- copy that file into the working output folder as `raw-sheet.png` (or similar)
|
|
3314
|
+
- keep the original generated image in place
|
|
3315
|
+
- to run a further Imagine edit on a **postprocessed** PNG, pass that PNG''s sandbox path to `reference-guided image-generation tool`
|
|
3316
|
+
|
|
3317
|
+
### 4. Postprocess locally
|
|
3318
|
+
|
|
3319
|
+
Run the processor on the raw image:
|
|
3320
|
+
|
|
3321
|
+
```bash
|
|
3322
|
+
# --target is ONLY: player | npc | creature | asset
|
|
3323
|
+
# Map character/spell/projectile/prop/summon/fx → --target asset (or player/npc/creature).
|
|
3324
|
+
# --mode must be a known grid mode (idle/walk/attack/shoot/jump/…) OR pass both --rows and --cols.
|
|
3325
|
+
python3 skills/agentsam-game-sprite-generation/scripts/generate2dsprite.py process \
|
|
3326
|
+
--input <run-dir>/raw-sheet.png \
|
|
3327
|
+
--target <player|npc|creature|asset> \
|
|
3328
|
+
--mode <idle|walk|run|attack|shoot|jump|cast|hurt|projectile|impact|fx|player_sheet|…> \
|
|
3329
|
+
--output-dir <run-dir> \
|
|
3330
|
+
--shared-scale \
|
|
3331
|
+
--align feet
|
|
3332
|
+
# Custom grid example:
|
|
3333
|
+
# --mode sheet --rows 2 --cols 3 --label-prefix frame
|
|
3334
|
+
```
|
|
3335
|
+
|
|
3336
|
+
List valid targets/modes: `python3 …/generate2dsprite.py list-options`
|
|
3337
|
+
|
|
3338
|
+
The processor is intentionally low-level. The agent chooses:
|
|
3339
|
+
|
|
3340
|
+
- `rows` / `cols`
|
|
3341
|
+
- `fit_scale`
|
|
3342
|
+
- `align`
|
|
3343
|
+
- `shared_scale`
|
|
3344
|
+
- `component_mode`
|
|
3345
|
+
- `component_padding`
|
|
3346
|
+
- `edge_touch` rejection strategy
|
|
3347
|
+
|
|
3348
|
+
Use the processor to gather QC metadata, not to make aesthetic decisions for you.
|
|
3349
|
+
|
|
3350
|
+
For hero action bundles, process each action grid as its own sheet before any final atlas assembly. Use `component_mode=largest` for body-only hero grids. Use `component_mode=all` only for projectile, impact, aura, slash FX, or intentionally detached FX sheets, not for fixed-cell hero body attacks that need stable body scale.
|
|
3351
|
+
|
|
3352
|
+
### 5. QC the result
|
|
3353
|
+
|
|
3354
|
+
Check:
|
|
3355
|
+
|
|
3356
|
+
- did any frame touch the cell edge
|
|
3357
|
+
- did any frame resize differently than intended
|
|
3358
|
+
- did detached effects become noise
|
|
3359
|
+
- does the sheet still read as one coherent animation
|
|
3360
|
+
- for hero/player body actions, does the body height match the accepted idle/run scale within roughly 10-15%
|
|
3361
|
+
- for fixed-cell runtimes, did a wide weapon trail or FX arc shrink the body inside the cell
|
|
3362
|
+
|
|
3363
|
+
If not, rerun with different processor settings or regenerate the raw sheet.
|
|
3364
|
+
|
|
3365
|
+
### 6. Return the right bundle
|
|
3366
|
+
|
|
3367
|
+
For a single sheet, expect:
|
|
3368
|
+
|
|
3369
|
+
- `raw-sheet.png`
|
|
3370
|
+
- `raw-sheet-clean.png`
|
|
3371
|
+
- `sheet-transparent.png`
|
|
3372
|
+
- frame PNGs
|
|
3373
|
+
- `animation.gif`
|
|
3374
|
+
- `prompt-used.txt`
|
|
3375
|
+
- `pipeline-meta.json`
|
|
3376
|
+
|
|
3377
|
+
For `player_sheet`, expect:
|
|
3378
|
+
|
|
3379
|
+
- transparent 4x4 sheet
|
|
3380
|
+
- 16 frame PNGs
|
|
3381
|
+
- direction strips
|
|
3382
|
+
- 4 direction GIFs
|
|
3383
|
+
|
|
3384
|
+
For `spell_bundle` or `unit_bundle`, create one folder per asset in the bundle.
|
|
3385
|
+
|
|
3386
|
+
For `hero_action_bundle`, expect:
|
|
3387
|
+
|
|
3388
|
+
- one raw and processed sheet per action
|
|
3389
|
+
- per-action frame PNGs and GIFs for visual QC
|
|
3390
|
+
- separate projectile / muzzle / slash / impact assets when the hero shoots, casts, or uses wide melee effects
|
|
3391
|
+
- optional assembled `engine-atlas-transparent.png` only after per-action QC passes
|
|
3392
|
+
|
|
3393
|
+
## Defaults
|
|
3394
|
+
|
|
3395
|
+
- `idle`
|
|
3396
|
+
- small or medium actor -> `2x2`
|
|
3397
|
+
- large creature or boss -> `3x3`
|
|
3398
|
+
- `cast` -> prefer `2x3`
|
|
3399
|
+
- `projectile` -> prefer `2x2` for short animated loops; use row strips only when the engine specifically requires a strip, and assemble that strip after QC when practical
|
|
3400
|
+
- `impact` / `explode` -> prefer `2x2`
|
|
3401
|
+
- `walk`
|
|
3402
|
+
- topdown actor -> `4x4` for four-direction walk
|
|
3403
|
+
- side-view asset -> `2x2`
|
|
3404
|
+
- controllable hero or main player with multiple actions -> `hero_action_bundle`
|
|
3405
|
+
- generate one action per raw multi-row grid sheet, not as a raw `1x4` strip
|
|
3406
|
+
- attack/shoot/cast body sheets are body-only by default; wide slash arcs, muzzle flashes, projectiles, trails, dust, and hit impacts are separate FX/projectile/impact sheets
|
|
3407
|
+
- default 4-frame action grid is `2x2`
|
|
3408
|
+
- use `2x3` for 6-frame actions and `2x4`, `3x3`, `3x4`, or `4x4` for longer actions
|
|
3409
|
+
- do not generate a mixed-action raw `4x4`, `5x5`, or custom atlas
|
|
3410
|
+
- assemble the final atlas only as a deterministic delivery step if the game requires it
|
|
3411
|
+
- `4x4`, `5x5`, and custom grids
|
|
3412
|
+
- use as raw generation only for one coherent long action sequence, canonical directional locomotion, prop packs, or tileset-like atlases
|
|
3413
|
+
- use as delivery atlases for mixed actions only after separate action sheets pass QC
|
|
3414
|
+
- use `shared_scale` by default for any multi-frame asset where frame-to-frame consistency matters
|
|
3415
|
+
- use `largest` component mode for hero/player body grids; use `all` for separate FX/projectile/impact sheets
|
|
3416
|
+
|
|
3417
|
+
## Resources
|
|
3418
|
+
|
|
3419
|
+
- `references/modes.md`: asset, action, bundle, and sheet selection
|
|
3420
|
+
- `references/prompt-rules.md`: manual prompt patterns and containment rules
|
|
3421
|
+
- `scripts/generate2dsprite.py`: postprocess primitive for cleanup, extraction, alignment, QC, and GIF export
|
|
3422
|
+
','skills/agentsam-game-sprite-generation/SKILL.md','b98d0930120cd355acc4c52bf41122e9e1efdcb187be93626237aaebc1a730c4','read_only','{"origin":"sdk_source","source_id":"agentsam-game-sprite-generation","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
3423
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_a7adda42f79612451471e69d','platform','AgentSam · multiplayer p2p','/agentsam-game-multiplayer-p2p','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'WebRTC P2P mesh, signaled at /api/rtc','---
|
|
3424
|
+
name: agentsam-game-multiplayer-p2p
|
|
3425
|
+
description: >
|
|
3426
|
+
Peer-to-peer realtime multiplayer over WebRTC data channels: every user of
|
|
3427
|
+
the deployed app connects directly to every other user (full mesh), the
|
|
3428
|
+
server only brokers the handshake at /api/rtc. Lowest possible latency, zero
|
|
3429
|
+
per-message server cost. Use for 2-8 player co-op/casual realtime: shared
|
|
3430
|
+
cursors, drawing, party games, casual action. Triggers: p2p, peer to peer,
|
|
3431
|
+
webrtc, low latency multiplayer, direct connection.
|
|
3432
|
+
metadata:
|
|
3433
|
+
short-description: "WebRTC P2P mesh, signaled at /api/rtc"
|
|
3434
|
+
user-invocable: false
|
|
3435
|
+
---
|
|
3436
|
+
|
|
3437
|
+
# Multiplayer (WebRTC peer-to-peer)
|
|
3438
|
+
|
|
3439
|
+
Players join a game-scoped and session-scoped room, opening a
|
|
3440
|
+
native WebRTC data channel directly to every other visitor — game traffic
|
|
3441
|
+
itself never touches a server. A tiny relay at `/api/rtc` handles only the
|
|
3442
|
+
routing of the connection handshake (SDP/ICE) while peers connect. What you
|
|
3443
|
+
use from the kit is client-side only; the relay is yours.
|
|
3444
|
+
|
|
3445
|
+
Latency is browser↔browser (often 5–40ms) with zero per-tick server cost.
|
|
3446
|
+
|
|
3447
|
+
| Piece | Path |
|
|
3448
|
+
|---|---|
|
|
3449
|
+
| Mesh primitive (start here) | `P2PRoom` from `@/lib/multiplayer` |
|
|
3450
|
+
| React room binding (optional, you create) | `src/lib/multiplayer/use-p2p-room.ts` |
|
|
3451
|
+
| Signaling relay (you create) | `src/lib/multiplayer/signaling.server.ts` |
|
|
3452
|
+
| HTTP mount (you create) | `src/routes/api/rtc.ts` |
|
|
3453
|
+
|
|
3454
|
+
**Trust model — read before choosing P2P.** There is no server authority:
|
|
3455
|
+
every peer runs its own copy of the rules and can lie (position, score,
|
|
3456
|
+
anything). Peers also learn each other''s IP addresses during ICE. P2P is for
|
|
3457
|
+
**co-op and casual play among people who choose to play together** — never for
|
|
3458
|
+
competitive ranking, cheat-sensitive, or anonymous-stranger matchmaking.
|
|
3459
|
+
Competitive or cheat-sensitive play is not supported in this template: push
|
|
3460
|
+
back in product terms rather than shipping it on P2P.
|
|
3461
|
+
|
|
3462
|
+
Practical limits: a full mesh is O(N²) connections — cap rooms at ~8 peers.
|
|
3463
|
+
Roughly 10–20% of peer pairs sit behind strict NATs and cannot connect; the
|
|
3464
|
+
kit surfaces this per peer as `connectionState: "failed"` — show it in the
|
|
3465
|
+
UI rather than hanging.
|
|
3466
|
+
|
|
3467
|
+
## Setup (once)
|
|
3468
|
+
|
|
3469
|
+
Create the two server files — nothing works without them:
|
|
3470
|
+
|
|
3471
|
+
1. `src/lib/multiplayer/signaling.server.ts` — the DB-backed signaling relay
|
|
3472
|
+
(Neon deployed, PGLite in preview).
|
|
3473
|
+
2. `src/routes/api/rtc.ts` — mounts it at `/api/rtc` (GET poll, POST
|
|
3474
|
+
signal/leave).
|
|
3475
|
+
|
|
3476
|
+
**Copy both from `references/signaling-relay.md`**, which also carries the
|
|
3477
|
+
schema note: the relay creates its own two tables on first use
|
|
3478
|
+
(`CREATE TABLE IF NOT EXISTS`), so **nothing goes in `migrations/`** unless you
|
|
3479
|
+
deliberately want to own the schema.
|
|
3480
|
+
|
|
3481
|
+
## Using the primitive
|
|
3482
|
+
|
|
3483
|
+
`P2PRoom` is framework-free, and a "room" is just a rendezvous key — a lobby
|
|
3484
|
+
code, a 1:1 call id, a shared-document id, any string (≤64 chars). Any
|
|
3485
|
+
architecture sits on top of the same three calls:
|
|
3486
|
+
|
|
3487
|
+
```ts
|
|
3488
|
+
import { P2PRoom } from "@/lib/multiplayer";
|
|
3489
|
+
|
|
3490
|
+
const p2p = new P2PRoom({
|
|
3491
|
+
room: "doc-42",
|
|
3492
|
+
selfId: myId,
|
|
3493
|
+
name: "ani",
|
|
3494
|
+
onPeersChanged: (peers) => render(peers),
|
|
3495
|
+
onMessage: (from, data, channel) => apply(from, data, channel),
|
|
3496
|
+
});
|
|
3497
|
+
await p2p.join();
|
|
3498
|
+
p2p.broadcast(state); // unreliable "state" channel — game-rate, stale drops
|
|
3499
|
+
p2p.send(event, to); // reliable channel — exactly-once events (to optional)
|
|
3500
|
+
p2p.close();
|
|
3501
|
+
```
|
|
3502
|
+
|
|
3503
|
+
For the common "everyone on this app plays together" shape in React, copy the
|
|
3504
|
+
`useP2PRoom` hook (plus a worked component: game-rate broadcast loop at ~20
|
|
3505
|
+
sends/s, reliable one-shot events) from `references/react-binding.md`.
|
|
3506
|
+
|
|
3507
|
+
Patterns:
|
|
3508
|
+
|
|
3509
|
+
1. `broadcast()` = unreliable/unordered, for continuously-refreshed state
|
|
3510
|
+
(positions, cursors). `send()` = reliable/ordered, for events that must
|
|
3511
|
+
arrive exactly once. Never stream game-rate state on `send()`; interpolate
|
|
3512
|
+
between broadcasts for smooth motion.
|
|
3513
|
+
2. Late joiners know nothing: on a new peer appearing in `p2p.peers`, an
|
|
3514
|
+
existing peer should `send()` it the current shared state. Exactly one
|
|
3515
|
+
peer must answer: compare ids among the peers that were ALREADY in the
|
|
3516
|
+
room (your `selfId` plus `p2p.peers` minus the newcomer) and answer only
|
|
3517
|
+
if your `selfId` is the smallest — so two simultaneous joiners neither
|
|
3518
|
+
double-answer nor go unanswered.
|
|
3519
|
+
3. Room ids: always scope to the game and intended lobby; pass
|
|
3520
|
+
`room: code` for private lobbies (generate a short code, put it in the URL).
|
|
3521
|
+
4. Peers disappear without goodbye (tab close, sleep): treat a peer missing
|
|
3522
|
+
from `p2p.peers` as gone and drop its entities.
|
|
3523
|
+
5. A React binding that captures `room`/`name` on first render (the one in
|
|
3524
|
+
`references/react-binding.md` does) needs a remount to change them — key the
|
|
3525
|
+
component on the room code.
|
|
3526
|
+
|
|
3527
|
+
## Diagnostics
|
|
3528
|
+
|
|
3529
|
+
Each entry in `p2p.peers` carries `connectionState`, `rttMs` (data-channel
|
|
3530
|
+
ping), and `candidateType` (`host`/`srflx` = direct). To override STUN, add
|
|
3531
|
+
`VITE_STUN_URLS` (comma-separated) to `.agentsam/app-env.json` and **restart the dev
|
|
3532
|
+
server** (Vite reads env at startup; HMR will not pick it up) — never write a
|
|
3533
|
+
`.env` in this sandbox.
|
|
3534
|
+
','skills/agentsam-game-multiplayer-p2p/SKILL.md','9540d35dcceadc961d229c89a29e5e71d0a544d1a569001e6861122d1ee223b0','read_only','{"origin":"sdk_source","source_id":"agentsam-game-multiplayer-p2p","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
3535
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_1ce6d612d44c7271068a34a4','platform','AgentSam · sharing','/agentsam-game-sharing','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Brand assets: og.jpg card, social banner, SVG favicon, PWA icons — always a non-blocking `task` subagent','---
|
|
3536
|
+
name: agentsam-game-sharing
|
|
3537
|
+
description: >
|
|
3538
|
+
Create portable game identity, sharing previews, favicons and optional
|
|
3539
|
+
installable-game icons using standard Open Graph metadata. No dependency on
|
|
3540
|
+
a particular social network, deployment domain, game engine or image provider.
|
|
3541
|
+
metadata:
|
|
3542
|
+
short-description: "Game identity, Open Graph previews, favicons and installable icons"
|
|
3543
|
+
user-invocable: false
|
|
3544
|
+
---
|
|
3545
|
+
|
|
3546
|
+
# Game Sharing & Identity
|
|
3547
|
+
|
|
3548
|
+
Use this cookbook when a game needs a title, share preview, browser icon,
|
|
3549
|
+
installable icon set, or page metadata. Treat public images as derivatives of
|
|
3550
|
+
approved game art; never replace original masters with marketing crops.
|
|
3551
|
+
|
|
3552
|
+
## Outputs
|
|
3553
|
+
|
|
3554
|
+
- `public/og.jpg`: usually 1200×630, readable game title and recognizably real art.
|
|
3555
|
+
- `public/favicon.svg`: simplified scalable icon legible at 16px and 32px.
|
|
3556
|
+
- `public/social-banner.jpg`: optional ratio-specific export only when required.
|
|
3557
|
+
- Optional installable icons and web manifest when a PWA is actually implemented.
|
|
3558
|
+
- Rendered HTML: `og:title`, `og:description`, `og:image`, `og:url`, `og:type=website`, and an appropriate page title.
|
|
3559
|
+
|
|
3560
|
+
## Procedure
|
|
3561
|
+
|
|
3562
|
+
1. Inspect the game''s title, approved art, scene and existing design tokens.
|
|
3563
|
+
2. Compose and inspect a real preview card; avoid stock placeholders.
|
|
3564
|
+
3. Verify cropping, contrast, visual quality and small-thumbnail readability.
|
|
3565
|
+
4. Keep source and derivative assets separate. Stage generated outputs atomically.
|
|
3566
|
+
5. Supply absolute public image URLs and validate deployed HTML and image responses.
|
|
3567
|
+
6. Rebuild/redeploy assets when the identity or design changes.
|
|
3568
|
+
|
|
3569
|
+
References: `references/brand-pass.md`, `references/custom-card.md`,
|
|
3570
|
+
`references/open-graph-contract.md`, `references/social-banner.md`,
|
|
3571
|
+
`references/favicon-and-icons.md`, and `references/placeholder-card.md`.
|
|
3572
|
+
|
|
3573
|
+
If the host provides the optional checker, run `node scripts/brand-check.mjs --game`.
|
|
3574
|
+
Otherwise use the host''s equivalent. Never assume an injector, image generator,
|
|
3575
|
+
background task runner, or special social-card metadata exists.
|
|
3576
|
+
','skills/agentsam-game-sharing/SKILL.md','cdd1836448f728d0d11bb22403c03bfc20b07feda4b4d978ce02abcbced07386','read_only','{"origin":"sdk_source","source_id":"agentsam-game-sharing","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
3577
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_7436dc6d638d119d5db2b1a8','platform','AgentSam · threejs','/agentsam-game-threejs','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Three.js + TSL full API (official llms-full reference)','---
|
|
3578
|
+
name: agentsam-game-threejs
|
|
3579
|
+
description: >
|
|
3580
|
+
Official Three.js API and TSL (Three.js Shading Language) reference for LLM
|
|
3581
|
+
code generation. Load when writing or debugging three.js / WebGL / WebGPU /
|
|
3582
|
+
custom materials / shaders / GLTF / advanced three APIs beyond basic game
|
|
3583
|
+
loop/controls. Prefer building-games for game correctness (loop, WASD,
|
|
3584
|
+
camera, orientation); use this skill for full API/TSL depth. Triggers on
|
|
3585
|
+
"three.js", "threejs", "WebGPU", "TSL", "NodeMaterial", "shader", "GLTF",
|
|
3586
|
+
"MeshStandard", "OrbitControls", "WebGLRenderer".
|
|
3587
|
+
metadata:
|
|
3588
|
+
short-description: "Three.js + TSL full API (official llms-full reference)"
|
|
3589
|
+
user-invocable: false
|
|
3590
|
+
---
|
|
3591
|
+
|
|
3592
|
+
# Three.js (official LLM reference)
|
|
3593
|
+
|
|
3594
|
+
This skill vendors the **official** Three.js LLM documentation pack so the agent
|
|
3595
|
+
can generate correct modern three.js without inventing outdated CDN/r128 APIs.
|
|
3596
|
+
|
|
3597
|
+
## Stack adaptation (this app builder)
|
|
3598
|
+
|
|
3599
|
+
You are in a **TanStack Start + React** workspace, not a bare HTML page:
|
|
3600
|
+
|
|
3601
|
+
| Official doc pattern | Do this here instead |
|
|
3602
|
+
| --- | --- |
|
|
3603
|
+
| `<script type="importmap">` + CDN three | **`npm install three`** (+ `@types/three` if needed); import from `"three"` / `"three/addons/…"` |
|
|
3604
|
+
| Raw HTML canvas bootstrap | Prefer **@react-three/fiber + drei** for games/UI integration (`agentsam-game-building` + `3d-libs.md`) |
|
|
3605
|
+
| Standalone `WebGLRenderer` demo | Fine for a self-contained canvas module; still install three via npm so Vercel build has it |
|
|
3606
|
+
| Always “latest” CDN version | Pin via **package.json** so dev and deploy match |
|
|
3607
|
+
|
|
3608
|
+
**three is not preinstalled** — add it with npm and leave it in `package.json`.
|
|
3609
|
+
|
|
3610
|
+
## When to load what
|
|
3611
|
+
|
|
3612
|
+
1. **Game / interactive 3D product** → start with **`agentsam-game-building`** (loop, controls, orientation, camera, first-run, steer sign).
|
|
3613
|
+
2. **R3F / drei / rapier wiring** → `building-games/references/3d-libs.md`.
|
|
3614
|
+
3. **Deep three API, TSL, WebGPU, materials, loaders, postprocessing** → load
|
|
3615
|
+
**`references/llms-full.txt`** (this skill’s full official dump).
|
|
3616
|
+
|
|
3617
|
+
Do **not** load `llms-full.txt` for simple 2D canvas games (Pong, tetris, etc.).
|
|
3618
|
+
|
|
3619
|
+
## Full reference
|
|
3620
|
+
|
|
3621
|
+
**Read on demand:**
|
|
3622
|
+
|
|
3623
|
+
```text
|
|
3624
|
+
references/llms-full.txt
|
|
3625
|
+
```
|
|
3626
|
+
|
|
3627
|
+
Source: https://threejs.org/docs/llms-full.txt (pinned copy for offline sandbox use).
|
|
3628
|
+
|
|
3629
|
+
Contents include: modern imports, WebGLRenderer vs WebGPURenderer, TSL complete
|
|
3630
|
+
reference, NodeMaterial, loaders, post-processing, compute, and API tables.
|
|
3631
|
+
|
|
3632
|
+
## Quick defaults for this product
|
|
3633
|
+
|
|
3634
|
+
- Prefer **WebGLRenderer** (or R3F default) unless the user needs TSL/WebGPU compute.
|
|
3635
|
+
- Cap pixel ratio (`renderer.setPixelRatio(Math.min(devicePixelRatio, 2))` or R3F `dpr={[1,2]}`).
|
|
3636
|
+
- Dispose geometries/materials/textures on teardown (three does not GC GPU resources).
|
|
3637
|
+
- For games: still obey **`agentsam-game-building`** control and orientation self-tests.
|
|
3638
|
+
|
|
3639
|
+
## Finish check
|
|
3640
|
+
|
|
3641
|
+
- three (and R3F stack if used) is in `package.json` and imports resolve.
|
|
3642
|
+
- No r128 / cdnjs script-tag patterns.
|
|
3643
|
+
- If TSL/WebGPU used: materials and imports match `llms-full` (node materials, `await renderer.init()`).
|
|
3644
|
+
','skills/agentsam-game-threejs/SKILL.md','9569c36bc624333015aead57a25ea6714c6c42c58d2e192fd72b6df7730c672e','read_only','{"origin":"sdk_source","source_id":"agentsam-game-threejs","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|
|
3645
|
+
INSERT INTO agentsam_skill_next (id,scope_type,name,slash_trigger,npm_package_name,npm_version,is_published,is_active,description,content_markdown,file_path,content_checksum,access_mode,metadata_json) VALUES ('sdk_skill_6ca1f7155a874f8a50357e73','platform','AgentSam · video to sprites','/agentsam-game-video-to-sprites','@inneranimalmedia/agentsam-sdk','2.6.18',0,0,'Video-to-sprite conversion, animation-frame extraction, chroma cleanup and atlas verification','---
|
|
3646
|
+
name: agentsam-game-video-to-sprites
|
|
3647
|
+
description: >
|
|
3648
|
+
AgentSam Build only. Turn a 2D character still into denser animation sprites via
|
|
3649
|
+
image-generation tool base → image-to-video generation tool (6s/10s run-in-place) → ffmpeg
|
|
3650
|
+
frames → magenta chroma-key → dense sampled strips/grids/GIFs. Use when the
|
|
3651
|
+
user wants video-to-sprite, smoother run/walk cycles, or denser intermediate
|
|
3652
|
+
poses. Prefer generate2dsprite for crisp production pixel sheets. Triggers on
|
|
3653
|
+
"video to sprite", "image-to-video generation tool sprite", "dense walk cycle", "smooth run
|
|
3654
|
+
animation from video".
|
|
3655
|
+
metadata:
|
|
3656
|
+
short-description: "Video→dense sprites (image-to-video generation tool + chroma postprocess)"
|
|
3657
|
+
user-invocable: false
|
|
3658
|
+
---
|
|
3659
|
+
|
|
3660
|
+
# Video2dsprite (AgentSam Build only)
|
|
3661
|
+
|
|
3662
|
+
Convert a **base 2D character image** into **dense animation sprites** using AgentSam Build''s native video tools.
|
|
3663
|
+
|
|
3664
|
+
## App-builder / AgentSam environment
|
|
3665
|
+
|
|
3666
|
+
| Item | Value |
|
|
3667
|
+
| --- | --- |
|
|
3668
|
+
| Skill dir | `skills/agentsam-game-video-to-sprites/` |
|
|
3669
|
+
| Scripts | `python3 skills/agentsam-game-video-to-sprites/scripts/video2dsprite.py …` |
|
|
3670
|
+
| Video tools | `image-to-video generation tool` — animate one base `file_path` (verify present) |
|
|
3671
|
+
| Inspect | `read_file` on stills/frames; report paths for videos |
|
|
3672
|
+
| Deps | ffmpeg + Pillow + numpy (preinstalled in app-builder image) |
|
|
3673
|
+
| Output home | `assets/sprites/video2dsprite/<name>/` under `/workspace` |
|
|
3674
|
+
| Default | Prefer **`agentsam-game-sprite-generation`** for production heroes; this is the denser-motion path |
|
|
3675
|
+
|
|
3676
|
+
```text
|
|
3677
|
+
base still → image-to-video generation tool (in-place motion) → extract frames → chroma key → sample/normalize → strip / grid / GIF
|
|
3678
|
+
```
|
|
3679
|
+
|
|
3680
|
+
## Platform gate (read first)
|
|
3681
|
+
|
|
3682
|
+
| Runtime | Supported? |
|
|
3683
|
+
| --- | --- |
|
|
3684
|
+
| **AgentSam Build** (image-generation provider) | **Yes** — requires an image generator + an image→video tool |
|
|
3685
|
+
| Codex / Claude / other agents | **No** — they lack AgentSam video tools. Tell the user this skill is AgentSam Build only and offer `$generate2dsprite` instead |
|
|
3686
|
+
|
|
3687
|
+
**Gate on the capability, not the exact tool name.** Image generation appears
|
|
3688
|
+
as `image-generation tool` / `reference-guided image-generation tool`; video as `image-to-video generation tool`
|
|
3689
|
+
or (legacy) `generate_video`. Use whichever pair your tool list has. Stop and
|
|
3690
|
+
explain only when you have no image→video tool at all. Do not fake motion with
|
|
3691
|
+
code-drawn frames.
|
|
3692
|
+
|
|
3693
|
+
This skill is an **optional denser-motion path**. It does **not** replace `$generate2dsprite`:
|
|
3694
|
+
|
|
3695
|
+
| Use `$generate2dsprite` when… | Use `$video2dsprite` when… |
|
|
3696
|
+
| --- | --- |
|
|
3697
|
+
| Crisp pixel sheets, fixed grids, identity-critical heroes | User wants denser intermediate poses / smoother feeling loops |
|
|
3698
|
+
| Attack/cast body sheets, prop packs, engine atlases | Experimenting with video-sourced run/walk/idle motion |
|
|
3699
|
+
| Production default for most game sprites | User explicitly asks for video → frames → sprites |
|
|
3700
|
+
|
|
3701
|
+
Video softens pixels, drifts identity, and leaves chroma fringes. Always QC; for production heroes, prefer `$generate2dsprite` unless the user wants the video look.
|
|
3702
|
+
|
|
3703
|
+
## Parameters
|
|
3704
|
+
|
|
3705
|
+
Infer from the user request:
|
|
3706
|
+
|
|
3707
|
+
- `subject`: character / creature description, or path to existing still
|
|
3708
|
+
- `action`: `run` | `walk` | `idle` | `attack` | custom motion phrase
|
|
3709
|
+
- `view`: usually `side` (side-scroller). `topdown` is harder — warn and keep camera locked
|
|
3710
|
+
- `duration`: `6` (default) or `10` seconds
|
|
3711
|
+
- `frame_counts`: which denser sets to export, default `8,16,24,48`
|
|
3712
|
+
- `cell_size`: output sprite cell, default `128`
|
|
3713
|
+
- `anchor`: `feet` (default for side locomotion) | `center`
|
|
3714
|
+
- `bg`: solid `#FF00FF` (required for chroma)
|
|
3715
|
+
- `name`: output slug
|
|
3716
|
+
- `out_dir`: working folder (default `./sprites/video2dsprite/<name>/` or project-relative)
|
|
3717
|
+
|
|
3718
|
+
## Agent rules
|
|
3719
|
+
|
|
3720
|
+
1. **requires the configured AgentSam provider.** Refuse on non-AgentSam runtimes with a short explanation + `$generate2dsprite` alternative.
|
|
3721
|
+
2. **Still → video, never text-to-video alone.** Stage frame 1 as a clean still with `image-generation tool` (from a prompt, or from a reference `file_path`). Then call `image-to-video generation tool` with that still''s `file_path`.
|
|
3722
|
+
3. **In-place motion.** Prompt for run/walk **in place** facing a fixed direction. No camera pan, no background scroll, no scene change. Subject stays roughly centered.
|
|
3723
|
+
4. **Solid magenta background** on the base and preserved in the video prompt (`#FF00FF` / pure magenta). Required for flood-fill chroma.
|
|
3724
|
+
5. **Do not invent art with PIL/Canvas.** Base art comes from `image-generation tool` or a user/local still. Scripts only postprocess.
|
|
3725
|
+
6. **Do not put experimental outputs into the game** unless the user asks to integrate.
|
|
3726
|
+
7. **Prefer one locomotion cycle for game use.** Dense sample across a full 6s multi-cycle clip is fine for previews; for engine sheets, optionally re-sample a single cycle (12–16 frames) after visual QC.
|
|
3727
|
+
8. **Report absolute paths** of video, cleaned frames, strips, and preview GIFs when done.
|
|
3728
|
+
|
|
3729
|
+
## Workflow
|
|
3730
|
+
|
|
3731
|
+
### 1. Plan
|
|
3732
|
+
|
|
3733
|
+
Pick the smallest useful run:
|
|
3734
|
+
|
|
3735
|
+
- Side-view run/walk loop → this skill
|
|
3736
|
+
- Multi-action hero kit → still use `$generate2dsprite` per action; only use video for locomotion if requested
|
|
3737
|
+
- FX / projectile / prop packs → `$generate2dsprite`, not video
|
|
3738
|
+
|
|
3739
|
+
Create:
|
|
3740
|
+
|
|
3741
|
+
```text
|
|
3742
|
+
<out_dir>/
|
|
3743
|
+
base/
|
|
3744
|
+
video/
|
|
3745
|
+
frames-raw/
|
|
3746
|
+
frames-clean/
|
|
3747
|
+
sprite/ # default 8-frame set + denser x16/x24/x48
|
|
3748
|
+
prompt-used.txt
|
|
3749
|
+
pipeline-meta.json
|
|
3750
|
+
README.txt
|
|
3751
|
+
```
|
|
3752
|
+
|
|
3753
|
+
### 2. Build the base still
|
|
3754
|
+
|
|
3755
|
+
Options:
|
|
3756
|
+
|
|
3757
|
+
- **A. Existing sprite:** read the image, composite onto solid `#FF00FF` if needed, then pass that sandbox path to `reference-guided image-generation tool` / `image-to-video generation tool`
|
|
3758
|
+
- **B. New character:** `image-generation tool` with solid magenta background, full body, side view, centered
|
|
3759
|
+
- **C. Match reference:** `reference-guided image-generation tool` with the reference `file_path`, moving it onto magenta and preserving identity
|
|
3760
|
+
|
|
3761
|
+
Base requirements:
|
|
3762
|
+
|
|
3763
|
+
- Full body visible, generous magenta margin
|
|
3764
|
+
- Side view for run/walk (profile or 3/4 side), feet near bottom third
|
|
3765
|
+
- Same art style as the rest of the project when a reference exists
|
|
3766
|
+
- No text, UI, watermark, or second character
|
|
3767
|
+
|
|
3768
|
+
Copy the returned `file_path` and save as
|
|
3769
|
+
`<out_dir>/base/<name>-base.png`; keep the base `file_path` for the video call.
|
|
3770
|
+
|
|
3771
|
+
Write the exact image prompt into `prompt-used.txt`.
|
|
3772
|
+
|
|
3773
|
+
### 3. Animate with `image-to-video generation tool`
|
|
3774
|
+
|
|
3775
|
+
Call AgentSam `image-to-video generation tool`:
|
|
3776
|
+
|
|
3777
|
+
- source path: `<base still file_path>` (sandbox path returned by T2I / I2I)
|
|
3778
|
+
- `duration`: `6` (default) or `10`
|
|
3779
|
+
- `resolution_name`: `480p` unless user asks `720p`
|
|
3780
|
+
- `prompt`: one short present-tense shot (see [references/prompt-rules.md](references/prompt-rules.md))
|
|
3781
|
+
|
|
3782
|
+
Mandatory motion constraints in the prompt:
|
|
3783
|
+
|
|
3784
|
+
- Subject runs/walks **in place** (treadmill style)
|
|
3785
|
+
- Camera **locked** — no pan, zoom, or orbit
|
|
3786
|
+
- Background stays **flat solid magenta**
|
|
3787
|
+
- Identity, costume, palette stable for the whole shot
|
|
3788
|
+
- Single continuous action only
|
|
3789
|
+
|
|
3790
|
+
Copy the returned video `file_path` to
|
|
3791
|
+
`<out_dir>/video/<name>-<duration>s.mp4`.
|
|
3792
|
+
|
|
3793
|
+
If video tools are unavailable, stop (platform gate).
|
|
3794
|
+
|
|
3795
|
+
### 4. Extract + chroma + sample (local script)
|
|
3796
|
+
|
|
3797
|
+
Run the processor (ffmpeg + Pillow + numpy):
|
|
3798
|
+
|
|
3799
|
+
```bash
|
|
3800
|
+
python3 skills/agentsam-game-video-to-sprites/scripts/video2dsprite.py process \
|
|
3801
|
+
--video <out_dir>/video/<name>-6s.mp4 \
|
|
3802
|
+
--out-dir <out_dir> \
|
|
3803
|
+
--name <name> \
|
|
3804
|
+
--frame-counts 8,16,24,48 \
|
|
3805
|
+
--cell-size 128 \
|
|
3806
|
+
--body-height 100 \
|
|
3807
|
+
--foot-y 118 \
|
|
3808
|
+
--fps 0
|
|
3809
|
+
```
|
|
3810
|
+
|
|
3811
|
+
Notes:
|
|
3812
|
+
|
|
3813
|
+
- `--fps 0` = extract every decoded frame (use source fps)
|
|
3814
|
+
- Magenta flood-fill from corners + despill
|
|
3815
|
+
- Even sampling for each count in `--frame-counts`
|
|
3816
|
+
- Feet-normalized cells, horizontal strip, grid, loop GIF per count
|
|
3817
|
+
|
|
3818
|
+
Optional: only re-sample denser sets from existing cleaned frames:
|
|
3819
|
+
|
|
3820
|
+
```bash
|
|
3821
|
+
python3 skills/agentsam-game-video-to-sprites/scripts/video2dsprite.py sample \
|
|
3822
|
+
--clean-dir <out_dir>/frames-clean \
|
|
3823
|
+
--out-dir <out_dir> \
|
|
3824
|
+
--frame-counts 16,24,48 \
|
|
3825
|
+
--cell-size 128
|
|
3826
|
+
```
|
|
3827
|
+
|
|
3828
|
+
### 5. QC
|
|
3829
|
+
|
|
3830
|
+
Visually check:
|
|
3831
|
+
|
|
3832
|
+
- [ ] Preview GIF loops without huge pops
|
|
3833
|
+
- [ ] Magenta gone (no solid pink blocks); fringe acceptable or re-key
|
|
3834
|
+
- [ ] Feet stay on a stable baseline (no hop from bad crop)
|
|
3835
|
+
- [ ] Identity roughly stable (face/clothes not morphing every frame)
|
|
3836
|
+
- [ ] Action is in-place (not sliding out of frame)
|
|
3837
|
+
- [ ] For game use: pick one count (often **16 or 24**) or cut one true cycle
|
|
3838
|
+
|
|
3839
|
+
If identity drifts hard or pixels are too soft, fall back to `$generate2dsprite` for production sheets and keep the video set as motion reference only.
|
|
3840
|
+
|
|
3841
|
+
### 6. Deliver
|
|
3842
|
+
|
|
3843
|
+
Report paths only (unless user asked to wire into a game):
|
|
3844
|
+
|
|
3845
|
+
- Video: `video/*.mp4`
|
|
3846
|
+
- Dense sprites: `sprite/x16|x24|x48/`
|
|
3847
|
+
- Strips / grids / GIFs: `sprite/run-strip-N.png`, `run-grid-N.png`, `run-preview-N.gif`
|
|
3848
|
+
- Meta: `pipeline-meta.json`
|
|
3849
|
+
|
|
3850
|
+
Do **not** modify game code unless requested.
|
|
3851
|
+
|
|
3852
|
+
## Defaults
|
|
3853
|
+
|
|
3854
|
+
- Duration: **6s**
|
|
3855
|
+
- Action: **side run in place**, facing right
|
|
3856
|
+
- Export counts: **8, 16, 24, 48**
|
|
3857
|
+
- Cell: **128²**, body height ~100, feet at y≈118
|
|
3858
|
+
- Background: **#FF00FF**
|
|
3859
|
+
- Prefer single-asset `image-to-video generation tool` over multi-ref (compose multi-ref with `image-generation tool` first if needed)
|
|
3860
|
+
|
|
3861
|
+
## Tradeoffs (tell the user once)
|
|
3862
|
+
|
|
3863
|
+
**Pros:** denser intermediates → often feels smoother than 4–8 discrete gen poses.
|
|
3864
|
+
**Cons:** softer pixels, identity drift, chroma fringe, multi-cycle 6s clips are not a single perfect loop, heavier assets.
|
|
3865
|
+
**Rule of thumb:** 8→16→24 usually gains smoothness; 48 is often diminishing returns; 145 raw frames are for sampling, not all for runtime.
|
|
3866
|
+
|
|
3867
|
+
## Resources
|
|
3868
|
+
|
|
3869
|
+
- [references/prompt-rules.md](references/prompt-rules.md) — base still + video prompts
|
|
3870
|
+
- [references/pipeline.md](references/pipeline.md) — folder layout, ffmpeg, sampling strategy
|
|
3871
|
+
- [scripts/video2dsprite.py](scripts/video2dsprite.py) — extract, chroma, normalize, export
|
|
3872
|
+
|
|
3873
|
+
## Relationship to other skills
|
|
3874
|
+
|
|
3875
|
+
- `$generate2dsprite` — primary sheet pipeline (Codex + AgentSam when image gen exists)
|
|
3876
|
+
- `$generate2dmap` — maps; not used here
|
|
3877
|
+
- `$video2dsprite` — **AgentSam Build exclusive** motion densification path
|
|
3878
|
+
- `$game-asset-core` / `$game-animation-frames` — loop/flip-test/motion laws and
|
|
3879
|
+
engine-ready defaults; still use this skill’s scripts for sandbox execution
|
|
3880
|
+
(magenta base + chroma), not a freeform background color
|
|
3881
|
+
','skills/agentsam-game-video-to-sprites/SKILL.md','ac95ed17040e627f7b50c6a7bdf792cec1328e01aa2fc9da8149d11286e345a5','read_only','{"origin":"sdk_source","source_id":"agentsam-game-video-to-sprites","packaged_candidate":false}') ON CONFLICT(id) DO UPDATE SET scope_type=excluded.scope_type,name=excluded.name,slash_trigger=excluded.slash_trigger,npm_package_name=excluded.npm_package_name,npm_version=excluded.npm_version,description=excluded.description,content_markdown=excluded.content_markdown,file_path=excluded.file_path,content_checksum=excluded.content_checksum,access_mode=excluded.access_mode,metadata_json=excluded.metadata_json,is_published=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_published ELSE 0 END,is_active=CASE WHEN agentsam_skill_next.content_checksum=excluded.content_checksum AND agentsam_skill_next.npm_version=excluded.npm_version AND agentsam_skill_next.npm_package_name=excluded.npm_package_name THEN agentsam_skill_next.is_active ELSE 0 END,updated_at=datetime('now');
|