{% extends "base.html" %} {% block content %}
{% if surface == "profile_user" or surface == "profile_team" or surface == "profile_personal_repo" or surface == "profile_team_repo" %} {% set profile_nav_active = "skills" if surface == "profile_user" else ("teams" if surface == "profile_team" or surface == "profile_team_repo" else "repos") %} {% include "partials/profile_sidebar.html" %} {% else %} {% set staff_nav_active = "users" if surface == "staff_user" else ("teams" if surface == "staff_team" else "repos") %} {% include "partials/staff_sidebar.html" %} {% endif %}
{% if surface == "profile_user" %} {% set breadcrumbs = [ {"name": current_user.name | display_name(current_user.username), "href": "/profile"}, {"name": "Skills"} ] %} {% elif surface == "profile_team" %} {% set breadcrumbs = [ {"name": current_user.name | display_name(current_user.username), "href": "/profile"}, {"name": "Teams", "href": "/profile/teams"}, {"name": team.name, "href": "/profile/teams/" ~ team.uuid}, {"name": "Skills"} ] %} {% elif surface == "profile_personal_repo" %} {% set breadcrumbs = [ {"name": current_user.name | display_name(current_user.username), "href": "/profile"}, {"name": "Repos", "href": "/profile/repos"}, {"name": repo.name, "href": "/profile/repos/" ~ repo.uuid}, {"name": "Skills"} ] %} {% elif surface == "profile_team_repo" %} {% set breadcrumbs = [ {"name": current_user.name | display_name(current_user.username), "href": "/profile"}, {"name": "Teams", "href": "/profile/teams"}, {"name": team.name, "href": "/profile/teams/" ~ team.uuid}, {"name": repo.name, "href": "/profile/teams/" ~ team.uuid ~ "/repos/" ~ repo.uuid}, {"name": "Skills"} ] %} {% elif surface == "staff_user" %} {% set breadcrumbs = [ {"name": "Staff", "href": "/staff"}, {"name": "Users", "href": "/staff/users"}, {"name": user.name | display_name(user.username), "href": "/staff/users/" ~ user.uuid}, {"name": "Skills"} ] %} {% elif surface == "staff_team" %} {% set breadcrumbs = [ {"name": "Staff", "href": "/staff"}, {"name": "Teams", "href": "/staff/teams"}, {"name": team.name, "href": "/staff/teams/" ~ team.uuid}, {"name": "Skills"} ] %} {% else %} {% set breadcrumbs = [ {"name": "Staff", "href": "/staff"}, {"name": "Repos", "href": "/staff/repos"}, {"name": repo.name, "href": "/staff/repos/" ~ repo.uuid}, {"name": "Skills"} ] %} {% endif %} {% include "partials/breadcrumbs.html" %} {% if surface == "profile_team" %} {% with profile_team_tabs_active="skills", can_manage_timers=can_manage %} {% include "profile/team_tabs.html" %} {% endwith %} {% elif surface == "profile_personal_repo" %} {% set profile_repo_subnav_active = "skills" %} {% include "profile/personal_repo_subnav.html" %} {% elif surface == "profile_team_repo" %} {% set profile_repo_subnav_active = "skills" %} {% include "profile/team_repo_subnav.html" %} {% elif surface == "staff_user" %} {% with staff_user_tabs_base="/staff/users/" ~ user.uuid, staff_user_tabs_active="skills" %} {% include "partials/staff_user_tabs.html" %} {% endwith %} {% elif surface == "staff_team" %} {% with team_tabs_base="/staff/teams/" ~ team.uuid, team_tabs_active="skills" %} {% include "partials/team_tabs.html" %} {% endwith %} {% elif surface == "staff_repo" %} {% set staff_repo_subnav_active = "skills" %} {% include "staff/repo_subnav.html" %} {% endif %} {% if notice %}
{{ notice }}
{% endif %} {% if error %}
{{ error }}
{% endif %} {% if mode == "list" %}

Skills

Stored instruction documents available in this scope.

{% if can_manage %}Create skill{% endif %}
{% if page.results | length == 0 %}

No skills yet.

{% else %}
{% for item in page.results %} {% endfor %}
Name Description Updated
{{ item.slug }} {{ item.description }} {{ item.updated_at | humantime }}
{% endif %}
{% with page=page, query=query, per_page_id="skills-per-page", per_page_form="skill-filters" %} {% include "partials/paging_footer.html" %} {% endwith %}
{% else %}

{% if mode == "new" %}Create skill{% else %}Edit skill{% endif %}

Metadata and instructions are serialized as one canonical SKILL.md.

Back to skills
1-64 lowercase letters, numbers, and single hyphens.
The complete canonical document may be at most 262,144 bytes.
{% if can_manage %}
Cancel
{% endif %}
{% if mode == "edit" and can_manage %}

Delete skill

Deletion is permanent. The stored document will no longer be addressable.

{% endif %}
Canonical SKILL.md

              
{% if mode == "edit" %} {% with modal_id="confirm-delete-skill", modal_title="Delete skill", modal_body='Delete ?', modal_confirm_text="Delete skill", modal_desc="This permanently removes the stored skill document." %} {% include "partials/confirm_modal.html" %} {% endwith %} {% endif %} {% endif %}
{% endblock %} {% block scripts %} {% if mode != "list" %} {% endif %} {% endblock %}