Skip to content

Enhance dbr-js-sample-creator skill with comprehensive SDK references#305

Open
Tom-Dynamsoft wants to merge 9 commits into
mainfrom
skill
Open

Enhance dbr-js-sample-creator skill with comprehensive SDK references#305
Tom-Dynamsoft wants to merge 9 commits into
mainfrom
skill

Conversation

@Tom-Dynamsoft
Copy link
Copy Markdown
Contributor

Summary

  • Skill initialization: SKILL.md, reference files, evals, and routing for the dbr-js-sample-creator AI coding skill
  • License key fix: Unified all license key references to DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9
  • api-sdk.md: Added BarcodeFormatIds reference (~70 format IDs), dynamic settings modification pattern, framework template placement guidance
  • api-camera.md: Added camera selection, resolution, enhanced features (with license note), tip messages API, audio feedback, drawing layers, coordinate conversion, UI customization
  • api-frameworks.md: Expanded Next.js App Router section with full SSR guard patterns, next/dynamic usage, and server vs client component architecture
  • api-parsing.md: New file — CodeParser API for GS1, AAMVA driver's license, and VIN parsing
  • evals.json: Expanded from 5 to 10 test cases (Next.js SSR, tip messages, format filtering, GS1 parsing, auto-zoom)
  • DCE license note: Clarified that EF_AUTO_ZOOM/EF_TAP_TO_FOCUS require DCE Advanced Features license; tips and beep work with standard DBR license
  • scan-and-search sample: Enhanced with barcode format filter, text length filter, and regex filter

Test plan

  • Verify skill triggers correctly when user mentions Dynamsoft Barcode Reader JS
  • Run eval prompts 1–10 and check generated code against expectations
  • Confirm license key is consistent across all files
  • Verify Next.js samples use next/dynamic with ssr: false

Justin-dynamsoft and others added 9 commits May 20, 2026 14:19
…amic settings API

- Replace incorrect license key in SKILL.md (5 occurrences) to match all
  reference files and actual samples
- Add complete EnumBarcodeFormat table (45+ BF_* values) to api-sdk.md
- Add common format presets for templates (retail, industrial, 2D)
- Add dynamic settings modification pattern (outputSettings → modify → initSettings)
- Document custom template usage with capture() for image decoding
- Note framework template placement (public/ directory)
- Camera selection (getAllCameras, selectCamera)
- Resolution control (setResolution, getResolution)
- Enhanced features (auto-zoom, tap-to-focus)
- Video fit mode, single frame mode
- Coordinate conversion (convertToPageCoordinates, convertToClientCoordinates)
- Tip messages (setTipConfig, updateTipMessage, setTipVisible, TipConfig interface)
- Audio feedback (Feedback.beep)
- Drawing layers and custom overlays (DrawingLayer, DrawingStyleManager)
- UI element customization (hide camera/resolution dropdowns)
- Replace 4-line stub with complete Next.js App Router documentation
- Server vs client component architecture diagram
- Page wrapper pattern with next/dynamic and ssr: false
- Custom template placement in public/ directory
- Server component layout example (no SDK imports)
- Next.js-specific rules (5 key points)
- Fix MD040 lint warnings (add language to fenced code blocks)
- New api-parsing.md: CodeParser API for GS1, driver's license (AAMVA), VIN
  parsing with complete patterns (loadSpec, parse, onParsedResultsReceived)
- Update SKILL.md routing table to include api-parsing.md
- Update .claude/skills/ descriptions to reflect new content in all ref files
- Expand evals from 5 to 10 test cases covering: Next.js App Router,
  tip messages + beep, dynamic format filtering, GS1 parsing, auto-zoom
Clarify that EF_AUTO_ZOOM and EF_TAP_TO_FOCUS require a DCE Advanced
Features license, while tip messages, Feedback.beep(), and other
CameraView/CameraEnhancer APIs work with a standard DBR license.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants