Token导航 LogoToken导航

Agent Skill · 研究检索

ionic-app-development(离子应用程序开发)

ionic-app-development 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ionic-app-development 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 32,766。

总安装 2,471周安装 104GitHub Stars 19下载 865核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ionic-app-development(离子应用程序开发)
来源仓库:https://github.com/capawesome-team/skills
仓库路径:skills/ionic-app-development
安装命令:
npx skills add https://github.com/capawesome-team/skills --skill ionic-app-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/capawesome-team/skills --skill ionic-app-development

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

提供 Ionic Framework 核心概念和组件参考。适合布局、主题、CLI 使用和开发流程指导。ionic-app-development 属于研究检索类 Skill,可作为该场景下的辅助能力补充。需全局安装 Ionic CLI 并存在现有项目。可自动检测框架类型(Angular/React/Vue)适配示例。

安装前建议确认权限范围,避免触发文件写入操作。

来源仓库内路径:skills/ionic-app-development

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/capawesome-team/skills --skill ionic-app-devel…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

ionic-app-development 怎么安装?

在终端执行 npx skills add https://github.com/capawesome-team/skills --skill ionic-app-development。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ionic-app-development 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

ionic-app-development 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

ionic-app-development 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

ionic-app-development 用的人多吗?

公开数据是累计安装 2,471 次,近一周安装 104 次,下载 865 次,GitHub 19 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

ionic-app-development 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
ionic-app-development

离子应用程序开发 · 本页

2,47119操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Ionic App Development

General Ionic Framework development — core concepts, component reference, CLI usage, layout, theming, utilities, development workflow, and troubleshooting.

Prerequisites

  1. Node.js (latest LTS) installed.
  2. Ionic CLI installed globally (npm install -g @ionic/cli).
  3. An existing Ionic project. For creating a new Ionic app, use the ionic-app-creation skill.

Agent Behavior

  • Auto-detect the framework. Check package.json for @ionic/angular, @ionic/react, or @ionic/vue to determine the framework in use. Adapt code examples accordingly.
  • Route to reference files. This skill is an overview that routes agents to specific reference files for detailed component APIs and topic-specific guidance.
  • Do not duplicate framework-specific skills. For Angular, React, or Vue specific patterns, refer to the respective framework skill.

Core Concepts

How Ionic Works

Ionic Framework is a UI toolkit for building cross-platform apps using web technologies (HTML, CSS, JavaScript/TypeScript). It provides a library of pre-built UI components that adapt their styling to the platform (ios or md mode).

  • Components are custom HTML elements (Web Components) prefixed with ion- (e.g., <ion-button>, <ion-content>).
  • Platform modes: Ionic renders components differently based on the platform. iOS devices use the ios mode; Android and all other platforms use the md (Material Design) mode. The <html> element receives a class (ios or md) that enables platform-specific styles.
  • Capacitor integration: Ionic apps use Capacitor to access native device features. Ionic handles the UI; Capacitor handles native APIs. See the capacitor-app-development skill for Capacitor-specific guidance.

Page Lifecycle

Ionic provides lifecycle events on top of the framework's own lifecycle hooks. These fire when a page is navigated to or from:

EventDescription
ionViewWillEnterFires when the page is about to enter and become active.
ionViewDidEnterFires when the page has fully entered and is now active.
ionViewWillLeaveFires when the page is about to leave and become inactive.
ionViewDidLeaveFires when the page has fully left and is now inactive.

