F

Facebook技能

add-ir-instruction
facebook
Guide for adding a new IR instruction to the Hermes compiler. Use when the user asks to add, create, or define a new IR instruction (Inst/Instruction) in the…
official
add-ir-instruction
facebook
添加新的IR指令时,必须修改一组特定文件。本技能描述了每个文件、需遵循的模式以及重要约定。
official
add-shape-types-to-torch-model
facebook
Port a PyTorch model to use pyrefly's tensor shape type system (Tensor[B, C, H, W], Dim[T]). Use this skill whenever the user wants to add shape annotations to…
official
add-shape-types-to-torch-model
facebook
将PyTorch模型移植以使用pyrefly的张量形状类型系统(Tensor[B, C, H, W], Dim[T])。当用户想要添加形状注释时使用此技能…
official
add-torch-shapes-example
facebook
Use when adding a new PyTorch model to Pyrefly's shape-tracking example corpus under tensor-shapes/pyrefly-torch-stubs/examples — i.e. importing a model as a…
official
add-torch-shapes-example
facebook
在向Pyrefly的形状追踪示例库中添加新的PyTorch模型时使用,该库位于tensor-shapes/pyrefly-torch-stubs/examples下——即导入一个模型作为…
official
api-health
facebook
监控Meta应用的API健康状况——检查速率限制、调用量和API弃用情况。用于诊断限流、规划容量或准备API版本…
official
api-integration
facebook
指导开发者从零开始设置Meta API集成——发现合适的API、获取设置指南、认证要求,……
official
app-health-check
facebook
Run a comprehensive health check on a Meta app — audits settings, security, compliance, app review status, rate limits, and API deprecations in one pass. Use…
official
app-review-prep
facebook
Prepare a Meta app for App Review — checks current status, outstanding requirements, granted privileges, and submission history. Use before submitting an app…
official
binary-size-analysis
facebook
当用户想要分析hermesvm在多个提交之间的二进制大小变化时,应使用此技能。当用户提到"binary size"时使用,……
official
binary-size-analysis
facebook
分析hermesvm共享库在git提交范围内的每次提交的二进制大小变化。生成包含每次提交大小及显著增减汇总表的Markdown报告。
official
buck2-rule-basics
facebook
Guide users through writing their first Buck2 rule to learn fundamental concepts including rules, actions, targets, configurations, analysis, and select(). Use…
official
buck2-rule-basics
facebook
引导用户编写他们的第一个Buck2规则,学习基本概念,包括规则、动作、目标、配置、分析和select()。使用…
official
camera-streaming
facebook
Stream, video frames, photo capture, resolution/frame rate configuration
official
camera-streaming
facebook
Session and Stream capability setup, video frames, photo capture, resolution and frame rate configuration
official
camera-streaming
facebook
会话和流能力设置,视频帧,照片捕获,分辨率和帧率配置
official
camera-streaming
facebook
流式传输、视频帧、照片拍摄、分辨率/帧率配置
official
click-target
facebook
Find and click a target object in XR. Use when testing UI interactions, clicking buttons, or verifying interactable elements work correctly.
official
click-target
facebook
在XR中查找并点击目标对象。用于测试UI交互、点击按钮或验证可交互元素是否正常工作。
official
compliance-check
facebook
Check compliance status for a Meta app — surfaces open required actions, active violations, and recommendations with remediation guidance. Use to audit…
official
dat-conventions
facebook
Kotlin patterns, DatResult, session and capability conventions for DAT SDK Android development
official
dat-conventions
facebook
Swift patterns, async/await, naming conventions, key types for DAT SDK iOS development
official
dat-conventions
facebook
用于DAT SDK Android开发的Kotlin模式、DatResult、会话与能力约定
official
dat-conventions
facebook
Swift 模式、async/await、命名约定、DAT SDK iOS 开发的关键类型
official
debug-webhooks
facebook
Troubleshoot webhook issues for a Meta app — inspect active subscriptions, identify misconfiguration, and send test payloads to verify delivery. Use when…
official
debugging
facebook
Common issues, Developer Mode, version compatibility, and session and stream diagnosis
official
debugging
facebook
Common issues, Developer Mode, version compatibility, state machine diagnosis
official
debugging
facebook
常见问题、开发者模式、版本兼容性以及会话与流诊断
official
debugging
facebook
常见问题,开发者模式,版本兼容性,状态机诊断
official
display-access
facebook
Display capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback
official
display-access
facebook
显示能力设置、支持显示的设备选择、UI DSL、图标、按钮、图像和视频播放
official
display-access
facebook
显示能力设置、支持显示的设备选择、UI DSL、图标、按钮、图片及视频播放
official
display-access
facebook
Display capability setup, display-capable device selection, UI DSL, icons, buttons, images, and video playback
official
extract-errors
facebook
为React应用提取和管理错误码。自动从React源代码中提取错误消息,并为新消息分配唯一错误码。检测“未知错误码”警告,标记需要分配代码的消息。通过简单的yarn命令验证错误码与当前代码库保持同步。
official
feature-flags
facebook
跨渠道管理React特性标志,有条件地控制测试门控,并调试特定标志的测试失败。四个标志文件控制默认设置及渠道特定覆盖(canary、www、React Native、测试渲染器),其中__VARIANT__标志模拟在两个状态下测试的门控。使用@gate flagName编译指示在标志不可用时完全跳过测试,或使用内联gate()在行为不同时分支断言。添加新标志需在主文件及所有分支文件中添加条目;...
official
fix
facebook
自动代码格式化和lint检查,在CI检查前解决样式问题。依次运行Prettier进行代码格式化和linc进行lint验证。识别自动修正后仍需手动修复的问题。通过在提交前捕获格式化和lint错误,防止CI失败。
official
flags
facebook
检查并比较React发布渠道中的特性标志状态。查看所有渠道(www、www-modern、canary、next、experimental、rn变体)的标志,或使用--diff比较特定渠道。输出格式包括默认表格视图、CSV导出和清理状态分组。标志状态由符号表示:启用(✅)、禁用(❌)、变体测试(🧪)、仅性能分析(📊)。常见陷阱:__VARIANT__标志在www上以两种状态进行测试;使用--diff发现有意义的变化...
official
flow
facebook
针对React代码在DOM和原生平台上的静态类型检查。四种渲染器选项覆盖标准DOM、浏览器特定代码、React Native和Fabric环境。运行yarn flow时可选渲染器参数;使用yarn flow-ci进行全面但较慢的检查。报告类型错误时附带文件位置,帮助快速识别和修复问题。注意常见陷阱:缺少渲染器指定、未检查的$FlowFixMe抑制以及错误的类型导入。
official
gc-safe-coding
facebook
完整解释及原理请参见 doc/GCSafeCoding.md。
official
getting-started
facebook
SDK setup, Swift Package Manager integration, Info.plist configuration, and first connection to Meta glasses
official
getting-started
facebook
SDK setup, Gradle integration, AndroidManifest configuration, and first connection to Meta glasses
official
getting-started
facebook
SDK 设置、Gradle 集成、AndroidManifest 配置以及首次连接 Meta 眼镜
official
getting-started
facebook
SDK 设置、Swift Package Manager 集成、Info.plist 配置,以及首次连接到 Meta 眼镜
official
iwsdk-planner
facebook
IWSDK project planning and best practices guide. Use when planning new IWSDK features, designing systems/components, reviewing IWSDK code architecture, or when…
official
iwsdk-planner
facebook
IWSDK项目规划与最佳实践指南。用于规划新的IWSDK功能、设计系统/组件、审查IWSDK代码架构,或当…
official
iwsdk-ui-panel
facebook
高效开发和迭代IWSDK UI面板。适用于处理PanelUI组件、调试UI布局或改进IWSDK应用中的UI设计。
official
iwsdk-ui-panel
facebook
Develop and iterate on IWSDK UI panels efficiently. Use when working on PanelUI components, debugging UI layout, or improving UI design in IWSDK applications.
official
mockdevice-testing
facebook
MockDeviceKit for testing without physical glasses hardware
official
mockdevice-testing
facebook
MockDeviceKit for testing without physical glasses hardware
official
mockdevice-testing
facebook
用于测试的MockDeviceKit,无需实体眼镜硬件
official
mockdevice-testing
facebook
MockDeviceKit 用于无需实体眼镜硬件的测试
official
modify-jsi-features
facebook
Guide for adding new JSI functionality to the JavaScript Interface (JSI) layer. Use when the user asks to add, create, or implement new methods or features in…
official
modify-jsi-features
facebook
为JavaScript接口(JSI)层添加新JSI功能的指南。当用户要求添加、创建或实现新方法或功能时使用…
official
modify-shaped-array-dsl
facebook
Use when Pyrefly computes a wrong tensor shape (or is missing one that can't be expressed in a stub signature) and you need to add or fix a shape-DSL rule.…
official
modify-shaped-array-dsl
facebook
当Pyrefly计算出错误的张量形状(或缺少无法在存根签名中表达的形状)时,需要添加或修复形状DSL规则。
official
non-interactive-git-rebase
facebook
Use when needing to reorder, split, drop, or amend git commits that are not the top commit, without interactive editor access. Covers programmatic rebase via…
official
non-interactive-git-rebase
facebook
在需要重新排序、拆分、删除或修改非顶部提交的git提交,且无法使用交互式编辑器时使用。涵盖通过…进行的程序化变基操作。
official
permissions-registration
facebook
App registration with Meta AI and device permission flows
official
permissions-registration
facebook
App registration with Meta AI, camera permission flows
official
permissions-registration
facebook
使用Meta AI进行应用注册及设备权限流程
official
permissions-registration
facebook
使用Meta AI进行应用注册,相机权限流程
official
relay-best-practices
facebook
Relay 是一款专为 React 设计的 GraphQL 客户端,它强制实现共置、可组合且类型安全的数据获取。其核心理念是每个组件应通过 GraphQL 片段精确声明所需数据,而 Relay 负责处理其余部分——包括数据获取、缓存、一致性和更新。
official
relay-e2e-test
facebook
Write and run markdown-driven e2e tests for Relay. Covers fixture format, server/client code patterns, interaction DSL, snapshots, and running tests.
official
relay-e2e-test
facebook
编写并运行基于Markdown驱动的Relay端到端测试,涵盖夹具格式、服务器/客户端代码模式、交互DSL、快照以及测试运行。
official
relay-performance
facebook
Relay 应用的性能最佳实践。用于优化数据获取、减少重新渲染、配置缓存或改善首次加载时间…
official
sample-app-guide
facebook
Building a complete DAT app with session creation, camera streaming, and photo capture
official
sample-app-guide
facebook
使用会话创建、摄像头流传输和照片捕获构建完整的DAT应用
official
sample-app-guide
facebook
使用摄像头流和拍照功能构建完整的DAT应用
official
search-docs
facebook
Search Meta developer documentation for API guides, references, and tutorials. Use when looking up how a Meta API works, finding integration guides, or…
official
session-lifecycle
facebook
Device session states, pause/resume, availability monitoring
official
session-lifecycle
facebook
Session state, stream state, pause and resume behavior, and device availability monitoring
official
session-lifecycle
facebook
会话状态、流状态、暂停与恢复行为以及设备可用性监控
official
session-lifecycle
facebook
设备会话状态、暂停/恢复、可用性监控
official
test
facebook
为React代码库跨多个发布渠道和配置运行测试。支持六个发布渠道:source(默认)、experimental、www、www with variant false、stable和classic,每个渠道具有不同的特性标志配置。接受测试模式、TDD的监视模式以及用于测试不同代码路径的变体标志。需要显式测试模式参数以避免运行整个测试套件;使用--silent标志显示失败信息,并使用--no-watchman进行沙盒化...
official
test-all
facebook
Parallel test orchestrator. Runs all 9 test suites concurrently via Task sub-agents and the iwsdk CLI. Handles build, example setup, dev servers, agent launch,…
official
test-all
facebook
并行测试编排器。通过Task子代理和iwsdk CLI并发运行所有9个测试套件。处理构建、示例设置、开发服务器、代理启动等。
official
test-audio
facebook
Test audio system (AudioSource loading, playback state, stop, spatial audio) against the audio example using the iwsdk CLI.
official
test-audio
facebook
使用iwsdk CLI,对照音频示例测试音频系统(AudioSource加载、播放状态、停止、空间音频)。
official
test-ecs-core
facebook
Test ECS core functionality (system registration, components, Transform sync, pause/step/resume, system toggle, entity discovery, snapshots) against the poke…
official
test-ecs-core
facebook
测试ECS核心功能(系统注册、组件、Transform同步、暂停/步进/恢复、系统切换、实体发现、快照)针对poke…
official
test-environment
facebook
Test environment system (DomeGradient, IBLGradient, default lighting, component schemas) against the poke example using the iwsdk CLI.
official
test-environment
facebook
使用iwsdk CLI对poke示例进行测试环境系统(DomeGradient、IBLGradient、默认光照、组件模式)的测试。
official
test-grab
facebook
Test grab system (distance grab, one-hand grab, two-hand grab) against the grab example using the iwsdk CLI.
official
test-grab
facebook
使用iwsdk CLI对抓取示例进行测试抓取系统(远程抓取、单手抓取、双手抓取)。
official
test-interactions
facebook
Test XR interactions (ray, poke/touch, dual-mode, audio, UI panel) against the poke example using the iwsdk CLI.
official
test-interactions
facebook
使用 iwsdk CLI 对 poke 示例测试 XR 交互(射线、戳/触摸、双模式、音频、UI 面板)。
official
test-level
facebook
Test level system (LevelRoot, LevelTag, default lighting, scene hierarchy) against the poke example using the iwsdk CLI.
official
test-level
facebook
使用 iwsdk CLI 对照 poke 示例测试等级系统(LevelRoot、LevelTag、默认光照、场景层级)。
official
test-locomotion
facebook
Test locomotion system (slide, snap turn, teleport, jump) against the locomotion example using the iwsdk CLI.
official
test-locomotion
facebook
使用 iwsdk CLI 在移动示例中测试移动系统(滑动、快转、传送、跳跃)。
official
test-physics
facebook
Test Havok physics system (gravity, rigid bodies, static vs dynamic) against the physics example using the iwsdk CLI.
official
test-physics
facebook
使用 iwsdk CLI 对物理示例测试 Havok 物理系统(重力、刚体、静态与动态)。
official
test-ui
facebook
使用iwsdk CLI,针对poke示例测试UI系统(PanelUI、ScreenSpace)。
official
test-ui
facebook
使用iwsdk CLI,针对poke示例测试UI系统(PanelUI、ScreenSpace)。
official
verify
facebook
对React贡献的预提交验证,包含并行类型检查与测试。按顺序运行格式化和代码检查,在首次失败时停止以尽早发现问题。使用子代理并行执行类型检查及双重测试套件(源码和www),提升效率。支持可选的测试模式参数以筛选运行的测试。当任何步骤失败时,提供详细的失败报告及建议修复方案。
official
webhook-setup
facebook
端到端地为 Meta 应用设置 webhooks——发现可用主题、订阅字段,并使用测试负载进行验证。在配置 webhooks 时使用……
official
xr-mode-test
facebook
Test XR session lifecycle and mode transitions. Use when verifying XR enter/exit behavior, testing mode-dependent features, or debugging session state issues.
official
xr-mode-test
facebook
测试XR会话生命周期和模式切换。用于验证XR进入/退出行为、测试模式相关功能或调试会话状态问题。
official