agentleFS
AWSKnown publisherawslabs/visual-asset-management-system/CLAUDE.md

visual-asset-management-system

CLAUDE.md144 starsChanged 2 months agoApache-2.0View on GitHub

This is the root-level Claude Code steering document for VAMS. It is auto-loaded in every session and provides the project-wide context that all agents need. For component-specific details, see the CLAUDE.md files in each subdirectory. VAMS is an AWS-native Visual Asset Management System for managing, visualizing, and processing 3D assets, point clouds, CAD files, and other visual content. It deploys as a CloudFormation/CDK stack with: VAMS version: see infra/config/config.ts and tools/VamsCLI/vamscli/version.py. Python 3.12 (Lambda), 3.13+ (dev). Node 22.x (Lambda). npm…

  • Installs packages

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

23 rules. About 0 are common, 8 are distinctive, and 15 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When config.app.govCloud.enabled is true: no CloudFront (use ALB for static web distribution).

    line 270
  2. Distinctive:

    All AWS resource references come from environment variables (Lambda) or CDK constructs (infra).

    line 303
  3. Very specific:

    Every new configuration option in config.ts must include validation in the getConfig() function.

    line 307
  4. Distinctive:

    Every CDK Nag suppression requires a detailed reason explaining why it is acceptable in the VAMS context — e.g.

    line 318
  5. Very specific:

    All DynamoDB tables, S3 buckets, and other storage resources must use KMS encryption from the shared storageResources.encryption.kmsKey.

    line 334
  6. Very specific:

    Always use nestedStack.addDependency(otherStack) when one nested stack depends on another.

    line 338
  7. Very specific:

    Update the directory structure tree, key files tables, and any affected rules or patterns.

    line 362
  8. Distinctive:

    Add one line naming what it pins, so a later reader does not have to re-derive it:

    line 415
  9. Distinctive:

    Which tests are temporary: Ask whether a future edit could plausibly reintroduce what the test forbids:

    line 435
  10. Distinctive:

    When implementing new features, follow the patterns in these files:

    line 499
  11. Very specific:

    Add config option in infra/config/config.ts ConfigPublic interface

    line 612
  12. Very specific:

    Add validation in getConfig()

    line 613
  13. Very specific:

    Read in frontend from /api/secure-config response and gate UI with a feature check

    line 615
  14. Very specific:

    Create table in infra/lib/nestedStacks/storage/storageBuilder-nestedStack.ts and export via storageResources

    line 620
  15. Very specific:

    Add constant to ResourceKeys in backend/backend/common/resourceNames.py

    line 621
  16. Very specific:

    Add matching entry to RESOURCE_PARAM_KEYS.dynamoTables in infra/common/resourceParamKeys.ts

    line 622
  17. Very specific:

    Add matching constant to ResourceParamKeys in infra/deploymentDataMigration/tools/ssm_resource_lookup.py (migration scripts resolve names …

    line 623
  18. Very specific:

    Create viewer component in web/src/components/viewers/ and register in the viewer factory/registry

    line 632
  19. Distinctive:

    Add the file extension mapping

    line 633
  20. Very specific:

    Add any required npm dependencies to web/package.json

    line 634
  21. Very specific:

    If the viewer needs unsafe-eval, check allowUnsafeEvalFeatures config

    line 635
  22. Distinctive:

    All backend handlers must return API Gateway-compatible responses:

    line 677
  23. Distinctive:

    No changelog/process narration in code: Never reference "upgrades", "new in vX", "added for", migrations, or the change request that …

    line 695

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

VAMS - Visual Asset Management System

This is the root-level Claude Code steering document for VAMS. It is auto-loaded in every session and provides the project-wide context that all agents need. For component-specific details, see the CLAUDE.md files in each subdirectory.

🏗️ Project Overview

VAMS is an AWS-native Visual Asset Management System for managing, visualizing, and processing 3D assets, point clouds, CAD files, and other visual content. It deploys as a CloudFormation/CDK stack with:

  • React frontend (web/) — Cloudscape UI, many viewer plugins for 3D/media
  • Python Lambda backend (backend/) — Casbin ABAC/RBAC auth, DynamoDB, S3
  • CDK TypeScript infrastructure (infra/) — 14 nested stacks, multi-partition support
  • Python CLI tool (tools/VamsCLI/) — Click framework, profile-based config
  • Processing pipelines (backendPipelines/) — 3D conversion, coordinate transform, GenAI labeling, Gaussian splatting, point cloud, 3D preview thumbnails, NVIDIA Cosmos Predict, NVIDIA Cosmos Reason, NVIDIA Cosmos Transfer, NVIDIA Cosmos 3 (omni), NVIDIA GR00T fine-tuning, NVIDIA Isaac Lab training, and more

Version Info

VAMS version: see infra/config/config.ts and tools/VamsCLI/vamscli/version.py. Python 3.12 (Lambda), 3.13+ (dev). Node 22.x (Lambda). npm 11.10.0+ (required for min-release-age support). React 18.3 (Vite build). Pydantic 1.10.13 (v1, NOT v2) — uses @root_validator, @validator, class Config. CDK: aws-cdk-lib.

Rolling the VAMS version — the version string is duplicated across seven files; update all of them together in the same change:

  1. Root package.json ("version" field)
  2. Root package-lock.json (both project-root "version" fields: top-level and packages[""])
  3. infra/config/config.ts (VAMS_VERSION constant)
  4. tools/VamsCLI/vamscli/version.py (both __version__ and CLI_VERSION)
  5. tools/VamsCLI/tests/test_log_redaction.py (the vamscli/X.Y.Z User-Agent fixture value and its assertion)
  6. tools/VamsMCP/pyproject.toml ([project] version)
  7. tools/VamsMCP/vams_mcp/__init__.py (__version__ — what the running MCP server reports; Pattern 7 rule 6)

The sub-package package.json/package-lock.json files under infra/, web/, and documentation/docusaurus-site/ carry their own versions and are not part of the roll, nor are third-party pins that happen to share the digits (urllib3, pdal, cadquery). Each release also gets a new ## [X.Y.Z] (YYYY-MM-DD) section at the top of CHANGELOG.md and a matching row plus ### X.Y.Z section in documentation/docusaurus-site/docs/additional/revisions.md.


📁 Directory Structure

Maintenance note: Update this tree when adding or removing top-level directories, components, or tools. See Rule 11.

root/
├── CLAUDE.md                  # THIS FILE - project-wide guide
├── web/                       # React frontend (Cloudscape, TypeScript, Vite)
│   └── CLAUDE.md              # Frontend development guide
├── backend/                   # Python Lambda handlers
│   └── CLAUDE.md              # Backend development guide
├── infra/                     # CDK TypeScript infrastructure
│   └── CLAUDE.md              # CDK development guide
├── tools/
│   ├── VamsCLI/               # Python CLI tool
│   │   └── CLAUDE.md          # CLI development guide
│   ├── VamsMCP/               # MCP server exposing the VAMS API as agent tools (reuses vamscli)
│   │   └── CLAUDE.md          # MCP development guide
│   ├── VamsAgentSkill/        # Portable agent skill that operates VAMS via vamscli
│   │   └── SKILL.md           # Canonical skill definition (see /vams-agent)
│   ├── ExternalIntegrations/  # ArcGIS Pro connector, Isaac Sim integration
│   └── permissionsSetup/      # Permission bootstrap scripts
├── backendPipelines/          # Processing pipeline definitions (containers + Lambdas)
│   ├── CLAUDE.md              # Pipeline development guide (S3 output paths, assetId threading, new-pipeline checklist)
│   ├── genAi/
│   │   ├── nvidia/
│   │   │   ├── cosmos/
│   │   │   │   ├── 3/         # NVIDIA Cosmos 3 (omni generation)
│   │   │   │   ├── predict/   # NVIDIA Cosmos Predict (Text2World, Video2World)
│   │   │   │   ├── reason/    # NVIDIA Cosmos Reason (video captioning)
│   │   │   │   └── transfer/  # NVIDIA Cosmos Transfer (control-signal video restyle)
│   │   │   └── gr00t/         # NVIDIA GR00T N1.5 fine-tuning
│   │   └── metadata3dLabeling/
│   ├── conversion/, preview/, 3dRecon/, simulation/, multi/
├── documentation/             # User guides, API spec, permission templates
│   └── CLAUDE.md              # Documentation development guide
├── .kiro/steering/            # Detailed workflow docs (Kiro steering, supplementary)
├── .claude/commands/          # Claude Code skills (slash commands)
└── infra/deploymentDataMigration/  # Data migration scripts (e.g., v2.5_to_v2.6)

🏛️ Architecture Summary

Request Flow

User → CloudFront/ALB → API Gateway REST API (v1)
  → Custom Lambda Authorizer (JWT validation + IP check)
    → Lambda Handler (Casbin two-tier enforcement)
      → DynamoDB / S3

Auth Flow

Cognito/External OAuth → ID Token → Custom Lambda Authorizer
  → Tier 1: API route authorization (can user call this endpoint?)
  → Tier 2: Data entity authorization (can user access this specific resource?)
  → Both tiers MUST allow for access to succeed

Frontend Architecture

React 18 + Cloudscape → HashRouter → apiClient (fetch-based)
  → Feature switches from /api/secure-config → conditional UI rendering

Configuration Flow

CDK config (infra/config/config.json)
  → deploys to DynamoDB (feature switches, app settings)
    → Frontend reads from /api/secure-config at runtime

Pipeline Architecture

Four creatable execution types: Lambda (sync/async invoke), SQS (async queue), EventBridge (async event), and DeadlineCloud (AWS Deadline Cloud job). SQS and EventBridge are async-only with optional Step Functions Task Token callback. DeadlineCloud is async-only with a mandatory callback (waitForCallback must be Enabled), is built by DeadlineCloudTaskBuilder + the deadlineCloudJobCallback lambda, and is gated by app.pipelines.deadlineCloudExecutionTypeEnabled — accepted only in the commercial aws partition, and rejected at pipeline create when the deployment has not enabled it.

S3 event / API trigger → Lambda → Step Functions → Lambda / SQS / EventBridge → AWS Batch containers (optional)
  backendPipelines/{useCase}/lambda/    -- orchestration
  backendPipelines/{useCase}/container/ -- processing

See backendPipelines/CLAUDE.md for output path conventions, assetId threading, and the new-pipeline checklist.

Deployment Modes

ModeDistributionNotes
Commercial AWSCloudFront + S3Default
GovCloudALB + S3No CloudFront, no Location Service, FIPS endpoints
Air-gappedALB + S3 + VPC endpointsFull VPC isolation

🔑 Cross-Component Patterns

These are the critical patterns that span multiple directories. Every developer must understand these.

Pattern 1: Adding a New API Endpoint (multiple files)

Adding a new API endpoint requires coordinated changes across multiple components:

StepFileWhat to do
1. Master route (backend)backend/backend/common/apiRoutes.pyDefine the ApiRoute constant AND add it to the appropriate category group array
2. Backend handlerbackend/backend/handlers/{domain}/{handler}.pyImplement Lambda handler with Casbin enforcement; dispatch via ApiRoute.matches()
3. Pydantic modelbackend/backend/models/{domain}.pyDefine request/response models (Pydantic v1)
4. Lambda builderinfra/lib/lambdaBuilder/{domain}Functions.tsBuild Lambda with env vars, permissions, VPC config
5. API routeinfra/lib/nestedStacks/apiLambda/apiBuilder2-nestedStack.tsAttach Lambda to API Gateway route (prefer apiBuilder2; the two API stacks stay split — see infra/CLAUDE.md)
6. Frontend serviceweb/src/services/APIService.tsAdd API call method
7. CLI commandtools/VamsCLI/vamscli/commands/{group}.pyAdd CLI command (if applicable) — also add the endpoint path to vamscli/constants.py (Rule 7)
8. MCP servertools/VamsMCP/vams_mcp/server.pyExpose as an MCP tool if agents should reach it (see Pattern 7)
9. OpenAPI spec (docs)documentation/VAMS_API.yamlAdd/update the path and its component schemas
10. API reference (docs)documentation/docusaurus-site/docs/api/{domain}.mdAdd/update the human-readable endpoint reference (e.g. api/auth.md for /auth/*)

Never add an endpoint without updating all required files. A handler without a route is dead code; a route without a handler will 500. The route group arrays in apiRoutes.py feed handler dispatch and the GET /auth/routes/api listing, so a missing entry is invisible to constraint authoring and the CLI. API documentation lives in two places — the OpenAPI VAMS_API.yaml AND the Docusaurus api/{domain}.md reference page — and both must be updated together.

Pattern 7: Backend → CLI → MCP / Connector Propagation Chain

The VAMS CLI, the VAMS MCP server, and the external connectors all sit downstream of the backend API. The MCP server imports vamscli's APIClient and ProfileManager directly; the external connectors shell out to the vamscli executable and parse its --json-output. Changes therefore propagate in one direction and each hop must be updated in the same change:

backend API (apiRoutes.py + handler + model)
  → tools/VamsCLI (constants.py → utils/api_client.py → commands/{group}.py)
    ├─ tools/VamsMCP (vams_mcp/server.py tools, reusing the CLI APIClient method)
    │    → tools/VamsAgentSkill/SKILL.md (only if an order-of-operations rule changes)
    └─ tools/ExternalIntegrations (subprocess consumers of the CLI executable)
         ├─ isaacsim_vams_integration/vams/connector/isaacsim/vams_cli_service.py
         └─ arcgispro-connector-for-vams/Services/VamsCliService.cs + Models/VamsModels.cs

Rules:

  1. Any change to a vamscli command or APIClient method requires reviewing the MCP server in the same change. Renamed methods, changed parameters, new required arguments, and changed response shapes all break MCP tools silently — the MCP tool calls the CLI method directly, so a signature change surfaces only at agent runtime.
  2. New APIClient methods that agents should be able to use get a matching MCP tool in tools/VamsMCP/vams_mcp/server.py, placed in the correct gate section (read / enable_writes / enable_destructive), plus a unit test and a README tool-list entry. See tools/VamsMCP/CLAUDE.md.
  3. Response-shape changes must be checked against MCP pagination. VamsClient.paginate() is driven by the list field name -- whatever field the handler returns the list under, passed as items_key -- and unwraps the legacy message envelope. Read the handler's response model rather than checking against a list of names: the names in use today are Items, items, versions and metadata, and an earlier enumeration here omitted metadata while two call sites passed it. A handler that changes either one breaks the corresponding MCP tool without any error.
  4. The agent skill (tools/VamsAgentSkill/SKILL.md) does not list commands — it self-discovers them via vamscli --help, so ordinary command additions need no skill edit. Update it only when a structural rule changes: entity creation/deletion ordering, identifier semantics, permission scoping, or a new mutating category.
  5. Any change to a CLI command name, subcommand, option/flag, or --json-output response shape requires validating the external connectors in the same change. Unlike the MCP server, the connectors are not Python importers of APIClient — they build argument strings and parse JSON keys, so nothing at build or import time catches a drift. A renamed flag surfaces as a non-zero CLI exit at connector runtime; a renamed or removed JSON key surfaces as a silently blank field, which is worse. Both must be checked:

    • IsaacSim (vams_cli_service.py) — argument lists passed to subprocess.run, and the @dataclass field mappings (item.get("jsonKey", ...)) that parse each response.
    • ArcGIS Pro (Services/VamsCliService.cs) — the interpolated argument strings, plus the [JsonPropertyName("jsonKey")] attributes in Models/VamsModels.cs.

    Only map JSON keys that the specific command actually returns. file list items and the file info response are different shapes — a listing item carries dateCreatedCurrentVersion and no contentType/lastModified, while file info carries contentType/lastModified and no dateCreatedCurrentVersion. Mapping a key onto the wrong command yields a permanently empty value with no error.

    In the ArcGIS models, a computed convenience property whose name matches a mapped JSON field (for example Key alongside [JsonPropertyName("key")]) must carry [JsonIgnore]. The deserializer runs with PropertyNameCaseInsensitive, so the collision throws InvalidOperationException while building type metadata — failing the whole response, not just that field.

  6. Roll the CLI version and MCP version together when the MCP server's contract with the CLI changes. The MCP version is duplicated, so all three files move in the same change: tools/VamsCLI/vamscli/version.py, tools/VamsMCP/pyproject.toml, and tools/VamsMCP/vams_mcp/__init__.py (__version__). Bumping the package metadata without the importable __version__ leaves a diagnostic that reports the running server version silently wrong.
  7. A change to these rules lands in both steering families (Rule 11). This pattern is restated for Claude Code in tools/VamsCLI/CLAUDE.md and tools/VamsMCP/CLAUDE.md, and for Kiro in the MCP propagation section of .kiro/steering/CLI_DEVELOPMENT_WORKFLOW.md. Editing the chain here without updating those leaves one agent scaffolding the old workflow.

Reverse direction applies too: a change to the MCP server or a connector that reveals a missing or wrong APIClient method should be fixed in the CLI rather than worked around with raw requests in the consumer.

Pattern 2: Two-Tier Authorization

Authorization is enforced at two tiers everywhere in VAMS:

  • Tier 1 (API-level): Controls which API routes a role can access. Defined via api and web objectType constraints.
  • Tier 2 (Object-level): Controls which data entities a role can access. Defined via entity-type constraints (database, asset, pipeline, etc.).

Both tiers must allow for access to succeed. This is defense-in-depth. The backend enforces via CasbinEnforcer, and the frontend gates UI routes via the webRoutes() API.

# ✅ CORRECT - Backend handler with Casbin enforcement
enforcer = CasbinEnforcer(user_id, role_constraints)
if not enforcer.check_permission(object_type, resource_id, action):
    return {"statusCode": 403, "body": json.dumps({"error": "Forbidden"})}

System user: The reserved user ID SYSTEM_USER is the official identity for all system-process actions (lambda cross-calls, pipeline workflow executions, bucket-sync ingestion, seeded createdBy/modifiedBy values, changeUserId provenance fallbacks). It is seeded into the user and user-roles tables during CDK deployment and assigned to the admin role so system actions pass both authorization tiers. Never introduce other variants (SYSTEM, system, etc.) — handlers compare against the exact string. See backend/CLAUDE.md.

Pattern 3: Configuration Flows CDK -> DynamoDB -> Frontend

CDK config (infra/config/config.json) drives deployment decisions; a CDK custom resource writes feature switches to DynamoDB at deploy time; the frontend reads features from /api/secure-config at runtime. Feature switches are defined in infra/common/vamsAppFeatures.ts.

// CDK: feature switch enum + push to DynamoDB in core stack
export enum VAMS_APP_FEATURES {
    GOVCLOUD = "GOVCLOUD",
    LOCATIONSERVICES = "LOCATIONSERVICES",
    NEW_FEATURE = "NEW_FEATURE",
}
if (props.config.app.newFeature.enabled) {
    this.enabledFeatures.push(VAMS_APP_FEATURES.NEW_FEATURE);
}
// Frontend reads at runtime
const config = appCache.getItem("config");
if (config.featuresEnabled.includes("NEW_FEATURE")) {
    // Show feature-specific UI
}

Pattern 4: Resource Names Resolve via SSM Parameter Store

DynamoDB table names, non-asset S3 bucket names, and audit log group names are never hardcoded. Non-pipeline backend Lambdas resolve these from SSM Parameter Store at runtime, with environment variable overrides for development and testing.

# ✅ CORRECT - Resolve at module level
from backend.common.resourceNames import get_table_name, ResourceKeys

try:
    asset_table_name = get_table_name(ResourceKeys.ASSET_STORAGE_TABLE)
    database_table_name = get_table_name(ResourceKeys.DATABASE_STORAGE_TABLE)
except Exception:
    logger.exception("Failed loading resource names")
    raise

# ❌ INCORRECT
ASSET_STORAGE_TABLE_NAME = "vams-asset-storage"  # VIOLATION

CDK publishes each resource name as an SSM parameter under VAMS_RESOURCE_PARAM_PREFIX (see ResourceNamesBuilder nested stack; Lambda env is set via globalLambdaEnvironmentsAndPermissions). Keys are defined in infra/common/resourceParamKeys.ts (RESOURCE_PARAM_KEYS.*) and mirrored in backend/backend/common/resourceNames.py (ResourceKeys).

Resolution order: environment variable override (break-glass for testing; also how pytest and local utilities work) → 60-minute in-module cache → a short-lived negative record of keys a completed sweep did not carry, so an unpublished parameter costs one sweep per window rather than one per call → one paginated GetParametersByPath fetch of all resource names. Pipeline Lambdas use legacy environment variables (excluded from SSM resolution).

Pattern 5: Multi-Partition Support

VAMS runs on commercial AWS, GovCloud, and potentially ISO partitions. Never hardcode AWS partition strings, service endpoints, or regional URLs.

// ✅ CORRECT - Use service-helper for partition-aware values
import { Service } from "../helper/service-helper";
const cognitoEndpoint = Service("COGNITO_IDP").Endpoint;

// ❌ INCORRECT - Hardcoded partition
const arn = `arn:aws:s3:::my-bucket`; // VIOLATION - breaks in GovCloud (arn:aws-us-gov)

Pattern 6: GovCloud Constraints

When config.app.govCloud.enabled is true: no CloudFront (use ALB for static web distribution); no Location Service (conditionally exclude); FIPS endpoints required (use service-helper); certain VPC endpoints are conditional (check partition before creating); no unsafe-eval (stricter CSP unless explicitly overridden).


🚨 Critical Rules

These rules apply project-wide. Violations will cause deployment failures, security issues, or runtime errors.

Rule 1: Never Use Pydantic v2 Syntax

The backend uses Pydantic 1.10.13. v2 syntax fails at import time in Lambda.

# ✅ v1
from pydantic import BaseModel, Field, root_validator, validator

class AssetRequest(BaseModel):
    assetName: str = Field(..., description="Name of the asset")

    @root_validator
    def validate_fields(cls, values):
        return values

    class Config:
        extra = "forbid"

# ❌ v2 (will fail)
from pydantic import model_validator             # not in v1
model_config = ConfigDict(extra="forbid")        # v2 syntax, VIOLATION

Rule 2: Never Hardcode Table Names or ARNs

All AWS resource references come from environment variables (Lambda) or CDK constructs (infra). Hardcoding causes failures when stack names change or when deploying to different accounts.

Rule 3: Always Validate Configuration in CDK

Every new configuration option in config.ts must include validation in the getConfig() function. Unvalidated config leads to silent deployment failures.

// ✅ CORRECT - Validate in getConfig()
if (config.app.newFeature.enabled && !config.app.newFeature.requiredSetting) {
    throw new Error("Configuration Error: newFeature requires requiredSetting when enabled");
}

Rule 4: CDK Nag Suppressions Must Be Justified

Every CDK Nag suppression requires a detailed reason explaining why it is acceptable in the VAMS context — e.g. "Wildcard permissions required for dynamic S3 object access within VAMS asset buckets. Scope is limited to deployment-specific buckets." A reason: "Suppressed" placeholder is a violation.

Rule 5: Use Custom Lambda Authorizer, Not Built-In

VAMS uses a custom Lambda authorizer for all API Gateway endpoints. Never use built-in CDK authorizers (like HttpUserPoolAuthorizer).

Rule 6: Feature Switches Must Be Defined

New features must have a feature switch in vamsAppFeatures.ts and be gated by config in the core stack. Never deploy features unconditionally.

Rule 7: All CLI API Endpoints in Constants

CLI API endpoint paths must be defined in tools/VamsCLI/vamscli/constants.py. Never hardcode endpoint paths in command files or API client methods.

Rule 8: KMS Encryption for All Storage Resources

All DynamoDB tables, S3 buckets, and other storage resources must use KMS encryption from the shared storageResources.encryption.kmsKey.

Rule 9: Explicit Stack Dependencies in CDK

Always use nestedStack.addDependency(otherStack) when one nested stack depends on another. Implicit ordering through resource references alone is not sufficient.

Rule 10: Frontend Uses HashRouter

The React app uses HashRouter, not BrowserRouter. All internal routes use hash-based navigation (/#/path). This is required for CloudFront/ALB compatibility where all paths serve the same index.html.

Rule 11: Keep CLAUDE.md Files Updated

Structural changes to the codebase require updating the relevant CLAUDE.md file(s): adding/removing handler domains, components, commands, nested stacks, or pipeline directories; new DynamoDB tables, S3 buckets, or environment variables; new API routes or CLI commands; new/removed viewer plugins; configuration-system changes (new fields, feature switches); or new dependencies that affect development patterns.

Change areaUpdate this file
New backend handler/model domainbackend/CLAUDE.md (directory structure, handler list)
New CDK nested stack or lambda builderinfra/CLAUDE.md (directory structure, stack list)
New frontend component/page/serviceweb/CLAUDE.md (directory structure, key files)
New CLI command grouptools/VamsCLI/CLAUDE.md (command list, directory structure)
New/changed CLI command, option, or --json-output shapetools/VamsMCP/vams_mcp/server.py + tools/VamsMCP/README.md tool list; and the external connectors (tools/ExternalIntegrations/isaacsim_vams_integration/.../vams_cli_service.py, tools/ExternalIntegrations/arcgispro-connector-for-vams/Services/VamsCliService.cs + Models/VamsModels.cs) — they shell out to the CLI and parse its JSON, so nothing catches drift at build time (Pattern 7 rule 5); tools/VamsAgentSkill/SKILL.md only if an order-of-operations rule changed
New MCP tool or MCP moduletools/VamsMCP/CLAUDE.md (directory structure, tool sections), tools/VamsMCP/README.md (tool list, autoApprove sample)
Configuration system (new field, switch, changed default)infra/CLAUDE.md, documentation/docusaurus-site/docs/deployment/configuration-reference.md, and the ConfigBuilder component; then run infra/test/config/configBuilderSync.test.ts. The test guards only schema.ts fields + defaults.ts presets — new/changed getConfig() validation logic must be hand-ported into validation.ts, and added/changed/removed getConfig() auto-mutations into derived.ts (neither is test-covered)
New/changed S3 bucket, DynamoDB table, or CloudWatch log groupdocumentation/docusaurus-site/docs/architecture/aws-resources.md and documentation/docusaurus-site/docs/deployment/uninstall.md — record removal policy (RETAIN vs DESTROY) and whether the resource has a custom/explicit name (custom-named resources can collide on redeploy). See infra/CLAUDE.md "Documentation Rule: Storage Resources and Log Groups"
New pipelinebackendPipelines/CLAUDE.md (new-pipeline checklist), root CLAUDE.md (both the Project Overview pipeline list and the directory tree — the tree's glyphs assert which entry is a parent's last child), documentation/docusaurus-site/docs/deployment/configuration-reference.md
Cross-component pattern changeCLAUDE.md root (cross-component patterns section)
New skillCLAUDE.md root (Available Claude Code Skills table)

Update the directory structure tree, key files tables, and any affected rules or patterns; keep descriptions concise. Run /refresh-steering-docs for a comprehensive update.

Keep Kiro steering in sync (bidirectional). The .kiro/steering/ documents mirror the CLAUDE.md guidance for the Kiro agent. A change to any CLAUDE.md rule, pattern, or convention must land in the corresponding Kiro steering document in the same commit — and vice versa. Mapping:

The mapping covers every CLAUDE.md in the repository plus tools/VamsAgentSkill/SKILL.md; a new steering document gets a row here when it is created.

CLAUDE.md fileCorresponding Kiro steering document(s)
CLAUDE.md (root)The relevant workflow doc(s) for the changed area; cross-cutting rules go in all affected docs
infra/CLAUDE.md.kiro/steering/CDK_DEVELOPMENT_WORKFLOW.md, .kiro/steering/BACKEND_CDK_DEVELOPMENT_WORKFLOW.md
infra/lib/nestedStacks/pipelines/CLAUDE.md.kiro/steering/CDK_DEVELOPMENT_WORKFLOW.md (pipeline development section)
backend/CLAUDE.md.kiro/steering/BACKEND_CDK_DEVELOPMENT_WORKFLOW.md
backend/tests/CLAUDE.md.kiro/steering/BACKEND_CDK_DEVELOPMENT_WORKFLOW.md (testing section)
backendPipelines/CLAUDE.md.kiro/steering/CDK_DEVELOPMENT_WORKFLOW.md (pipeline development section)
web/CLAUDE.md.kiro/steering/WEB_DEVELOPMENT_WORKFLOW.md, .kiro/steering/WEB_FRONTEND.md
web/e2e/CLAUDE.md.kiro/steering/WEB_DEVELOPMENT_WORKFLOW.md (testing section)
web/src/visualizerPlugin/CLAUDE.md.kiro/steering/WEB_FRONTEND.md (viewer plugin section)
tools/VamsCLI/CLAUDE.md.kiro/steering/CLI_DEVELOPMENT_WORKFLOW.md
tools/VamsMCP/CLAUDE.md.kiro/steering/CLI_DEVELOPMENT_WORKFLOW.md (MCP propagation section)
tools/VamsAgentSkill/SKILL.mdNo Kiro mirror — the skill is agent-portable and self-discovers commands
documentation/CLAUDE.md.kiro/steering/DOCUMENTATION_WORKFLOW.md

Rule 12: Keep Claude Code Skills in Sync with Steering Documents

The skills in .claude/commands/ scaffold work by restating steering-document rules, patterns, checklists, and file paths. When a steering document changes a rule, pattern, workflow, or file path that a skill references, update the affected skill(s) in the same change — and vice versa. A stale skill actively scaffolds outdated code.

Which skills depend on which steering content:

SkillSensitive to changes in
/add-api-endpointRoot Pattern 1, backend/CLAUDE.md (handler/model patterns, apiRoutes), infra/CLAUDE.md (lambda builder, route registry, security helpers)
/add-pipelinebackendPipelines/CLAUDE.md (output paths, assetId threading, lambda dirs), infra/lib/nestedStacks/pipelines/CLAUDE.md (pipeline nested stack pattern, VPC builder blocks, config)
/generate-permissionsPermission model docs, documentation/permissionsTemplates/, constraint fields in backend/CLAUDE.md
/deploy-checkRoot development commands (lint/prettier from repo root), config validation rules
/update-docs, /verify-docsdocumentation/CLAUDE.md (writing style, source-to-doc mappings, dual API doc sources)
/update-changelogRoot git workflow / changelog format
/refresh-steering-docsRoot Rules 11–13
/vams-agenttools/VamsAgentSkill/SKILL.md (canonical definition), VAMS entity/order-of-operations rules, tools/VamsCLI auth and permission commands

Rule 13: Label a Temporary Test So It Can Be Found and Removed

A test written to prove one specific change landed is a different artifact from a test that holds a rule in place, and the two are indistinguishable by reading them afterwards. Both may scan source, both may assert an absence, and both may carry a careful docstring explaining why. So the distinction has to be recorded when the test is written — it cannot be reconstructed at release time.

Mark a temporary test at the point of writing:

StackMarker
Python (backend, backendPipelines, tools/VamsCLI, tools/VamsMCP)@pytest.mark.temporary on the test or its class
TypeScript (web, infra)a TEMPORARY-TEST token in a comment directly above the it(...)

Add one line naming what it pins, so a later reader does not have to re-derive it:

@pytest.mark.temporary  # pins the removal of the duplicated tag block in tagService.py

Finding them is then one command per stack, which is the whole point of the marker:

cd backend && python -m pytest -m temporary -q --collect-only     # also tools/VamsCLI, tools/VamsMCP
grep -rn "TEMPORARY-TEST" web/src web/e2e infra/test

The marker is registered in backend/pytest.ini, tools/VamsCLI/pyproject.toml, and tools/VamsMCP/pyproject.toml. backend and tools/VamsCLI run --strict-markers, so an unregistered marker fails those suites outright rather than being ignored — register it before using it in a new Python test tree there. backendPipelines has no pytest configuration at all (which is why its existing @pytest.mark.unit is unregistered too), so a marker there only warns; -m temporary still selects correctly.

Which tests are temporary. Ask whether a future edit could plausibly reintroduce what the test forbids:

  • Durable — do not mark, do not remove. The forbidden thing is still writable, so the guard can still fire for a good reason: a weaker TLS policy, a broader IAM wildcard, a cdk-nag suppression, 'unsafe-inline' in the base CSP, a mutating client call from a read-only path, a credential reaching a synthesized template. Also durable: a positive or negative control for another assertion, whose subject is deliberately a string that does not exist.
  • Temporary — mark it. The test pins one past edit that nothing would reintroduce: a named file that was deleted, a removed test seam, a specific dead branch, a comment string that was reworded. It went green once, and its only remaining way to fail is an innocent refactor of the file it reads.

:::warning[Absence of the literal does NOT identify a temporary test] The tempting shortcut — "the forbidden string appears nowhere in the source, so the test is spent" — is wrong, and it yields confident false positives. A forbid-forever guardrail also has zero occurrences; that absence is the guard succeeding, not the test expiring. TLS13_1_3_2025_09, arn:aws:s3:::*, and an AwsSolutions-EKS1 suppression each appear nowhere precisely because a test forbids them. Judge by whether the construct is re-writable, never by counting occurrences. :::

Scanning source is not the signal either: backend/tests/common/test_userid_identity_normalization.py walks the handler tree and fails on a route that does not normalize, which must keep holding forever.


🧰 Development Commands

# Frontend (web/)
cd web && npm install
cd web && npm run start                                    # Dev server
cd web && npm run build                                    # Production build

# Backend (backend/)
cd backend && python -m pytest                             # All tests
cd backend && python -m pytest tests/handlers/assets/ -v   # Specific handler tests

# CDK (infra/)
cd infra && npm install
cd infra && npx cdk synth                                  # Synthesize CloudFormation
cd infra && npx cdk diff                                   # Preview changes
cd infra && npx cdk deploy --all --require-approval never  # Deploy to dev

# CLI (tools/VamsCLI/)
cd tools/VamsCLI && pip install -e .                       # Install in dev mode
cd tools/VamsCLI && python -m pytest                       # Run CLI tests

# MCP server (tools/VamsMCP/) — requires vamscli installed in the same environment
cd tools/VamsMCP && pip install -e ../VamsCLI && pip install -e '.[dev]'
cd tools/VamsMCP && python -m pytest                       # Run MCP tests (no live deployment needed)

# Project-wide (run from repo root — targets web/src, infra/lib, infra/bin, infra/test)
npm run lint
npm run lint-fix
npm run prettier-check
npm run prettier-fix

Always run lint and prettier from the project root directory — the root package.json scripts target the correct paths. Do not run these from subdirectories.


📐 Gold Standard Reference Files

When implementing new features, follow the patterns in these files:

ComponentReference FileWhat It Demonstrates
Backend handlerbackend/backend/handlers/assets/assetService.pyLambda structure, Casbin auth, error handling, DynamoDB ops
Pydantic modelbackend/backend/models/assetsV3.pyRequest/response models, v1 validators, Field definitions
Lambda builderinfra/lib/lambdaBuilder/assetFunctions.tsEnv vars, permissions, VPC config, KMS, CDK Nag
CDK nested stackinfra/lib/nestedStacks/apiLambda/apiBuilder-nestedStack.tsRoute attachment, function integration, API Gateway setup
CLI commandtools/VamsCLI/vamscli/commands/roleUserConstraints.pyClick decorators, profile support, JSON output, error handling
MCP tooltools/VamsMCP/vams_mcp/server.pyTool decorators, gated write/destructive sections, pagination
API serviceweb/src/services/APIService.tsapiClient calls, request/response patterns
Pipeline modelbackend/backend/models/pipelines.pyPipeline Pydantic models, execution type enum, validation
Workflow modelbackend/backend/models/workflows.pyWorkflow Pydantic models, Step Functions ASL generation
Permission templatedocumentation/permissionsTemplates/database-admin.jsonTwo-tier constraint structure, variable placeholders

🔀 Git Workflow

  • Branch naming: release/X.Y.Z for releases, feature/description for features. Main branch is main.
  • Current branch: release/2.X.0 based on version in infra/config/config.ts and tools/VamsCLI/vamscli/version.py
  • Changelog format: standard-version format in CHANGELOG.md
  • Commit style: descriptive imperative mood ("Fix bugs", "Add cognito user management")

🔌 Available Claude Code Skills

SkillDescription
/generate-permissionsGenerate VAMS permission constraint JSON templates
/add-api-endpointScaffold a new backend API endpoint across all required files
/add-pipelineScaffold a new processing pipeline
/update-changelogGenerate changelog entries from git commits
/deploy-checkPre-deployment validation checklist
/refresh-steering-docsUpdate CLAUDE.md directory structures and key file references
/update-docsUpdate documentation pages based on recent code changes
/verify-docsCross-check documentation accuracy against source code
/vams-agentOperate a live VAMS deployment at runtime via vamscli (search, inspect, bulk-update, cross-link); self-discovers commands, read-only by default. Canonical definition: tools/VamsAgentSkill/SKILL.md

📚 Supplementary Documentation

Deep-dive workflow guides in .kiro/steering/:

  • CDK_DEVELOPMENT_WORKFLOW.md — CDK nested stacks, constructs, lambda builders, security patterns, pipeline development
  • BACKEND_CDK_DEVELOPMENT_WORKFLOW.md — End-to-end API endpoint development across backend + CDK
  • CLI_DEVELOPMENT_WORKFLOW.md — CLI commands, decorators, testing, profile support, JSON output

User-facing docs:

  • documentation/docusaurus-site/docs/concepts/permissions-model.md — permissions concepts and ABAC/RBAC configuration
  • documentation/docusaurus-site/docs/deployment/configuration-reference.md — CDK deployment configuration reference
  • documentation/docusaurus-site/docs/developer/setup.md — development environment setup and patterns
  • documentation/VAMS_API.yaml — OpenAPI specification for all endpoints

🔧 Technology Stack Quick Reference

Runtime versions are in the Project Overview version table.

  • Frontend (web/): Cloudscape Design System, AWS Amplify v6 (auth), custom fetch-based apiClient (auto auth headers), HashRouter, TypeScript throughout (__mocks__/*.js remain JS). Viewer plugins: Three.js, Needle Engine, Potree, Gaussian Splat, GLTF, USD, IFC/BIM.
  • Backend (backend/): Casbin ABAC/RBAC, boto3, AWS Lambda Powertools (logging, tracing). Pydantic v1 only.
  • Infrastructure (infra/): AWS CDK (TypeScript), 14 nested stacks, CDK Nag security checks, REST API (v1), custom Lambda authorizer (unified JWT + IP).
  • CLI (tools/VamsCLI/): Click command framework, profile-based multi-environment config, --json-output for machine-readable output.
  • MCP server (tools/VamsMCP/): Model Context Protocol server (mcp SDK) exposing the VAMS API as agent tools over stdio. Stores no credentials — reuses the vamscli profile and APIClient. Write and destructive tools are gated off by default via VAMS_ENABLE_WRITES / VAMS_ENABLE_DESTRUCTIVE.
  • Agent skill (tools/VamsAgentSkill/): Portable skill for operating a live deployment through vamscli; self-discovers commands, read-only by default. Surfaced in Claude Code as /vams-agent.

⚙️ Environment & Deployment Specifics

Environment Variables (Backend)

Non-pipeline handlers receive VAMS_RESOURCE_PARAM_PREFIX (SSM prefix, e.g. /{config.name}-{baseStackName}/resourceNames) and resolve DynamoDB table names, auxiliary/artefacts bucket names, and audit log group names from SSM using get_table_name, get_bucket_name, get_log_group_name in backend.common.resourceNames (60-minute in-module cache; legacy env vars provide a break-glass path). Pipeline Lambdas in backendPipelines/ are excluded from SSM resolution and continue to use legacy table-name env vars.

All handlers additionally receive AWS_REGION (set by the Lambda runtime). PRESIGNED_URL_TIMEOUT_SECONDS (S3 presigned URL TTL) is not global — only infra/lib/lambdaBuilder/assetFunctions.ts sets it, for the asset handlers that mint presigned URLs, and those handlers read it as os.environ["PRESIGNED_URL_TIMEOUT_SECONDS"] with no default. A new handler that needs it must set it in its own builder; copying the os.environ[...] idiom into a Lambda whose builder does not set it raises KeyError at module import, so every request 500s on cold start and CDK synth, lint, and env-patching unit tests all pass. The API Gateway authorizer Lambda also receives COGNITO_AUTH_ENABLED — the authorizer resolves the user's MFA status and passes it to handlers as the vams:mfaEnabled authorizer context value, so handler Lambdas make no Cognito calls. The authorizer likewise resolves the caller's roles from the user roles table (60-second per-user cache) and passes them as vams:roles, so roles are present for every auth mode — Cognito, external OAuth IDP, and API keys — and a role change takes effect without re-issuing a token. The Cognito pre-token-generation triggers populate only vams:tokens and email. Domain-specific handlers receive additional env vars for their resources (e.g. SEND_EMAIL_FUNCTION_NAME for notification handlers).

DynamoDB Access Pattern

VAMS uses single-table design with composite keys. Common patterns:

  • PK: Entity type + ID (e.g., ASSET#uuid)
  • SK: Sort key for queries (e.g., VERSION#v1)
  • GSI: Global secondary indexes for cross-entity queries

S3 Bucket Organization

  • Asset buckets: One per database, auto-created, KMS encrypted
  • Auxiliary bucket: Staging, thumbnails, temp files
  • Web bucket: Built frontend static assets

🛡️ Security Considerations

  • S3 TLS enforced — bucket policy denies aws:SecureTransport=false
  • KMS encryption everywhere — DynamoDB, S3, SNS all use the shared KMS key
  • IAM least privilege — Lambda roles get only the permissions they need
  • CSP headers — dynamically generated from config
  • IP range restrictions — optional, via the custom authorizer
  • No secrets in code — use SSM parameters or Secrets Manager
  • CDK Nag enforcement — all stacks checked against AWS Solutions rules

🔄 Common Cross-Component Workflows

Adding a New Feature Switch

  1. Define constant in infra/common/vamsAppFeatures.ts
  2. Add config option in infra/config/config.ts ConfigPublic interface
  3. Add validation in getConfig()
  4. Push to enabledFeatures array in infra/lib/core-stack.ts
  5. Read in frontend from /api/secure-config response and gate UI with a feature check
  6. Mirror the new option into the ConfigBuilder component (documentation/docusaurus-site/src/components/ConfigBuilder/ — see its README.md for which files to touch: schema.ts, defaults.ts, validation.ts, derived.ts), then confirm infra/test/config/configBuilderSync.test.ts passes. The sync test covers only schema.ts fields and defaults.ts presets — it does not cover validation.ts or derived.ts, so when getConfig() validation logic changes you must hand-port the matching rule into validation.ts, and when getConfig() adds, changes, or removes an auto-mutation (an assignment that rewrites the operator's config, including any feature list that implies such a state) you must mirror that in derived.ts. Both rely on review, not the test, to stay in sync. A removed getConfig() auto-mutation left in derived.ts makes the builder keep rewriting the downloaded config.json.

Adding a New DynamoDB Table

  1. Create table in infra/lib/nestedStacks/storage/storageBuilder-nestedStack.ts and export via storageResources
  2. Add constant to ResourceKeys in backend/backend/common/resourceNames.py
  3. Add matching entry to RESOURCE_PARAM_KEYS.dynamoTables in infra/common/resourceParamKeys.ts
  4. Add matching constant to ResourceParamKeys in infra/deploymentDataMigration/tools/ssm_resource_lookup.py (migration scripts resolve names from these SSM parameters)
  5. Register descriptor in resourceNameRegistry in storageBuilder-nestedStack.ts
  6. Grant permissions (grantReadData, grantReadWriteData) in the lambda builder
  7. Resolve table name using get_table_name(ResourceKeys.*) at module level in the handler

The same three-way constants update applies to new audit CloudWatch log groups. Deprecated tables retained for migration move to RESOURCE_PARAM_KEYS.dynamoTablesLegacy (published under dynamoTables/legacy/).

Adding a New Viewer Plugin

  1. Create viewer component in web/src/components/viewers/ and register in the viewer factory/registry
  2. Add the file extension mapping
  3. Add any required npm dependencies to web/package.json
  4. If the viewer needs unsafe-eval, check allowUnsafeEvalFeatures config

Adding a New Processing Pipeline

See backendPipelines/CLAUDE.md "Adding a New Processing Pipeline" for the authoritative checklist, S3 output-path conventions, and assetId threading pattern; infra/lib/nestedStacks/pipelines/CLAUDE.md "Pipeline Nested Stack Pattern" covers the CDK side. In summary: create backendPipelines/{useCase}/lambda/ (with the required customLogging/ package) and optional container/, author the vamsSchema/ bundle, add a CDK nested stack under infra/lib/nestedStacks/pipelines/, wire config into config.ts, register in the pipeline builder, add a feature switch if optional, and — for Batch/ECS/Fargate pipelines — add the flag to all three condition blocks in infra/lib/nestedStacks/vpc/vpcBuilder-nestedStack.ts. Pass through all output paths in vamsExecute, use the correct output path in constructPipeline, preserve relative paths in container output, register the step's sub-process and log sources on the orchestration bus (the pipeline.execution.register event with stage-aware log entries; a Batch pipeline's lambda gets its log-group env from infra/lib/helper/batchJobLogGroup.ts), update documentation/docusaurus-site/docs/deployment/configuration-reference.md and the license entries in NOTICE.md + documentation/docusaurus-site/docs/additional/notices.md, and add the pipeline to this document's pipeline list and directory tree (Rule 11).


📝 Conventions

Naming Conventions

ContextConventionExample
Backend handler filecamelCaseassetService.py, createAsset.py
Backend handler functionlambda_handlerAlways lambda_handler as entry point
Pydantic model filecamelCaseassetsV3.py, roleConstraints.py
CDK lambda builderbuild{Name}FunctionbuildCreateAssetFunction()
CDK nested stack class{Name}NestedStackApiBuilderNestedStack
CLI command groupkebab-case (Click)vamscli role-constraint list
Frontend componentPascalCaseAssetViewer.tsx, DatabaseList.tsx
Frontend servicePascalCaseAPIService.ts
DynamoDB table env varUPPER_SNAKE_CASEASSET_STORAGE_TABLE_NAME

Import Patterns

# ✅ CORRECT - Backend imports
from backend.common.validators import validate_input
from backend.models.assetsV3 import AssetRequest
from backend.handlers.auth.casbinEnforcer import CasbinEnforcer
// ✅ CORRECT - CDK imports
import * as Config from "../../config/config";
import { storageResources } from "../nestedStacks/storage/storageBuilder-nestedStack";
import { kmsKeyLambdaPermissionAddToResourcePolicy } from "../helper/security";

Error Response Format (Backend)

All backend handlers must return API Gateway-compatible responses:

return {
    "statusCode": 200,
    "headers": {
        "Content-Type": "application/json",
        "Access-Control-Allow-Origin": "*",
    },
    "body": json.dumps({"message": "Success", "data": result}),
}

Comment & Documentation Style (Match Surrounding Code)

Comments and documentation must be commensurate with the surrounding material — match the detail, density, and tone of the file you are editing.

  • Code comments: Match the comment density and style already present. CDK stacks, for example, use brief single-line // notes and short /** ... */ section headers. Describe what a piece of code is, not why it was added.
  • No changelog/process narration in code: Never reference "upgrades", "new in vX", "added for", migrations, or the change request that prompted the edit. Comments should read as if the code had always been there — changelog narration belongs in CHANGELOG.md.
  • Documentation prose: Match the concise, descriptive AWS-doc style of the page being edited (see documentation/CLAUDE.md). Describe how the system behaves. Do not introduce "requirement"/"must" checklists where the surrounding page uses descriptive prose, and do not reference "upgrades" unless the page is an upgrade/migration guide.

🚫 Anti-Patterns to Avoid

  1. Hardcoding AWS partition strings (arn:aws:...) -- use service-helper.ts
  2. Importing Pydantic v2 APIs (model_validator, ConfigDict) -- use v1
  3. Skipping Tier 2 auth checks in backend handlers -- both tiers required
  4. Using BrowserRouter in frontend -- must use HashRouter
  5. Hardcoding DynamoDB table names -- always resolve via common.resourceNames
  6. Creating Lambda without CDK Nag suppression review -- all resources must pass checks
  7. Adding API routes without corresponding handler -- causes 500 errors
  8. Deploying features without feature switches -- breaks conditional deployment
  9. Using HttpUserPoolAuthorizer -- must use custom Lambda authorizer
  10. Skipping config validation in getConfig() -- leads to silent deployment failures
  11. Over-documenting or narrating changes in comments -- match surrounding comment density; never reference "upgrades", "new in vX", or the prompting change request in source comments (see Comment & Documentation Style)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.