These are in addition to the framework-specific lifecycle hooks (e.g., Angular's ngOnInit, React's useEffect, Vue's onMounted). Use Ionic lifecycle events for tasks that should run each time a page becomes visible (e.g., refreshing data), since some navigation strategies cache pages.

Component Reference

Ionic provides 80+ UI components. Detailed API documentation for each component is organized into reference files by category. Each reference file covers properties, events, methods, slots, CSS shadow parts, and CSS custom properties.

When the user needs help with a specific component, read the corresponding reference file.

CategoryReference FileComponents Covered
Action & Buttonsreferences/components-action.mdaction-sheet, button, fab, fab-button, fab-list, ripple-effect
Data Displayreferences/components-data-display.mdaccordion, accordion-group, badge, card, card-content, card-header, card-subtitle, card-title, chip, item, item-divider, item-group, item-sliding, item-options, item-option, label, list, list-header, note, text
Formreferences/components-form.mdcheckbox, datetime, datetime-button, input, input-otp, input-password-toggle, picker, radio, radio-group, range, searchbar, select, select-option, segment, segment-button, segment-content, segment-view, textarea, toggle
Layoutreferences/components-layout.mdapp, content, grid, col, row, header, footer, toolbar, title, buttons, back-button, split-pane
Mediareferences/components-media.mdavatar, icon, img, thumbnail
Navigationreferences/components-navigation.mdbreadcrumb, breadcrumbs, menu, menu-button, menu-toggle, nav, nav-link, router, router-link, router-outlet, route, route-redirect, tabs, tab, tab-bar, tab-button
Overlayreferences/components-overlay.mdalert, loading, modal, popover, toast, backdrop
Scroll & Virtualreferences/components-scroll.mdinfinite-scroll, infinite-scroll-content, refresher, refresher-content, reorder, reorder-group
Progressreferences/components-progress.mdprogress-bar, skeleton-text, spinner

Ionic CLI

The Ionic CLI is the primary tool for developing Ionic apps. Below are the most commonly used commands. Run ionic --help for the full and always up-to-date command list.

Installation

npm install -g @ionic/cli

If upgrading from the legacy ionic package:

npm uninstall -g ionic
npm install -g @ionic/cli

Key Commands

CommandDescription
ionic serveStart a local dev server with live reload.
ionic serve --externalServe on all network interfaces (for testing on devices).
ionic serve --port=<port>Serve on a custom port (default: 8100).
ionic serve --prodServe with production build configuration.
ionic buildBuild the web app for production.
ionic generateGenerate pages, components, services (framework-dependent).
ionic doctor checkCheck the project for common issues.
ionic infoPrint system/environment info for bug reports.
ionic repairRemove and recreate dependencies and platform files.

ionic serve Options

OptionDescription
--sslEnable HTTPS (experimental).
--no-livereloadServe without automatic reloading.
--no-openDo not open a browser window automatically.
--consolelogsPrint app console output in terminal.
--browser=<browser>Open in a specific browser (safari, firefox, google chrome).
--browseroption=<path>Open a specific URL path (e.g., /#/tab/dash).

For framework-specific CLI options, pass them after --:

ionic serve -- --proxy-config proxy.conf.json

Layout

Read references/components-layout.md for the full API reference for layout components.

Grid System

Ionic uses a 12-column flexbox grid system (ion-grid, ion-row, ion-col). Columns expand to fill the row evenly unless a size attribute is specified (1-12).

Responsive breakpoints:

BreakpointMin WidthCSS Class Prefix
xs0(default)
sm576pxsizeSm
md768pxsizeMd
lg992pxsizeLg
xl1200pxsizeXl

CSS Utility Classes

Ionic provides responsive CSS utility classes for common styling needs:

  • Text: .ion-text-center, .ion-text-start, .ion-text-end, .ion-text-wrap, .ion-text-nowrap, .ion-text-uppercase, .ion-text-lowercase, .ion-text-capitalize
  • Padding: .ion-padding, .ion-padding-top, .ion-padding-bottom, .ion-padding-start, .ion-padding-end, .ion-padding-vertical, .ion-padding-horizontal, .ion-no-padding
  • Margin: .ion-margin, .ion-margin-top, .ion-margin-bottom, .ion-margin-start, .ion-margin-end, .ion-margin-vertical, .ion-margin-horizontal, .ion-no-margin
  • Display: .ion-display-none, .ion-display-block, .ion-display-flex, .ion-display-inline, .ion-display-grid
  • Float: .ion-float-left, .ion-float-right, .ion-float-start, .ion-float-end
  • Flex: .ion-justify-content-center, .ion-align-items-center, .ion-flex-row, .ion-flex-column, .ion-flex-wrap, .ion-flex-nowrap
  • Border: .ion-no-border

All utility classes support responsive breakpoint suffixes: ion-text-{breakpoint}-center (e.g., .ion-text-md-center applies at 768px+).

Theming

Colors

Ionic provides nine default colors: primary, secondary, tertiary, success, warning, danger, light, medium, dark. Apply via the color attribute on components:

<ion-button color="primary">Primary</ion-button>
<ion-button color="danger">Danger</ion-button>

Each color has six CSS custom properties:

  • --ion-color-{name} — Base color value
  • --ion-color-{name}-rgb — Base color in RGB format
  • --ion-color-{name}-contrast — Text color for readability
  • --ion-color-{name}-contrast-rgb — Contrast color in RGB format
  • --ion-color-{name}-shade — Darker variant (active/pressed states)
  • --ion-color-{name}-tint — Lighter variant (hover states)

To customize a color, override all six variables in :root:

:root {
  --ion-color-primary: #3880ff;
  --ion-color-primary-rgb: 56, 128, 255;
  --ion-color-primary-contrast: #ffffff;
  --ion-color-primary-contrast-rgb: 255, 255, 255;
  --ion-color-primary-shade: #3171e0;
  --ion-color-primary-tint: #4c8dff;
}

To add a custom color, define the CSS variables and create a class:

:root {
  --ion-color-favorite: #69bb7b;
  --ion-color-favorite-rgb: 105, 187, 123;
  --ion-color-favorite-contrast: #ffffff;
  --ion-color-favorite-contrast-rgb: 255, 255, 255;
  --ion-color-favorite-shade: #5ca56c;
  --ion-color-favorite-tint: #78c288;
}

.ion-color-favorite {
  --ion-color-base: var(--ion-color-favorite);
  --ion-color-base-rgb: var(--ion-color-favorite-rgb);
  --ion-color-contrast: var(--ion-color-favorite-contrast);
  --ion-color-contrast-rgb: var(--ion-color-favorite-contrast-rgb);
  --ion-color-shade: var(--ion-color-favorite-shade);
  --ion-color-tint: var(--ion-color-favorite-tint);
}

Global CSS Variables

VariableDescription
--ion-background-colorBackground color of the app
--ion-text-colorText color of the app
--ion-font-familyFont family of the app
--ion-statusbar-paddingStatusbar padding top of the app
--ion-safe-area-topAdjust safe area inset top
--ion-safe-area-rightAdjust safe area inset right
--ion-safe-area-bottomAdjust safe area inset bottom
--ion-safe-area-leftAdjust safe area inset left
--ion-marginDefault margin for margin utility classes
--ion-paddingDefault padding for padding utility classes
--ion-placeholder-opacityOpacity of placeholder text in inputs

Dark Mode

Ionic supports three dark mode approaches:

1. System Preference (Default)

Automatically applies dark palette based on the user's OS setting:

@import '@ionic/angular/css/palettes/dark.system.css';
/* or @ionic/react, @ionic/vue */
2. Always Dark

Forces dark mode regardless of system settings:

@import '@ionic/angular/css/palettes/dark.always.css';
3. CSS Class Toggle

Enables manual dark mode control via a CSS class:

@import '@ionic/angular/css/palettes/dark.class.css';

Add .ion-palette-dark to the <html> element to activate:

<html class="ion-palette-dark">

Add this meta tag to adjust system UI elements (scrollbars, etc.):

<meta name="color-scheme" content="light dark" />

Platform Styles

Ionic uses two modes for platform-specific styling:

PlatformDefault ModeStyle
iOSiosApple iOS design
AndroidmdMaterial Design
Other / WebmdMaterial Design

To preview a specific mode in the browser, add ?ionic:mode=ios or ?ionic:mode=md to the URL:

http://localhost:8100/?ionic:mode=ios

Target mode-specific styles in CSS:

.ios ion-toolbar {
  --background: #f8f8f8;
}

.md ion-toolbar {
  --background: #ffffff;
}

Developing

Previewing in the Browser

The primary development workflow is browser-based:

ionic serve

This starts a development server at http://localhost:8100 with live reload.

Use browser DevTools to simulate mobile devices:

  • Chrome: Cmd+Opt+I (Mac) / Ctrl+Shift+I (Windows/Linux), then toggle device toolbar
  • Safari: Cmd+Opt+R for Responsive Design Mode
  • Firefox: Cmd+Opt+M (Mac) / Ctrl+Shift+M (Windows/Linux)

Testing on Devices

For native functionality that requires a real device:

npx cap run android
npx cap run ios

For live reload on a device:

npx cap run android --livereload --external
npx cap run ios --livereload --external

Debugging Tips

  • Use the debugger keyword to set breakpoints in code.
  • Add ?ionic:mode=ios to the URL to preview iOS styles in the browser.
  • Use ionic info to collect environment info for troubleshooting.

Utilities

Animations

Ionic provides a framework-agnostic animation utility built on the Web Animations API. Import:

  • JavaScript/TypeScript: import {createAnimation} from '@ionic/core';
  • Angular: Inject AnimationController from @ionic/angular
  • React: Use CreateAnimation component from @ionic/react
  • Vue: import {createAnimation} from '@ionic/vue';

Key methods: addElement(), duration(), easing(), fromTo(), keyframes(), play(), pause(), stop(), onFinish().

Animations support grouping (parent-child), chaining (via play() promises), and integration with gestures.

For performance, prefer animating transform and opacity over height and width.

Gestures

Ionic provides a framework-agnostic gesture utility. Import:

  • JavaScript/TypeScript: import {createGesture} from '@ionic/core';
  • Angular: Inject GestureController from @ionic/angular
  • React: import {createGesture} from '@ionic/react';
  • Vue: import {createGesture} from '@ionic/vue';

Configuration options: el, gestureName, threshold, direction (x/y), maxAngle, gesturePriority, disableScroll, passive.

Callbacks: canStart, onWillStart, onStart, onMove, onEnd, notCaptured.

The GestureDetail object provides startX/startY, currentX/currentY, deltaX/deltaY, and velocityX/velocityY.

Hardware Back Button (Android)

Ionic emits an ionBackButton event when the Android hardware back button is pressed. Handlers are priority-based:

PriorityHandler
100Overlays
99Menu
0Navigation

For Capacitor apps, install @capacitor/app to enable hardware back button support. See the framework-specific skills for implementation patterns.

Error Handling

  • ionic: command not found: The Ionic CLI is not installed. Run npm install -g @ionic/cli.
  • Port 8100 in use: Another process is using the default port. Run ionic serve --port=<other-port>.
  • Components not rendering: Verify the Ionic CSS files are imported in the global stylesheet. For Angular: @import '@ionic/angular/css/core.css';. For React/Vue: check the framework-specific import.
  • Platform styles not applied: Ensure @ionic/angular, @ionic/react, or @ionic/vue is installed and configured. The <html> element should have an ios or md class.
  • Dark mode not working: Verify the correct dark palette CSS import is present. For the class method, ensure .ion-palette-dark is applied to the <html> element.
  • CSS custom properties not applying: Ionic components use Shadow DOM. Use the component's documented CSS custom properties (e.g., --background, --color) rather than targeting internal elements directly. Check the component reference file for available properties.
  • Live reload not working on device: Ensure the device and development machine are on the same network. Use the --external flag with npx cap run.
  • ionViewWillEnter not firing: This lifecycle event only fires with Ionic's routing components (ion-router-outlet). It does not fire with standard framework routers unless Ionic's routing integration is used.

Related Skills

  • ionic-app-creation — Create a new Ionic app.
  • ionic-angular — Ionic with Angular (framework-specific patterns).
  • ionic-react — Ionic with React (framework-specific patterns).
  • ionic-vue — Ionic with Vue (framework-specific patterns).
  • ionic-app-upgrades — Upgrade Ionic to a newer major version.
  • capacitor-app-development — General Capacitor development.
  • capacitor-plugins — Capacitor plugins installation and configuration.

平台分布

Codex

36.85%
按下载量换算319

Claude

31.29%
按下载量换算271

Cursor

17.01%
按下载量换算147

Gemini CLI

9.18%
按下载量换算79

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills