AgentSkillsCN

webstatic

为CMS开发注入WebStatic PHP/TypeScript框架上下文。 提供Teslasoft内容管理系统的项目结构、构建命令与代码范式。关键词:webstatic、cms、php、typescript、durandal。

SKILL.md
--- frontmatter
name: webstatic
description: |
  Injects WebStatic PHP/TypeScript Framework context for CMS development.
  Provides project structure, build commands, and code patterns for the Teslasoft
  content management system. Keywords: webstatic, cms, php, typescript, durandal.
triggers:
  - /webstatic
  - /webstatic update
  - /webstatic build
  - /webstatic build-all
  - /webstatic status
  - /webstatic structure
  - /webstatic help
  - webstatic framework
  - cms development
negative_triggers:
  - general PHP questions unrelated to WebStatic
  - other CMS frameworks (WordPress, Drupal, etc.)
  - generic TypeScript without WebStatic context
version: 2.0.0
author: Christian Kusmanow / Claude
last_updated: 2026-01-23
security:
  trust_model: Local development framework, no external API calls
  confirmations:
    - Admin junction creation requires Administrator privileges
  notes: Database connection details are parameterized in config files

Skill: WebStatic Framework

Injects the WebStatic PHP/TypeScript Framework context for CMS development.

When to Use

  • Developing features for the WebStatic CMS
  • Building TypeScript widgets for the admin interface
  • Working with the Durandal SPA architecture
  • Running Grunt build tasks
  • Integrating with teslasoft.de website

When NOT to Use

  • General PHP development unrelated to WebStatic
  • Other CMS frameworks (WordPress, Drupal, Joomla)
  • Generic TypeScript projects

Quick Start

bash
# Navigate to js directory
cd D:\TeamProjects\Teslasoft\webstatic\js

# Build core library
grunt build

# Build all (vendor + polyfills)
grunt --gruntfile Gruntfile.app.js build_dependencies
grunt --gruntfile Gruntfile.polyfill.js polyfill

Commands

CommandAction
/webstaticLoad WebStatic framework context
/webstatic buildBuild core library (WebStatic.js)
/webstatic build-allBuild all: core + vendor + polyfills
/webstatic statusShow git status and build outputs
/webstatic structureDisplay project structure overview
/webstatic updateSync skill to global locations
/webstatic helpShow this documentation

Project Profile

FieldValue
ProjectWebStatic
Version0.8.9
TypePHP Web Content Management Framework
RepositoryD:\TeamProjects\Teslasoft\webstatic
StackPHP 7.4+, MySQL 5.7+, TypeScript, Durandal, Grunt

Technology Stack

LayerTechnologies
BackendPHP 7.4+, MySQL 5.7+ (stored procedures)
FrontendTypeScript, Durandal SPA, Knockout MVVM
BuildGrunt, Bower, npm
StylingRuby + Compass (SCSS)
WidgetsDock-Spawn docking panels

Build Outputs

FileDescription
js/dist/WebStatic.jsCore library (jQuery plugins, animations)
js/dist/WebStatic.min.jsMinified core library
js/dist/WebStatic.polyfill.jsIE/legacy browser polyfills
js/vendor/AMD-wrapped vendor libraries

Failure Modes & Recovery

IssueRecovery
Bower install failsCheck bower.json, some deps use git URLs
Grunt watch hangsCheck file permissions on dist/
TypeScript errorsEnsure typings installed (tsd install)
Module not foundCheck RequireJS paths in main.ts
Widget not dockingVerify elementID matches HTML id

Security & Permissions

  • Required tools: Bash (build commands), Read, Write
  • Confirmations: Junction creation requires Administrator
  • Database config: Connection details in config/.mysqli.*.inc.php (parameterized)
  • Trust model: Local development only, no external uploads

Best Practices

  1. Use Allman brace style for all TypeScript code
  2. Extend DatabaseObject for new PHP entities
  3. Preserve file banners when editing files
  4. Follow PascalCase naming for classes and properties
  5. Use MulticastDelegate for event patterns
  6. Check junction integrity before Website builds

References


Metadata

yaml
author: Christian Kusmanow / Claude
version: 2.0.0
last_updated: 2026-01-23
change_surface: references/ (build updates, new patterns)
extension_points: references/widget-development.md (new widget types)

Changelog

  • v2.0.0 (2026-01-23): SDL migration - Progressive disclosure structure
    • Split 418-line monolith into SKILL.md (~150 lines) + 4 references
    • Added YAML frontmatter with triggers and negative_triggers
    • Added security section with junction confirmation
    • Parameterized database connection references
  • v1.0.0 (2026-01-19): Initial release