:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(skills): cap skill descriptions at the 1024 spec limit (#90676)
posthog[bot]ddaa55d9e856
diff --git a/products/replay_vision/frontend/generated/api.schemas.ts b/products/replay_vision/frontend/generated/api.schemas.tsindex d1cc84b007fb..45ac476247f2 100644--- a/products/replay_vision/frontend/generated/api.schemas.ts+++ b/products/replay_vision/frontend/generated/api.schemas.ts@@ -2193,7 +2193,7 @@ export interface ScannerScoutCreateApi {name: string/*** Short description of the signal or behavior this scout investigates.- * @maxLength 4096+ * @maxLength 1024*/description: string/** Complete markdown prompt executed on every scout run. Include any project-specific signal names, thresholds, investigation steps, and report criteria here. */diff --git a/products/replay_vision/frontend/generated/api.zod.ts b/products/replay_vision/frontend/generated/api.zod.tsindex 56e2e8135958..b5ba8ec64319 100644--- a/products/replay_vision/frontend/generated/api.zod.ts+++ b/products/replay_vision/frontend/generated/api.zod.ts@@ -1287,7 +1287,7 @@ export const VisionScannersPromptSuggestionsEvaluateCreateBody = /* @__PURE__ */*/export const visionScannersScoutsCreateBodyNameMax = 64-export const visionScannersScoutsCreateBodyDescriptionMax = 4096+export const visionScannersScoutsCreateBodyDescriptionMax = 1024export const visionScannersScoutsCreateBodyConfigOneRunIntervalMinutesMin = 30export const visionScannersScoutsCreateBodyConfigOneRunIntervalMinutesMax = 43200diff --git a/products/signals/backend/scout_harness/serializers.py b/products/signals/backend/scout_harness/serializers.pyindex 18621a4b9a34..73fdaf0aecf4 100644--- a/products/signals/backend/scout_harness/serializers.py+++ b/products/signals/backend/scout_harness/serializers.py@@ -63,6 +63,7 @@ from products.signals.backend.scout_harness.tools.structured_output import (from products.signals.backend.serializers import ReportChartSerializerfrom products.skills.backend.api.skill_serializers import (MAX_SKILL_FILE_COUNT,+ SPEC_DESCRIPTION_MAX_LENGTH,LLMSkillFileInputSerializer,validate_skill_body_size,validate_skill_name_value,@@ -2838,7 +2839,7 @@ class SignalScoutCreateSerializer(serializers.Serializer):),)description = serializers.CharField(- max_length=4096,+ max_length=SPEC_DESCRIPTION_MAX_LENGTH,help_text="Short description of the signal or behavior this scout investigates.",)body = serializers.CharField(diff --git a/products/signals/backend/test/test_scout_create_api.py b/products/signals/backend/test/test_scout_create_api.pyindex 78c8e2876897..b4cc9e97154c 100644--- a/products/signals/backend/test/test_scout_create_api.py+++ b/products/signals/backend/test/test_scout_create_api.py@@ -1,6 +1,8 @@from posthog.test.base import APIBaseTestfrom unittest.mock import patch+from django.test import SimpleTestCase+from parameterized import parameterizedfrom rest_framework import status@@ -11,6 +13,8 @@ from posthog.models.team.team import Teamfrom posthog.models.utils import generate_random_token_personal, hash_key_valuefrom products.signals.backend.models import SignalScoutConfig+from products.signals.backend.scout_harness.serializers import SignalScoutCreateSerializer+from products.skills.backend.api.skill_serializers import SPEC_DESCRIPTION_MAX_LENGTHfrom products.skills.backend.models.skills import LLMSkill, LLMSkillFile@@ -226,3 +230,25 @@ class TestSignalScoutCreateAPI(APIBaseTest):user_access_control.assert_called_once_with(user=self.user, team=self.team)assert response.status_code == status.HTTP_403_FORBIDDENassert not LLMSkill.objects.filter(team=self.team, name=self._payload()["name"], deleted=False).exists()+++class TestSignalScoutCreateSerializerValidation(SimpleTestCase):+ @parameterized.expand(+ [+ ("over the spec cap is rejected", SPEC_DESCRIPTION_MAX_LENGTH + 1, False),+ ("at the spec cap is accepted", SPEC_DESCRIPTION_MAX_LENGTH, True),+ ]+ )+ def test_description_capped_at_spec_limit(self, _name: str, length: int, expected_valid: bool) -> None:+ # A scout is an LLMSkill, so its description must clear the same spec cap the store enforces,+ # or the scout later fails export and community publish.+ serializer = SignalScoutCreateSerializer(+ data={+ "name": "signals-scout-checkout-failures",+ "description": "x" * length,+ "body": "# Body",+ }+ )+ assert serializer.is_valid() is expected_valid+ if not expected_valid:+ assert serializer.errors["description"][0].code == "max_length"diff --git a/products/signals/frontend/generated/api.schemas.ts b/products/signals/frontend/generated/api.schemas.tsindex 076382746f62..817371bece79 100644--- a/products/signals/frontend/generated/api.schemas.ts+++ b/products/signals/frontend/generated/api.schemas.ts@@ -1942,7 +1942,7 @@ export interface SignalScoutCreateApi {name: string/*** Short description of the signal or behavior this scout investigates.- * @maxLength 4096+ * @maxLength 1024*/description: string/** Complete markdown prompt executed on every scout run. Include any project-specific signal names, thresholds, investigation steps, and report criteria here. */diff --git a/products/signals/frontend/generated/api.zod.ts b/products/signals/frontend/generated/api.zod.tsindex 674079757345..53f6a1a4a9fc 100644--- a/products/signals/frontend/generated/api.zod.ts+++ b/products/signals/frontend/generated/api.zod.ts@@ -324,7 +324,7 @@ export const SignalsReportsBulkStateCreateBody = /* @__PURE__ */ zod.object({*/export const signalsScoutCreateBodyNameMax = 64-export const signalsScoutCreateBodyDescriptionMax = 4096+export const signalsScoutCreateBodyDescriptionMax = 1024export const signalsScoutCreateBodyFilesItemPathMax = 500diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutCreateModal.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutCreateModal.tsxindex a62f31b880f0..5376b04599fe 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutCreateModal.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutCreateModal.tsx@@ -17,7 +17,7 @@ import { LemonField } from 'lib/lemon-ui/LemonField'import { teamLogic } from 'scenes/teamLogic'import type { SignalScoutCreateResponseApi } from 'products/signals/frontend/generated/api.schemas'-import { SKILL_NAME_MAX_LENGTH } from 'products/skills/frontend/skillConstants'+import { SKILL_DESCRIPTION_MAX_LENGTH, SKILL_NAME_MAX_LENGTH } from 'products/skills/frontend/skillConstants'import {ScoutCreateInitialValues,@@ -167,7 +167,7 @@ export function ScoutCreateModal({ isOpen, onClose, initialValues, onCreated }:<LemonTextAreaminRows={2}maxRows={4}- maxLength={4096}+ maxLength={SKILL_DESCRIPTION_MAX_LENGTH}placeholder="Investigates recurring checkout failures and reports meaningful changes."data-attr="scout-create-description"/>diff --git a/products/skills/backend/api/community_publish_services.py b/products/skills/backend/api/community_publish_services.pyindex 2d49cacc7d8c..ee5b93fd131a 100644--- a/products/skills/backend/api/community_publish_services.py+++ b/products/skills/backend/api/community_publish_services.py@@ -192,9 +192,10 @@ def render_skill_md(raise CommunitySkillPublishValidationError("Skill name must be one line, with no line breaks.")if not description.strip():raise CommunitySkillPublishValidationError("Skill description is required to publish.")- # LLMSkill.description holds 4096, and the Agent Skills spec stops at 1024. A longer one- # publishes, syncs and installs, and then validate_for_export refuses the installed skill, so the- # publisher hands someone a skill they can never export.+ # The LLMSkill.description column holds 4096, and the Agent Skills spec stops at 1024. New writes+ # cap at 1024, but a legacy row can still exceed it. A longer one publishes, syncs and installs,+ # and then validate_for_export refuses the installed skill, so the publisher hands someone a skill+ # they can never export.if len(description.strip()) > SPEC_DESCRIPTION_MAX_LENGTH:raise CommunitySkillPublishValidationError(f"Skill description must be {SPEC_DESCRIPTION_MAX_LENGTH} characters or fewer to publish."diff --git a/products/skills/backend/api/community_skill_services.py b/products/skills/backend/api/community_skill_services.pyindex ce04e3ce270e..13ab43d129af 100644--- a/products/skills/backend/api/community_skill_services.py+++ b/products/skills/backend/api/community_skill_services.py@@ -7,6 +7,7 @@ from rest_framework.serializers import ValidationError as DRFValidationErrorfrom posthog.models import Team, User+from ..marketplace.packaging import SPEC_DESCRIPTION_MAX_LENGTHfrom ..models.community_skills import CommunitySkill, CommunitySkillVotefrom ..models.skills import LLMSkillfrom .skill_serializers import validate_allowed_tool, validate_skill_file_path, validate_skill_name_value@@ -39,8 +40,8 @@ class CommunitySkillNotFoundError(Exception):class CommunitySkillInvalidPayloadError(Exception):"""The synced catalog entry can't be safely copied into a team — a traversal/reserved file path,- oversized file content, a whitespace-bearing tool name, an empty body, or a reserved privileged- namespace. Surfaced as a 400 rather than persisting a malformed team skill."""+ oversized content, a whitespace-bearing tool name, an empty body, or a reserved privileged namespace.+ Surfaced as a 400 rather than persisting a malformed team skill."""def __init__(self, detail: str) -> None:self.detail = detail@@ -133,6 +134,11 @@ def install_community_skill(# fail export validation, so reject it here rather than persisting an un-exportable skill.if not (locked.description or "").strip():raise CommunitySkillInvalidPayloadError("This community skill has no description and can't be installed.")+ if len(locked.description) > SPEC_DESCRIPTION_MAX_LENGTH:+ raise CommunitySkillInvalidPayloadError(+ f"This community skill has a description longer than {SPEC_DESCRIPTION_MAX_LENGTH} characters. "+ "Ask its publisher to shorten it before installing."+ )files = _validate_installable_files(locked)body = locked.bodydiff --git a/products/skills/backend/api/community_skill_sync.py b/products/skills/backend/api/community_skill_sync.pyindex 9f2adb63a7dd..63bd626b14d2 100644--- a/products/skills/backend/api/community_skill_sync.py+++ b/products/skills/backend/api/community_skill_sync.py@@ -10,6 +10,7 @@ from rest_framework.serializers import ValidationError as DRFValidationErrorfrom posthog.egress.github.transport import github_request+from ..marketplace.packaging import SPEC_DESCRIPTION_MAX_LENGTHfrom ..models.community_skills import CommunitySkill, CommunitySkillFile, CommunitySkillTrustTierfrom .skill_serializers import validate_skill_file_pathfrom .skill_services import (@@ -139,7 +140,7 @@ def _validate_entry_within_caps(entry: dict[str, Any]) -> None:for field in _CHECKED_CHAR_FIELDS:value = _text(entry, field, f"'{field}'")- max_length = _field_max_length(CommunitySkill, field)+ max_length = SPEC_DESCRIPTION_MAX_LENGTH if field == "description" else _field_max_length(CommunitySkill, field)if max_length is not None and len(value) > max_length:raise ValueError(f"'{field}' exceeds the {max_length} character limit")diff --git a/products/skills/backend/api/skill_serializers.py b/products/skills/backend/api/skill_serializers.pyindex e55037789b98..96290c866d55 100644--- a/products/skills/backend/api/skill_serializers.py+++ b/products/skills/backend/api/skill_serializers.py@@ -9,7 +9,7 @@ from posthog.api.shared import UserBasicSerializerfrom products.ai_observability.backend.markdown_outline import get_markdown_outline-from ..marketplace.packaging import DEFAULT_BUNDLE_SKILLS, MAX_BUNDLE_SKILLS+from ..marketplace.packaging import DEFAULT_BUNDLE_SKILLS, MAX_BUNDLE_SKILLS, SPEC_DESCRIPTION_MAX_LENGTHfrom ..models.skills import LLMSkill, LLMSkillFile, category_for_skill_namefrom .community_publish_services import (DISPLAY_NAME_PATTERN,@@ -326,7 +326,7 @@ class LLMSkillPublishSerializer(serializers.Serializer):),)description = serializers.CharField(- max_length=4096,+ max_length=SPEC_DESCRIPTION_MAX_LENGTH,required=False,help_text="Updated description for the new version.",)@@ -526,7 +526,13 @@ class LLMSkillSerializer(serializers.ModelSerializer):"name": {"help_text": "Unique skill name. Lowercase letters, numbers, and hyphens only. Max 64 characters."},- "description": {"help_text": "What this skill does and when to use it. Max 4096 characters."},+ # No max_length here: this base serves read responses, and legacy rows can hold up to the+ # 4096 column limit, above the 1024 spec cap. Deriving max_length from the model keeps the+ # read schema honest about what the server returns. The 1024 write cap lives on the write+ # serializers (LLMSkillCreateSerializer and LLMSkillPublishSerializer).+ "description": {+ "help_text": "What this skill does and when to use it.",+ },"body": {"help_text": "The SKILL.md instruction content (markdown)."},"license": {"help_text": "License name or reference to a bundled license file."},"compatibility": {@@ -637,6 +643,12 @@ class LLMSkillSerializer(serializers.ModelSerializer):class LLMSkillCreateSerializer(LLMSkillSerializer):"""Create serializer — accepts bundled files and owners as write-only input on POST."""+ # The write cap the base intentionally omits: new descriptions must clear the 1024 spec limit+ # that community publish and export enforce.+ description = serializers.CharField(+ max_length=SPEC_DESCRIPTION_MAX_LENGTH,+ help_text="What this skill does and when to use it. Max 1024 characters.",+ )files = LLMSkillFileInputSerializer( # type: ignore[assignment]many=True,required=False,diff --git a/products/skills/backend/api/skill_services.py b/products/skills/backend/api/skill_services.pyindex add4dfa1db20..a9a8ad1aa996 100644--- a/products/skills/backend/api/skill_services.py+++ b/products/skills/backend/api/skill_services.py@@ -6,8 +6,10 @@ from django.db import IntegrityError, transactionfrom django.db.models import QuerySetfrom django.utils import timezone+from posthog.dataclasses import frozenfrom posthog.models import Team, User+from ..marketplace.packaging import SPEC_DESCRIPTION_MAX_LENGTHfrom ..models.skills import (LLMSkill,LLMSkillFile,@@ -113,6 +115,11 @@ class LLMSkillDuplicateNameConflictError(Exception):pass+@frozen+class LLMSkillDescriptionTooLongError(Exception):+ max_length: int++@dataclassclass LLMSkillOwnerNotFoundError(Exception):"""A user_uuid passed as an owner is not a member of the team (has no access)."""@@ -299,6 +306,10 @@ def publish_skill_version(if current_latest.version >= MAX_SKILL_VERSION:raise LLMSkillVersionLimitError(max_version=MAX_SKILL_VERSION)+ resolved_description = description if description is not None else current_latest.description+ if len(resolved_description) > SPEC_DESCRIPTION_MAX_LENGTH:+ raise LLMSkillDescriptionTooLongError(max_length=SPEC_DESCRIPTION_MAX_LENGTH)+if edits is not None:resolved_body = apply_skill_body_edits(current_latest.body, edits)else:@@ -312,7 +323,7 @@ def publish_skill_version(published_skill = LLMSkill.objects.create(team=team,name=current_latest.name,- description=_carry_forward(description, current_latest.description),+ description=resolved_description,body=resolved_body,license=_carry_forward(license, current_latest.license),compatibility=_carry_forward(compatibility, current_latest.compatibility),@@ -402,6 +413,9 @@ def create_skill(metadata: dict[str, Any] | None = None,files: list[dict[str, str]] | None = None,) -> LLMSkill:+ if len(description) > SPEC_DESCRIPTION_MAX_LENGTH:+ raise LLMSkillDescriptionTooLongError(max_length=SPEC_DESCRIPTION_MAX_LENGTH)+if files and len(files) > MAX_SKILL_FILE_COUNT:raise LLMSkillFileLimitError(max_count=MAX_SKILL_FILE_COUNT)@@ -488,6 +502,8 @@ def duplicate_skill(if LLMSkill.objects.filter(team=team, name=new_name, deleted=False).exists():raise LLMSkillDuplicateNameConflictError()+ if len(source_latest.description) > SPEC_DESCRIPTION_MAX_LENGTH:+ raise LLMSkillDescriptionTooLongError(max_length=SPEC_DESCRIPTION_MAX_LENGTH)# A duplicate is a brand-new, user-authored skill under a new name, so it inherits nothing# from the source's provenance or classification: the harness seed marker is dropped, and@@ -555,6 +571,9 @@ def _create_next_version_with_files(current_latest: LLMSkill,next_files: list[LLMSkillFile],) -> LLMSkill:+ if len(current_latest.description) > SPEC_DESCRIPTION_MAX_LENGTH:+ raise LLMSkillDescriptionTooLongError(max_length=SPEC_DESCRIPTION_MAX_LENGTH)+LLMSkill.objects.filter(pk=current_latest.pk).update(is_latest=False)next_skill = LLMSkill.objects.create(team=team,diff --git a/products/skills/backend/api/skills.py b/products/skills/backend/api/skills.pyindex 5aede5264f8f..ae737b9652c7 100644--- a/products/skills/backend/api/skills.py+++ b/products/skills/backend/api/skills.py@@ -87,6 +87,7 @@ from .skill_serializers import (validate_skill_name_value,)from .skill_services import (+ LLMSkillDescriptionTooLongError,LLMSkillDuplicateNameConflictError,LLMSkillEditError,LLMSkillFileLimitError,@@ -427,6 +428,15 @@ class LLMSkillViewSet({"detail": f"Skill has reached the maximum of {err.max_count} files."},status=status.HTTP_400_BAD_REQUEST,)+ if isinstance(err, LLMSkillDescriptionTooLongError):+ return Response(+ {+ "detail": (+ f"Shorten the skill description to {err.max_length} characters before creating a new version."+ )+ },+ status=status.HTTP_400_BAD_REQUEST,+ )return Nonedef _is_scout_sandbox_caller(self) -> bool:@@ -680,6 +690,15 @@ class LLMSkillViewSet(},status=status.HTTP_400_BAD_REQUEST,)+ except LLMSkillDescriptionTooLongError as err:+ return Response(+ {+ "detail": (+ f"Shorten the skill description to {err.max_length} characters before creating a new version."+ )+ },+ status=status.HTTP_400_BAD_REQUEST,+ )except LLMSkillEditError as err:error_body: dict[str, Any] = {"detail": err.message}if err.edit_index is not None:@@ -1120,6 +1139,15 @@ class LLMSkillViewSet({"attr": "new_name", "detail": "A skill with this name already exists."},status=status.HTTP_400_BAD_REQUEST,)+ except LLMSkillDescriptionTooLongError as err:+ return Response(+ {+ "detail": (+ f"Shorten the source skill description to {err.max_length} characters before duplicating it."+ )+ },+ status=status.HTTP_400_BAD_REQUEST,+ )props = {**_skill_analytics_props(new_skill),@@ -1303,6 +1331,7 @@ class LLMSkillViewSet(LLMSkillVersionConflictError,LLMSkillVersionLimitError,LLMSkillFileLimitError,+ LLMSkillDescriptionTooLongError,) as err:response = self._handle_skill_write_error(err, skill_name)if response is None:@@ -1368,6 +1397,7 @@ class LLMSkillViewSet(LLMSkillVersionConflictError,LLMSkillVersionLimitError,LLMSkillFileLimitError,+ LLMSkillDescriptionTooLongError,) as err:response = self._handle_skill_write_error(err, skill_name)if response is None:@@ -1430,6 +1460,7 @@ class LLMSkillViewSet(LLMSkillVersionConflictError,LLMSkillVersionLimitError,LLMSkillFileLimitError,+ LLMSkillDescriptionTooLongError,) as err:response = self._handle_skill_write_error(err, skill_name)if response is None:diff --git a/products/skills/backend/api/test/test_community_skill_sync.py b/products/skills/backend/api/test/test_community_skill_sync.pyindex 3db6c6462037..e548422b8a50 100644--- a/products/skills/backend/api/test/test_community_skill_sync.py+++ b/products/skills/backend/api/test/test_community_skill_sync.py@@ -2,11 +2,13 @@ from posthog.test.base import APIBaseTestfrom unittest.mock import patchfrom django.db import OperationalError+from django.test import SimpleTestCasefrom parameterized import parameterized+from ...marketplace.packaging import SPEC_DESCRIPTION_MAX_LENGTHfrom ...models.community_skills import CommunitySkill-from ..community_skill_sync import sync_community_skills_from_github+from ..community_skill_sync import _validate_entry_within_caps, sync_community_skills_from_githubfrom ..skill_services import MAX_SKILL_BODY_BYTES@@ -30,6 +32,22 @@ def _create_community_skill()+class TestCommunitySkillSyncValidation(SimpleTestCase):+ def test_description_uses_spec_limit_instead_of_storage_limit(self) -> None:+ entry = {+ "slug": "boundary-skill",+ "name": "Boundary skill",+ "description": "x" * SPEC_DESCRIPTION_MAX_LENGTH,+ "body": "# Boundary",+ }++ _validate_entry_within_caps(entry)++ entry["description"] += "x"+ with self.assertRaisesRegex(ValueError, f"exceeds the {SPEC_DESCRIPTION_MAX_LENGTH} character limit"):+ _validate_entry_within_caps(entry)++class TestCommunitySkillSync(APIBaseTest):@patch("products.skills.backend.api.community_skill_sync.github_request")def test_sync_upserts_and_soft_deletes_missing(self, mock_get) -> None:@@ -147,6 +165,7 @@ class TestCommunitySkillSync(APIBaseTest):[("overlong_name", {"name": "n" * 65}),("overlong_slug", {"slug": "s" * 65}),+ ("overlong_description", {"description": "d" * (SPEC_DESCRIPTION_MAX_LENGTH + 1)}),("overlong_source_sha", {"source_sha": "s" * 65}),("overlong_file_path", {"files": [{"path": "p" * 501, "content": "x"}]}),("overlong_content_type", {"files": [{"path": "a.md", "content": "x", "content_type": "t" * 101}]}),diff --git a/products/skills/backend/api/test/test_community_skills.py b/products/skills/backend/api/test/test_community_skills.pyindex 7a1dcb8bccc1..cbecb695fdbe 100644--- a/products/skills/backend/api/test/test_community_skills.py+++ b/products/skills/backend/api/test/test_community_skills.py@@ -13,6 +13,7 @@ from posthog.models.user import Userfrom products.access_control.backend.models.access_control import AccessControl+from ...marketplace.packaging import SPEC_DESCRIPTION_MAX_LENGTHfrom ...models.community_skills import CommunitySkill, CommunitySkillFile, CommunitySkillVotefrom ...models.skills import LLMSkillfrom ..skill_template_services import (@@ -205,6 +206,29 @@ class TestCommunitySkillAPI(APIBaseTest):self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)self.assertFalse(LLMSkill.objects.filter(team=self.team).exists())+ def test_install_accepts_description_at_spec_limit(self, _mock_flag) -> None:+ skill = _create_community_skill(slug="web-analytics-triage")+ CommunitySkill.objects.filter(pk=skill.pk).update(description="x" * SPEC_DESCRIPTION_MAX_LENGTH)++ response = self.client.post(self._url("web-analytics-triage/install/"), {})++ self.assertEqual(response.status_code, status.HTTP_201_CREATED, response.content)+ self.assertTrue(LLMSkill.objects.filter(team=self.team).exists())++ def test_install_rejects_description_over_spec_limit(self, _mock_flag) -> None:+ skill = _create_community_skill(slug="web-analytics-triage")+ CommunitySkill.objects.filter(pk=skill.pk).update(description="x" * (SPEC_DESCRIPTION_MAX_LENGTH + 1))++ response = self.client.post(self._url("web-analytics-triage/install/"), {})++ self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)+ self.assertEqual(+ response.json()["detail"],+ f"This community skill has a description longer than {SPEC_DESCRIPTION_MAX_LENGTH} characters. "+ "Ask its publisher to shorten it before installing.",+ )+ self.assertFalse(LLMSkill.objects.filter(team=self.team).exists())+def test_install_unknown_slug_returns_404(self, _mock_flag) -> None:response = self.client.post(self._url("does-not-exist/install/"), {})self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)diff --git a/products/skills/backend/api/test/test_skills.py b/products/skills/backend/api/test/test_skills.pyindex 99cba5721bf9..f71af664c9ff 100644--- a/products/skills/backend/api/test/test_skills.py+++ b/products/skills/backend/api/test/test_skills.py@@ -4,9 +4,10 @@ from posthog.test.base import APIBaseTestfrom unittest.mock import patchfrom django.core.cache import cache+from django.test import SimpleTestCasefrom parameterized import parameterized-from rest_framework import status+from rest_framework import serializers, statusfrom posthog.constants import AvailableFeaturefrom posthog.models import Team, User@@ -19,7 +20,12 @@ from ...api.community_publish_services import (CommunitySkillPublishNotConfiguredError,CommunitySkillPublishValidationError,)-from ...api.skill_serializers import DEFAULT_BODY_PAGE_LENGTH+from ...api.skill_serializers import (+ DEFAULT_BODY_PAGE_LENGTH,+ LLMSkillCreateSerializer,+ LLMSkillListSerializer,+ LLMSkillSerializer,+)from ...api.skill_services import (MAX_SKILL_FILE_COUNT,archive_skill,@@ -28,6 +34,7 @@ from ...api.skill_services import (resolve_skill_owners,set_skill_owners,)+from ...marketplace.packaging import SPEC_DESCRIPTION_MAX_LENGTHfrom ...models.skills import LLMSkill, LLMSkillFileCOMMUNITY_FLAG = "products.skills.backend.api.community_skills.posthoganalytics.feature_enabled"@@ -193,6 +200,22 @@ class TestLLMSkillAPI(APIBaseTest):assert response.status_code == status.HTTP_400_BAD_REQUEST+ def test_create_skill_caps_description_at_spec_limit(self):+ # Writes cap at the Agent Skills spec limit so a skill cannot grow past what publish and export accept.+ over = self.client.post(+ self._url(),+ data={"name": "too-long", "description": "x" * (SPEC_DESCRIPTION_MAX_LENGTH + 1), "body": "# Body"},+ format="json",+ )+ assert over.status_code == status.HTTP_400_BAD_REQUEST++ at_limit = self.client.post(+ self._url(),+ data={"name": "at-limit", "description": "x" * SPEC_DESCRIPTION_MAX_LENGTH, "body": "# Body"},+ format="json",+ )+ assert at_limit.status_code == status.HTTP_201_CREATED+def test_create_skill_with_files(self):response = self.client.post(self._url(),@@ -543,6 +566,27 @@ class TestLLMSkillAPI(APIBaseTest):assert response.status_code == status.HTTP_200_OKassert response.json()["description"] == "New desc."+ def test_publish_rejects_legacy_description_carried_into_new_version(self):+ skill = self.create_skill(+ name="legacy-description",+ description="x" * (SPEC_DESCRIPTION_MAX_LENGTH + 1),+ body="# V1",+ )++ response = self.client.patch(+ self._url("name/legacy-description"),+ data={"body": "# V2", "base_version": 1},+ format="json",+ )++ assert response.status_code == status.HTTP_400_BAD_REQUEST+ assert response.json()["detail"] == (+ f"Shorten the skill description to {SPEC_DESCRIPTION_MAX_LENGTH} characters before creating a new version."+ )+ skill.refresh_from_db()+ assert skill.is_latest is True+ assert not LLMSkill.objects.filter(name="legacy-description", version=2).exists()+def test_publish_with_version_conflict_fails(self):self.create_skill(name="conflict-skill", body="# V1")self.client.patch(@@ -910,6 +954,24 @@ class TestLLMSkillAPI(APIBaseTest):copy_skill = LLMSkill.objects.get(name="the-copy", deleted=False)assert LLMSkillFile.objects.filter(skill=copy_skill).count() == 1+ def test_duplicate_rejects_legacy_description_over_spec_limit(self):+ self.create_skill(+ name="legacy-description",+ description="x" * (SPEC_DESCRIPTION_MAX_LENGTH + 1),+ )++ response = self.client.post(+ self._url("name/legacy-description/duplicate"),+ data={"new_name": "legacy-copy"},+ format="json",+ )++ assert response.status_code == status.HTTP_400_BAD_REQUEST+ assert response.json()["detail"] == (+ f"Shorten the source skill description to {SPEC_DESCRIPTION_MAX_LENGTH} characters before duplicating it."+ )+ assert not LLMSkill.objects.filter(name="legacy-copy").exists()+@parameterized.expand([("plain-name-copy", "", ""),@@ -988,6 +1050,26 @@ class TestLLMSkillAPI(APIBaseTest):stored = LLMSkillFile.objects.get(skill__name="crud-create", skill__is_latest=True, path="scripts/setup.sh")assert stored.content == "#!/bin/bash\necho hi"+ def test_create_file_rejects_legacy_description_carried_into_new_version(self):+ skill = self.create_skill(+ name="legacy-description-file",+ description="x" * (SPEC_DESCRIPTION_MAX_LENGTH + 1),+ )++ response = self.client.post(+ self._url("name/legacy-description-file/files"),+ data={"path": "references/new.md", "content": "new"},+ format="json",+ )++ assert response.status_code == status.HTTP_400_BAD_REQUEST+ assert response.json()["detail"] == (+ f"Shorten the skill description to {SPEC_DESCRIPTION_MAX_LENGTH} characters before creating a new version."+ )+ skill.refresh_from_db()+ assert skill.is_latest is True+ assert not LLMSkill.objects.filter(name="legacy-description-file", version=2).exists()+def test_create_file_carries_existing_files_forward(self):skill = self.create_skill(name="crud-carry")LLMSkillFile.objects.create(skill=skill, path="references/a.md", content="A")@@ -1800,3 +1882,19 @@ class TestLLMSkillOwners(APIBaseTest):assert [o.email for o in resolve_skill_owners(env_a, "shared-name")] == [alice.email]assert [o.email for o in resolve_skill_owners(env_b, "shared-name")] == [bob.email]+++class TestLLMSkillDescriptionCapSplit(SimpleTestCase):+ def test_write_serializers_cap_at_spec_limit_while_reads_reflect_storage(self) -> None:+ # The 1024 spec cap gates writes only. Reads expose the 4096 column limit so legacy rows above+ # the cap serialize out; a read schema capped at 1024 would misdescribe those rows.+ create_description = LLMSkillCreateSerializer().fields["description"]+ detail_description = LLMSkillSerializer().fields["description"]+ list_description = LLMSkillListSerializer().fields["description"]++ assert isinstance(create_description, serializers.CharField)+ assert isinstance(detail_description, serializers.CharField)+ assert isinstance(list_description, serializers.CharField)+ assert create_description.max_length == SPEC_DESCRIPTION_MAX_LENGTH+ assert detail_description.max_length == 4096+ assert list_description.max_length == 4096diff --git a/products/skills/backend/marketplace/packaging.py b/products/skills/backend/marketplace/packaging.pyindex 90ba18d647e8..eeccc4a1b127 100644--- a/products/skills/backend/marketplace/packaging.py+++ b/products/skills/backend/marketplace/packaging.py@@ -23,8 +23,9 @@ import yamlfrom .git_smart_http import FileTree-# Spec caps (https://agentskills.io/specification). Description is 1024 in the spec-# but stored at 4096 today — export validates rather than silently truncating.+# Spec caps (https://agentskills.io/specification). New writes cap description at 1024, but the+# DB column holds 4096, so legacy rows can still exceed the spec — export validates rather than+# silently truncating.SPEC_DESCRIPTION_MAX_LENGTH = 1024# A skill bundle is unpacked into a harness's skill directory, and every skill in it costs promptdiff --git a/products/skills/backend/models/skills.py b/products/skills/backend/models/skills.pyindex 3bc629aa4487..f5e7d94c498d 100644--- a/products/skills/backend/models/skills.py+++ b/products/skills/backend/models/skills.py@@ -39,6 +39,7 @@ class LLMSkill(UUIDModel):# Required by Agent Skills spec (https://agentskills.io/specification)name = models.CharField(max_length=64)+ # Column holds 4096 to keep legacy rows valid; new writes cap at 1024 (the spec limit) in the serializer.description = models.CharField(max_length=4096)# The SKILL.md body content (markdown instructions)diff --git a/products/skills/backend/tools/skills.py b/products/skills/backend/tools/skills.pyindex 30fee6a36fcd..44775dd4a3f8 100644--- a/products/skills/backend/tools/skills.py+++ b/products/skills/backend/tools/skills.py@@ -11,8 +11,9 @@ from posthog.scopes import APIScopeObjectfrom posthog.sync import database_sync_to_asyncfrom products.access_control.backend.facade.user_access_control import AccessControlLevel-from products.skills.backend.api.skill_serializers import RESERVED_SKILL_NAMES+from products.skills.backend.api.skill_serializers import RESERVED_SKILL_NAMES, SPEC_DESCRIPTION_MAX_LENGTHfrom products.skills.backend.api.skill_services import (+ LLMSkillDescriptionTooLongError,LLMSkillDuplicateNameConflictError,LLMSkillEditError,LLMSkillFileLimitError,@@ -146,7 +147,8 @@ class GetSkillFileArgs(BaseModel):class CreateSkillArgs(BaseModel):name: str = Field(description="Kebab-case skill name. <=64 chars. Must be unique within the team.")description: str = Field(- description="Short summary explaining what the skill does and when agents should pick it. <=4096 chars.",+ max_length=SPEC_DESCRIPTION_MAX_LENGTH,+ description="Short summary explaining what the skill does and when agents should pick it. <=1024 chars.",)body: str = Field(description="SKILL.md instructions as markdown. Treated as system instructions when invoked.")license: str | None = Field(default=None, description="Optional license string (e.g. 'MIT').")@@ -184,7 +186,11 @@ class UpdateSkillArgs(BaseModel):"Each entry: {old, new}. 'old' must match exactly once. Mutually exclusive with 'body'."),)- description: str | None = Field(default=None, description="Optional new description.")+ description: str | None = Field(+ default=None,+ max_length=SPEC_DESCRIPTION_MAX_LENGTH,+ description="Optional new description. <=1024 chars.",+ )license: str | None = Field(default=None, description="Optional new license.")compatibility: str | None = Field(default=None, description="Optional new compatibility string.")allowed_tools: list[str] | None = Field(default=None, description="Optional replacement for allowed_tools.")@@ -254,6 +260,8 @@ def _publish_error_message(err: Exception, skill_name: str) -> str:)if isinstance(err, LLMSkillFileLimitError):return f"Skill '{skill_name}' has reached the maximum of {err.max_count} bundled files."+ if isinstance(err, LLMSkillDescriptionTooLongError):+ return f"Shorten the description for skill '{skill_name}' to {err.max_length} characters before creating a new version."if isinstance(err, LLMSkillEditError):detail = err.messageif err.edit_index is not None:@@ -413,6 +421,8 @@ class CreateLLMSkillTool(MaxTool):raise MaxToolFatalError("Duplicate file paths are not allowed in `files`.")except LLMSkillFileLimitError as err:raise MaxToolFatalError(f"Cannot attach more than {err.max_count} bundled files to a skill.")+ except LLMSkillDescriptionTooLongError as err:+ raise MaxToolFatalError(f"Shorten the skill description to {err.max_length} characters before creating it.")return (f"Created skill '{skill.name}' at v{skill.version}. It is now discoverable via `list_llm_skills`.",@@ -467,6 +477,7 @@ class UpdateLLMSkillTool(MaxTool):LLMSkillVersionConflictError,LLMSkillVersionLimitError,LLMSkillFileLimitError,+ LLMSkillDescriptionTooLongError,LLMSkillEditError,) as err:raise MaxToolFatalError(_publish_error_message(err, skill_name))diff --git a/products/skills/backend/tools/test_skills.py b/products/skills/backend/tools/test_skills.pyindex 893e7755b85b..ccb0e2c05e35 100644--- a/products/skills/backend/tools/test_skills.py+++ b/products/skills/backend/tools/test_skills.py@@ -1,17 +1,23 @@from posthog.test.base import BaseTest+from unittest import TestCasefrom asgiref.sync import async_to_sync+from parameterized import parameterized+from pydantic import ValidationErrorfrom posthog.models import Team+from products.skills.backend.api.skill_serializers import SPEC_DESCRIPTION_MAX_LENGTHfrom products.skills.backend.models.skills import LLMSkill, LLMSkillFilefrom products.skills.backend.tools.skills import (ArchiveLLMSkillTool,CreateLLMSkillTool,+ CreateSkillArgs,GetLLMSkillFileTool,GetLLMSkillTool,ListLLMSkillsTool,UpdateLLMSkillTool,+ UpdateSkillArgs,)from ee.hogai.tool_errors import MaxToolFatalError@@ -300,3 +306,20 @@ class TestArchiveLLMSkillTool(BaseTest):with self.assertRaisesRegex(MaxToolFatalError, "missing"):_run(tool, skill_name="missing")+++class TestSkillToolDescriptionCap(TestCase):+ def _create(self, description: str) -> CreateSkillArgs:+ return CreateSkillArgs(name="my-skill", description=description, body="# Body")++ def _update(self, description: str) -> UpdateSkillArgs:+ return UpdateSkillArgs(skill_name="my-skill", base_version=1, description=description)++ @parameterized.expand(["_create", "_update"])+ def test_description_capped_at_spec_limit(self, builder_name: str) -> None:+ # These tools call create_skill / publish_skill_version directly, so the args schema is the only+ # guard against persisting a description that export and community publish later reject.+ build = getattr(self, builder_name)+ with self.assertRaises(ValidationError):+ build("x" * (SPEC_DESCRIPTION_MAX_LENGTH + 1))+ build("x" * SPEC_DESCRIPTION_MAX_LENGTH)diff --git a/products/skills/frontend/generated/api.schemas.ts b/products/skills/frontend/generated/api.schemas.tsindex 4c849b23b2ea..57e87949bfc0 100644--- a/products/skills/frontend/generated/api.schemas.ts+++ b/products/skills/frontend/generated/api.schemas.ts@@ -260,7 +260,7 @@ export interface LLMSkillApi {*/name: string/**- * What this skill does and when to use it. Max 4096 characters.+ * What this skill does and when to use it.* @maxLength 4096*/description: string@@ -334,7 +334,7 @@ export interface LLMSkillListApi {*/name: string/**- * What this skill does and when to use it. Max 4096 characters.+ * What this skill does and when to use it.* @maxLength 4096*/description: string@@ -414,8 +414,8 @@ export interface LLMSkillCreateApi {*/name: string/**- * What this skill does and when to use it. Max 4096 characters.- * @maxLength 4096+ * What this skill does and when to use it. Max 1024 characters.+ * @maxLength 1024*/description: string/** Total length of the full body in characters, independent of any body_offset/body_length paging. Compare against the length of the returned body to detect a truncated response. */@@ -577,7 +577,7 @@ export interface PatchedLLMSkillPublishApi {edits?: LLMSkillEditOperationApi[]/*** Updated description for the new version.- * @maxLength 4096+ * @maxLength 1024*/description?: string/**diff --git a/products/skills/frontend/generated/api.zod.ts b/products/skills/frontend/generated/api.zod.tsindex a9efd19e8de6..2b2be9ac8293 100644--- a/products/skills/frontend/generated/api.zod.ts+++ b/products/skills/frontend/generated/api.zod.ts@@ -27,7 +27,7 @@ export const CommunitySkillsInstallCreateBody = /* @__PURE__ */ zod.object({export const llmSkillsCreateBodyNameMax = 64-export const llmSkillsCreateBodyDescriptionMax = 4096+export const llmSkillsCreateBodyDescriptionMax = 1024export const llmSkillsCreateBodyLicenseMax = 255@@ -49,7 +49,7 @@ export const LlmSkillsCreateBody = /* @__PURE__ */ zoddescription: zod.string().max(llmSkillsCreateBodyDescriptionMax)- .describe('What this skill does and when to use it. Max 4096 characters.'),+ .describe('What this skill does and when to use it. Max 1024 characters.'),body: zod.string().describe('The SKILL.md instruction content (markdown).'),license: zod.string()@@ -119,7 +119,7 @@ export const LlmSkillsMarketplaceInstallCommandCreateBody = /* @__PURE__ */ zod.),})-export const llmSkillsNamePartialUpdateBodyDescriptionMax = 4096+export const llmSkillsNamePartialUpdateBodyDescriptionMax = 1024export const llmSkillsNamePartialUpdateBodyLicenseMax = 255diff --git a/products/skills/frontend/skillConstants.ts b/products/skills/frontend/skillConstants.tsindex d44adc92797d..49c33300f003 100644--- a/products/skills/frontend/skillConstants.ts+++ b/products/skills/frontend/skillConstants.ts@@ -1,5 +1,8 @@export const SKILL_NAME_MAX_LENGTH = 64-export const SKILL_DESCRIPTION_MAX_LENGTH = 4096+// The Agent Skills spec (https://agentskills.io/specification) caps description at 1024. Writes+// use that cap so a skill cannot grow past what community publish and export accept. Kept in sync+// with the description serializer field and SPEC_DESCRIPTION_MAX_LENGTH in the backend.+export const SKILL_DESCRIPTION_MAX_LENGTH = 1024// Kept in sync with MAX_SKILL_FILE_BYTES and MAX_SKILL_FILE_COUNT in the backend skill_serializers.export const SKILL_FILE_MAX_BYTES = 1_000_000export const SKILL_FILE_MAX_COUNT = 200diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex c7eaba6cc60b..abbb9500a0a0 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -46619,7 +46619,7 @@ export namespace Schemas {*/name: string;/**- * What this skill does and when to use it. Max 4096 characters.+ * What this skill does and when to use it.* @maxLength 4096*/description: string;@@ -46701,8 +46701,8 @@ export namespace Schemas {*/name: string;/**- * What this skill does and when to use it. Max 4096 characters.- * @maxLength 4096+ * What this skill does and when to use it. Max 1024 characters.+ * @maxLength 1024*/description: string;/** Total length of the full body in characters, independent of any body_offset/body_length paging. Compare against the length of the returned body to detect a truncated response. */@@ -46847,7 +46847,7 @@ export namespace Schemas {*/name: string;/**- * What this skill does and when to use it. Max 4096 characters.+ * What this skill does and when to use it.* @maxLength 4096*/description: string;@@ -62893,7 +62893,7 @@ export namespace Schemas {edits?: LLMSkillEditOperation[];/*** Updated description for the new version.- * @maxLength 4096+ * @maxLength 1024*/description?: string;/**@@ -75468,7 +75468,7 @@ export namespace Schemas {name: string;/*** Short description of the signal or behavior this scout investigates.- * @maxLength 4096+ * @maxLength 1024*/description: string;/** Complete markdown prompt executed on every scout run. Include any project-specific signal names, thresholds, investigation steps, and report criteria here. */@@ -76619,7 +76619,7 @@ export namespace Schemas {name: string;/*** Short description of the signal or behavior this scout investigates.- * @maxLength 4096+ * @maxLength 1024*/description: string;/** Complete markdown prompt executed on every scout run. Include any project-specific signal names, thresholds, investigation steps, and report criteria here. */diff --git a/services/mcp/src/generated/signals/api.ts b/services/mcp/src/generated/signals/api.tsindex ab0ff8d9a9c0..760c2c3f1e9b 100644--- a/services/mcp/src/generated/signals/api.ts+++ b/services/mcp/src/generated/signals/api.ts@@ -418,7 +418,7 @@ export const SignalsScoutCreateParams = /* @__PURE__ */ zod.object({export const signalsScoutCreateBodyNameMax = 64-export const signalsScoutCreateBodyDescriptionMax = 4096+export const signalsScoutCreateBodyDescriptionMax = 1024export const signalsScoutCreateBodyFilesItemPathMax = 500diff --git a/services/mcp/src/generated/skills/api.ts b/services/mcp/src/generated/skills/api.tsindex 5edebcd0e3ab..7b971a38c9a9 100644--- a/services/mcp/src/generated/skills/api.ts+++ b/services/mcp/src/generated/skills/api.ts@@ -45,7 +45,7 @@ export const LlmSkillsCreateParams = /* @__PURE__ */ zod.object({export const llmSkillsCreateBodyNameMax = 64-export const llmSkillsCreateBodyDescriptionMax = 4096+export const llmSkillsCreateBodyDescriptionMax = 1024export const llmSkillsCreateBodyLicenseMax = 255@@ -67,7 +67,7 @@ export const LlmSkillsCreateBody = /* @__PURE__ */ zoddescription: zod.string().max(llmSkillsCreateBodyDescriptionMax)- .describe('What this skill does and when to use it. Max 4096 characters.'),+ .describe('What this skill does and when to use it. Max 1024 characters.'),body: zod.string().describe('The SKILL.md instruction content (markdown).'),license: zod.string()@@ -183,7 +183,7 @@ export const LlmSkillsNamePartialUpdateParams = /* @__PURE__ */ zod.object({skill_name: zod.string().regex(llmSkillsNamePartialUpdatePathSkillNameRegExp),})-export const llmSkillsNamePartialUpdateBodyDescriptionMax = 4096+export const llmSkillsNamePartialUpdateBodyDescriptionMax = 1024export const llmSkillsNamePartialUpdateBodyLicenseMax = 255diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.jsonindex 432957fba576..b099c6b573e1 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-create.json@@ -19,8 +19,8 @@"type": "string"},"description": {- "description": "What this skill does and when to use it. Max 4096 characters.",- "maxLength": 4096,+ "description": "What this skill does and when to use it. Max 1024 characters.",+ "maxLength": 1024,"type": "string"},"files": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.jsonindex d55aef4e2e25..4858070b098e 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/llma-skill-update.json@@ -24,7 +24,7 @@},"description": {"description": "Updated description for the new version.",- "maxLength": 4096,+ "maxLength": 1024,"type": "string"},"edits": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-prepare.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-prepare.jsonindex 6fd5d52d42de..714c680a4f9e 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-prepare.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/scout-create-prepare.json@@ -152,7 +152,7 @@},"description": {"description": "Short description of the signal or behavior this scout investigates.",- "maxLength": 4096,+ "maxLength": 1024,"type": "string"},"files": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.jsonindex 432957fba576..b099c6b573e1 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-create.json@@ -19,8 +19,8 @@"type": "string"},"description": {- "description": "What this skill does and when to use it. Max 4096 characters.",- "maxLength": 4096,+ "description": "What this skill does and when to use it. Max 1024 characters.",+ "maxLength": 1024,"type": "string"},"files": {diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.jsonindex d55aef4e2e25..4858070b098e 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/skill-update.json@@ -24,7 +24,7 @@},"description": {"description": "Updated description for the new version.",- "maxLength": 4096,+ "maxLength": 1024,"type": "string"},"edits": {