ficilcom/otame4-work-skills / skills/career/job-change-decision
job-change-decision
VerifiedHelp a user talk through whether to change jobs, stay, or change something in their current work, starting from uncertainty, distress, a vague sense of stagnation, an offer in hand, a counter-offer from the current employer, or pressure from family or colleagues. Clarify what matters, separate deadlines that order the next steps from the decision itself, compare conditional options, and agree on a small next step and a time to revisit it. Use when someone asks whether they should quit, wonders whether leaving is just running away, has second thoughts after receiving an offer or being asked to stay, feels stuck because others say it would be a waste, wants to leave soon after joining, or wants advice before deciding to start a job search; do not make the final stay-or-leave decision, evaluate offer terms, plan the resignation, or predict hiring outcomes.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.3 KB |
| references/conversation-guide.md | markdown | 9.5 KB |
| references/report-format.md | markdown | 4.0 KB |
| references/sorting-the-decision.md | markdown | 8.9 KB |
| scripts/_common.py | script | 9.9 KB |
| scripts/sort_decision_inputs.py | script | 15.2 KB |
scripts/sort_decision_inputs.py
View on GitHub#!/usr/bin/env python3
"""Sort the inputs to a stay-or-leave decision without making the decision.
現職への不満を、原因の所在、転職しても付いてくるか、現職でまだ試していないかで
分ける。行き先で得たいものと、いま持っていて失うものが両方挙がっているかを確認
し、留まる選択肢が検討されたかを数える。本人が挙げた事情の期日を判断期限と
並べ、順序を見落としやすいものを示す。どちらを選ぶべきかは出さない。
"""
from __future__ import annotations
from datetime import date
from typing import Any
from _common import (
flag_collector,
optional_choice,
optional_date,
optional_text,
require_list,
require_object,
require_text,
run_cli,
)
# 不満の原因がどこにあるか。転職で変わる範囲が原因ごとに違う。
CAUSES = ("role", "team", "company", "industry", "self", "unknown")
# 転職しても付いてくるか。
PORTABILITY = ("yes", "no", "unknown")
TRIED_INTERNALLY = ("yes", "no", "not_possible", "unknown")
SEVERITIES = ("high", "medium", "low", "unknown")
OPTION_STATUSES = ("considered", "not_considered", "ruled_out")
IMPORTANCE = ("high", "medium", "low", "unknown")
# (code, label, keeps_current_job)
OPTIONS: tuple[tuple[str, str, bool], ...] = (
("stay_as_is", "現職のまま、何も変えない", True),
("stay_and_change", "現職で改善を働きかける(担当、体制、働き方)", True),
("internal_transfer", "社内異動", True),
("role_change", "現職内での職種転換", True),
("leave_of_absence", "休職・療養", True),
("explore_while_employed", "在職しながら情報を集める(求人票を読む、話を聞く)", True),
("upskilling", "先に学習や資格取得を行う", False),
("side_work", "副業(就業規則の定めを確認する)", True),
("job_change", "転職", False),
("independent", "独立・フリーランス", False),
)
OPTION_CODES = {code for code, _, _ in OPTIONS}
STAY_OPTIONS = {code for code, _, keeps in OPTIONS if keeps}
# 原因がここにある不満は、現職の中で動かせる余地が残っていることがある。
INTERNALLY_ADDRESSABLE = ("role", "team", "self")
def parse_concerns(raw: object) -> list[dict[str, Any]]:
entries = require_list(raw if raw is not None else [], "concerns")
concerns = []
seen: set[str] = set()
for index, entry in enumerate(entries):
path = f"concerns[{index}]"
item = require_object(entry, path)
concern_id = require_text(item.get("id"), f"{path}.id")
if concern_id in seen:
raise ValueError(f"{path}.id is duplicated: {concern_id!r}")
seen.add(concern_id)
cause = optional_choice(item.get("cause"), f"{path}.cause", CAUSES, "unknown")
portable = optional_choice(item.get("portable"), f"{path}.portable", PORTABILITY, "unknown")
tried = optional_choice(
item.get("tried_internally"), f"{path}.tried_internally", TRIED_INTERNALLY, "unknown"
)
severity = optional_choice(item.get("severity"), f"{path}.severity", SEVERITIES, "unknown")
concerns.append(
{
"id": concern_id,
"text": require_text(item.get("text"), f"{path}.text"),
"cause": cause,
"portable": portable,
"tried_internally": tried,
"severity": severity,
}
)
return concerns
def parse_wants(raw: object) -> list[dict[str, Any]]:
entries = require_list(raw if raw is not None else [], "wants")
return [
{
"text": require_text(require_object(entry, f"wants[{index}]").get("text"), f"wants[{index}].text"),
"must": bool(require_object(entry, f"wants[{index}]").get("must", False)),
}
for index, entry in enumerate(entries)
]
def parse_keeps(raw: object) -> list[dict[str, Any]]:
entries = require_list(raw if raw is not None else [], "keeps")
keeps = []
for index, entry in enumerate(entries):
item = require_object(entry, f"keeps[{index}]")
importance = optional_choice(
item.get("importance"), f"keeps[{index}].importance", IMPORTANCE, "unknown"
)
keeps.append(
{
"text": require_text(item.get("text"), f"keeps[{index}].text"),
"importance": importance,
}
)
return keeps
def parse_options(raw: object) -> dict[str, dict[str, Any]]:
entries = require_list(raw if raw is not None else [], "options")
parsed: dict[str, dict[str, Any]] = {}
for index, entry in enumerate(entries):
item = require_object(entry, f"options[{index}]")
code = item.get("code")
if code not in OPTION_CODES:
raise ValueError(f"options[{index}].code is not a known option: {code!r}")
if code in parsed:
raise ValueError(f"options[{index}].code is duplicated: {code!r}")
status = optional_choice(
item.get("status"), f"options[{index}].status", OPTION_STATUSES, "not_considered"
)
parsed[code] = {
"status": status,
"note": optional_text(item.get("note"), f"options[{index}].note"),
}
return parsed
def parse_constraints(raw: object) -> list[dict[str, Any]]:
entries = require_list(raw if raw is not None else [], "constraints")
return [
{
"text": require_text(
require_object(entry, f"constraints[{index}]").get("text"),
f"constraints[{index}].text",
),
"date": optional_date(
require_object(entry, f"constraints[{index}]").get("date"),
f"constraints[{index}].date",
),
}
for index, entry in enumerate(entries)
]
def sort_concerns(concerns: list[dict[str, Any]]) -> dict[str, list[str]]:
return {
"follows_you": [item["id"] for item in concerns if item["portable"] == "yes"],
"changes_with_employer": [item["id"] for item in concerns if item["portable"] == "no"],
"portability_unknown": [item["id"] for item in concerns if item["portable"] == "unknown"],
"untried_internally": [
item["id"]
for item in concerns
if item["tried_internally"] == "no" and item["cause"] in INTERNALLY_ADDRESSABLE
],
"cause_unknown": [item["id"] for item in concerns if item["cause"] == "unknown"],
"industry_wide": [item["id"] for item in concerns if item["cause"] == "industry"],
}
def sort_constraints(
constraints: list[dict[str, Any]], as_of: date | None, deadline: date | None
) -> list[dict[str, Any]]:
"""事情の期日に、基準日からの日数と判断期限との前後を付ける。"""
sorted_constraints = []
for item in constraints:
constraint_date = item["date"]
sorted_constraints.append(
{
"text": item["text"],
"date": constraint_date.isoformat() if constraint_date else None,
"days_until": (constraint_date - as_of).days if constraint_date and as_of else None,
"before_deadline": (
constraint_date <= deadline if constraint_date and deadline else None
),
}
)
# 期日の近い順。日付のないものは末尾に置く。
return sorted(
sorted_constraints,
key=lambda item: (item["date"] is None, item["date"] or ""),
)
def collect_flags(
concerns: list[dict[str, Any]],
wants: list[dict[str, Any]],
keeps: list[dict[str, Any]],
options: list[dict[str, Any]],
sorted_concerns: dict[str, list[str]],
constraints: list[dict[str, Any]],
days_to_deadline: int | None,
criteria_defined: bool | None,
) -> list[dict[str, Any]]:
flags, add = flag_collector()
if not concerns:
add("concerns_not_captured", "現状の不満は未入力。不満のない相談では、希望や今後確かめたいことから対話を続けられる")
if sorted_concerns["follows_you"]:
add(
"concerns_that_follow_you",
"転職しても残ると本人が予想した悩みがある。環境によって変わる部分と、その予想を見直す材料を確認できる",
sorted_concerns["follows_you"],
)
if sorted_concerns["portability_unknown"]:
add(
"portability_unknown",
"転職で変わるか未確認の悩みがある。変わる場合と変わらない場合で選択肢を比較できる",
sorted_concerns["portability_unknown"],
)
if sorted_concerns["untried_internally"]:
add(
"not_tried_internally",
"原因が職務・人間関係・自分の状態にあり、現職でまだ試していない不満がある",
sorted_concerns["untried_internally"],
)
if sorted_concerns["cause_unknown"]:
add(
"cause_unknown",
"原因の所在が特定できていない不満がある。転職で変わる範囲が決まらない",
sorted_concerns["cause_unknown"],
)
if sorted_concerns["industry_wide"]:
add(
"industry_wide_concerns",
"原因が業界の構造にあると本人が捉えた悩みがある。別の職場でも同じ条件かは未確認",
sorted_concerns["industry_wide"],
)
if concerns and not wants:
add(
"no_destination_stated",
"現職の不満は挙がっているが、次に何を得たいかが挙がっていない。比較の片側しかない",
)
if concerns and not keeps:
add(
"nothing_recorded_as_kept",
"いま持っていて失うものが挙がっていない。移ることの代償が見えない",
)
not_considered = [
entry["code"] for entry in options if entry["status"] == "not_considered"
]
if not_considered:
add("options_not_considered", "未検討の選択肢がある。相談に関係するものだけ扱い、全件の検討は求めない", not_considered)
# 検討したうえで外したもの(ruled_out)は、検討済みとして扱う。
stay_considered = any(
entry["status"] in ("considered", "ruled_out")
for entry in options
if entry["code"] in STAY_OPTIONS
)
if not stay_considered:
add(
"staying_not_considered",
"現職に留まる選択肢の検討は記録されていない。未記録と未検討を区別し、本人の意向と状況に応じて確認する",
)
if criteria_defined is not True:
add(
"decision_criteria_undefined",
"判断基準は未確認。結論を急がず、次に確かめることや見直す時期を相談できる",
)
if days_to_deadline is not None and days_to_deadline < 0:
add("decision_deadline_passed", "自分で決めた判断期限を過ぎている")
passed = [
item["text"]
for item in constraints
if item["days_until"] is not None and item["days_until"] < 0
]
if passed:
add("constraints_passed", "期日を過ぎた事情がある。今も判断に関係するかを確認できる", passed)
before_deadline = [
item["text"]
for item in constraints
if item["before_deadline"] and (item["days_until"] is None or item["days_until"] >= 0)
]
if before_deadline:
add(
"constraints_before_deadline",
"判断期限より前に来る事情の期日がある。その期日までに何を確かめるかで行動の順序が決まる。期日に合わせて決めるべきという意味ではない",
before_deadline,
)
undated = [item["text"] for item in constraints if item["date"] is None]
if undated:
add("constraints_undated", "期日が未確認の事情がある。本人の職場の書面で確認できる", undated)
return flags
def sort_inputs(payload: object) -> dict[str, Any]:
data = require_object(payload, "input")
as_of = optional_date(data.get("as_of"), "as_of")
concerns = parse_concerns(data.get("concerns"))
wants = parse_wants(data.get("wants"))
keeps = parse_keeps(data.get("keeps"))
provided = parse_options(data.get("options"))
constraints = parse_constraints(data.get("constraints"))
decision = require_object(data.get("decision", {}), "decision")
deadline = optional_date(decision.get("deadline"), "decision.deadline")
criteria_defined = decision.get("criteria_defined")
if criteria_defined is not None and not isinstance(criteria_defined, bool):
raise ValueError("decision.criteria_defined must be a boolean or null")
days_to_deadline = (deadline - as_of).days if deadline and as_of else None
options = [
{
"code": code,
"label": label,
"keeps_current_job": keeps_current,
"status": provided[code]["status"] if code in provided else "not_considered",
"note": provided[code]["note"] if code in provided else None,
}
for code, label, keeps_current in OPTIONS
]
sorted_concerns = sort_concerns(concerns)
sorted_constraints = sort_constraints(constraints, as_of, deadline)
return {
"as_of": data.get("as_of"),
"summary": {
"concerns": len(concerns),
"follows_you": len(sorted_concerns["follows_you"]),
"changes_with_employer": len(sorted_concerns["changes_with_employer"]),
"portability_unknown": len(sorted_concerns["portability_unknown"]),
"untried_internally": len(sorted_concerns["untried_internally"]),
"wants": len(wants),
"keeps": len(keeps),
"options_considered": sum(1 for entry in options if entry["status"] == "considered"),
"options_total": len(options),
},
"concerns": concerns,
"sorted_concerns": sorted_concerns,
"wants": wants,
"keeps": keeps,
"options": options,
"constraints": sorted_constraints,
"decision": {
"deadline": deadline.isoformat() if deadline else None,
"days_to_deadline": days_to_deadline,
"criteria_defined": criteria_defined,
},
"flags": collect_flags(
concerns,
wants,
keeps,
options,
sorted_concerns,
sorted_constraints,
days_to_deadline,
criteria_defined,
),
"notes": [
"この出力は判断の材料を分けたものであり、転職すべきかどうかの結論ではない",
"constraints の期日は行動の順序を決める材料であり、その期日に合わせて決めるべきという意味ではない",
"portable と tried_internally は利用者自身の判断であって、こちらの評価ではない",
"severity は利用者の申告であり、優先順位の決定ではない",
],
}
def main(argv: list[str] | None = None) -> int:
return run_cli(sort_inputs, __doc__, argv)
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |