@atscript/typescript 0.1.49 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -34,11 +34,11 @@ npx asc --noEmit
34
34
 
35
35
  ```ts
36
36
  // Runtime validation
37
- import { Validator, buildJsonSchema } from '@atscript/typescript/utils'
37
+ import { buildJsonSchema } from '@atscript/typescript/utils'
38
38
  import { User } from './schema/user.as'
39
39
 
40
- const errors = new Validator().validate(User, inputData)
41
- const schema = buildJsonSchema(User)
40
+ User.validator().validate(inputData) // throws on failure
41
+ const schema = buildJsonSchema(User.annotatedType)
42
42
  ```
43
43
 
44
44
  ## Features
@@ -51,13 +51,16 @@ const schema = buildJsonSchema(User)
51
51
  - Type-safe utility types: `FlatOf<T>`, `PrimaryKeyOf<T>`, `OwnPropsOf<T>`, `NavPropsOf<T>`
52
52
  - Global `atscript.d.ts` generation for typed metadata access
53
53
 
54
- ## AI Agent Skills
54
+ ## AI Agent Skill
55
+
56
+ Unified skill for AI coding agents (Claude Code, Cursor, Windsurf, Codex, etc.) covering all `@atscript/*` packages:
55
57
 
56
58
  ```bash
57
- npx atscript-typescript-skill # Install skills locally
58
- npx atscript-typescript-skill --global # Install globally
59
+ npx skills add moostjs/atscript
59
60
  ```
60
61
 
62
+ Learn more at [skills.sh](https://skills.sh).
63
+
61
64
  ## Documentation
62
65
 
63
66
  - [TypeScript Guide](https://atscript.dev/packages/typescript/)