Skip to content

Commit 2714985

Browse files
committed
Add skill to create web forms
Add skill to create web forms
1 parent d99ba71 commit 2714985

26 files changed

Lines changed: 17204 additions & 0 deletions

docs/README.skills.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Skills differ from other primitives by supporting bundled assets (scripts, code
3131
| [azure-static-web-apps](../skills/azure-static-web-apps/SKILL.md) | Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development, configuring staticwebapp.config.json, adding Azure Functions APIs to SWA, or setting up GitHub Actions CI/CD for Static Web Apps. | None |
3232
| [chrome-devtools](../skills/chrome-devtools/SKILL.md) | Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance. | None |
3333
| [copilot-sdk](../skills/copilot-sdk/SKILL.md) | Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent. | None |
34+
| [create-web-form](../skills/create-web-form/SKILL.md) | Create robust, accessible web forms with best practices for HTML structure, CSS styling, JavaScript interactivity, form validation, and server-side processing. Use when asked to "create a form", "build a web form", "add a contact form", "make a signup form", or when building any HTML form with data handling. Covers PHP and Python backends, MySQL database integration, REST APIs, XML data exchange, accessibility (ARIA), and progressive web apps. | `references/accessibility.md`<br />`references/aria-form-role.md`<br />`references/css-styling.md`<br />`references/form-basics.md`<br />`references/form-controls.md`<br />`references/form-data-handling.md`<br />`references/html-form-elements.md`<br />`references/html-form-example.md`<br />`references/hypertext-transfer-protocol.md`<br />`references/javascript.md`<br />`references/php-cookies.md`<br />`references/php-forms.md`<br />`references/php-json.md`<br />`references/php-mysql-database.md`<br />`references/progressive-web-app.md`<br />`references/python-as-web-framework.md`<br />`references/python-contact-form.md`<br />`references/python-flask-app.md`<br />`references/python-flask.md`<br />`references/security.md`<br />`references/styling-web-forms.md`<br />`references/web-api.md`<br />`references/web-performance.md`<br />`references/xml.md` |
3435
| [excalidraw-diagram-generator](../skills/excalidraw-diagram-generator/SKILL.md) | Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw. | `references/element-types.md`<br />`references/excalidraw-schema.md`<br />`scripts/.gitignore`<br />`scripts/README.md`<br />`scripts/add-arrow.py`<br />`scripts/add-icon-to-diagram.py`<br />`scripts/split-excalidraw-library.py`<br />`templates/business-flow-swimlane-template.excalidraw`<br />`templates/class-diagram-template.excalidraw`<br />`templates/data-flow-diagram-template.excalidraw`<br />`templates/er-diagram-template.excalidraw`<br />`templates/flowchart-template.excalidraw`<br />`templates/mindmap-template.excalidraw`<br />`templates/relationship-template.excalidraw`<br />`templates/sequence-diagram-template.excalidraw` |
3536
| [gh-cli](../skills/gh-cli/SKILL.md) | GitHub CLI (gh) comprehensive reference for repositories, issues, pull requests, Actions, projects, releases, gists, codespaces, organizations, extensions, and all GitHub operations from the command line. | None |
3637
| [git-commit](../skills/git-commit/SKILL.md) | Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping | None |

skills/create-web-form/SKILL.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
name: create-web-form
3+
description: 'Create robust, accessible web forms with best practices for HTML structure, CSS styling, JavaScript interactivity, form validation, and server-side processing. Use when asked to "create a form", "build a web form", "add a contact form", "make a signup form", or when building any HTML form with data handling. Covers PHP and Python backends, MySQL database integration, REST APIs, XML data exchange, accessibility (ARIA), and progressive web apps.'
4+
---
5+
6+
# Create Web Form Skill
7+
8+
## Overview
9+
10+
This skill provides comprehensive reference materials and best practices for creating web forms. It covers HTML syntax, UI/UX design, form validation, server-side processing (PHP and Python), data handling, and network communication.
11+
12+
## Purpose
13+
14+
Enable developers to build robust, accessible, and user-friendly web forms by providing:
15+
16+
- HTML form syntax and structure
17+
- CSS styling techniques for form elements
18+
- JavaScript for form interactivity and validation
19+
- Accessibility best practices
20+
- Server-side form processing with PHP and Python
21+
- Database integration methods
22+
- Network data handling and security
23+
- Performance optimization
24+
25+
## Reference Files
26+
27+
This skill includes the following reference documentation:
28+
29+
### UI & Styling
30+
- `styling-web-forms.md` - Form styling techniques and best practices
31+
- `css-styling.md` - Comprehensive CSS reference for form styling
32+
33+
### User Experience
34+
- `accessibility.md` - Web accessibility guidelines for forms
35+
- `javascript.md` - JavaScript techniques for form functionality
36+
- `form-controls.md` - Native form controls and their usage
37+
- `progressive-web-app.md` - Progressive web app integration
38+
39+
### HTML Structure
40+
- `form-basics.md` - Fundamental HTML form structure
41+
- `aria-form-role.md` - ARIA roles for accessible forms
42+
- `html-form-elements.md` - Complete HTML form elements reference
43+
- `html-form-example.md` - Practical HTML form examples
44+
- `html-reference.md` - General HTML reference
45+
46+
### Server-Side Processing
47+
- `form-data-handling.md` - Network form data handling
48+
- `php-forms.md` - PHP form processing
49+
- `php-cookies.md` - Cookie management in PHP
50+
- `php-json.md` - JSON handling in PHP
51+
- `php-mysql-database.md` - Database integration with PHP
52+
- `php-reference.md` - PHP language reference
53+
- `python-contact-form.md` - Python contact form implementation
54+
- `python-flask.md` - Flask forms tutorial
55+
- `python-flask-app.md` - Building Flask web applications
56+
- `python-as-web-framework.md` - Python web framework basics
57+
58+
### Data & Network
59+
- `xml.md` - XML data format reference
60+
- `hypertext-transfer-protocol.md` - HTTP protocol reference
61+
- `security.md` - Web security best practices
62+
- `web-api.md` - Web API integration
63+
- `web-performance.md` - Performance optimization techniques
64+
65+
## Usage
66+
67+
When creating a web form, consult the appropriate reference files based on your needs:
68+
69+
1. **Planning**: Review `form-basics.md` and `form-controls.md`
70+
2. **Structure**: Use `html-form-elements.md` and `aria-form-role.md`
71+
3. **Styling**: Reference `styling-web-forms.md` and `css-styling.md`
72+
4. **Interactivity**: Apply techniques from `javascript.md`
73+
5. **Accessibility**: Follow guidelines in `accessibility.md`
74+
6. **Server Processing**: Choose between PHP or Python references
75+
7. **Data Storage**: Consult database and data format references
76+
8. **Optimization**: Review `web-performance.md` and `security.md`
77+
78+
## Best Practices
79+
80+
- Always validate input on both client and server sides
81+
- Ensure forms are accessible to all users
82+
- Use semantic HTML elements
83+
- Implement proper error handling and user feedback
84+
- Secure form data transmission with HTTPS
85+
- Follow progressive enhancement principles
86+
- Test forms across different browsers and devices
87+
- Optimize for performance and user experience

0 commit comments

Comments
 (0)